Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fixed off-by-one error in str_append. | b458eb97a71bad87bbbbef610009da40e0dbf855 | lep | 2018-11-01 12:26:48 |
Added modulo operator. | 70b4c5117a0b84cddd0c35e07a47e3b2aaf847b8 | lep | 2018-08-09 19:46:14 |
realloc returns the new pointer... | c15eac9a4c2c2531a256125bc70272edbbf1d036 | lep | 2018-07-24 20:03:41 |
Track blocks | d2763ae8473a1c699aa2e5605922e4b500c83ed4 | lep | 2018-07-22 13:28:40 |
Cross compile and strip under FreeBSD | 296bd56c1347afb7a20337e02574f9196b48317a | lep | 2018-07-22 11:55:29 |
Track opening/closing blocks. | 49b23df64b209106cce92e417ee13ecebb0bc009 | lep | 2018-07-09 09:37:01 |
Replace strncat with str_append. | ad968e040f315ed3cf6580e46587342897839529 | lep | 2018-03-21 13:53:11 |
Do not report arrays as uninitialized when the index is missing. | 72e93bd234743a438fb0a5c105514bf732c22b89 | lep | 2017-12-20 14:59:10 |
Better error messages. | ad8342582ac3617280f471d889b1766be272858b | lep | 2017-11-15 17:52:08 |
Handle wrong shadowing. | 0500a60ef11f39c4f33044e26c29798f6d8445b5 | lep | 2017-02-19 14:37:21 |
Added checks for natives which behave bad in a globals block. | 3e6ac270dda9ad695723d3bc2aac4d69a2fdf87a | lep | 2017-02-19 10:57:33 |
Update readme.md | 2c9177dd5482ed8c4c1464a4ade37c301205fe6b | lep | 2017-02-01 17:42:49 |
Public git release. | 2da78f3665ac4f53f5833c6a48ebbeaabea0cd49 | lep | 2017-02-01 16:42:21 |
Better ifdef-handling for aligned malloc. | d95ebafa7204e49d84a9fed8cdeb01713dd0bc82 | lep | 2017-02-01 16:41:07 |
Makefile changes. | 0458bb26764aad1caec71ccf721e84a28c699ee0 | lep | 2017-02-01 15:48:25 |
Can now compile on freebsd and linux from one branch. | 0772c4bd17dcfc389ca0e887b4bbceda8e46fa8e | lep | 2017-01-07 21:05:10 |
More descriptive check for assignment. | 474462b44fe20e958e8c6a3b51ba2da9c4a46451 | lep | 2016-11-24 16:47:15 |
Actually add all the sources to the release zipball | 151ae88aac4c3ac8aae432a4a240239f652fa8f4 | lep | 2016-11-10 15:30:38 |
Don't treat ``.'' as a valid real value. | 72e5087e22af66de0765c6d4f9ceae154725e2c2 | lep | 2016-10-24 14:55:02 |
Also split on \r in flag parser. | 519d685ab24864716e3a1ecfd797790a327868ca | lep | 2016-08-28 12:41:08 |
File | Lines added | Lines deleted |
---|---|---|
Makefile | 1 | 1 |
misc.c | 2 | 1 |
File Makefile changed (mode: 100644) (index 2a0a4ae..cf65b80) | |||
... | ... | main.o: main.c | grammar.tab.h | |
70 | 70 | clean-build-files: ## Cleans all build files | clean-build-files: ## Cleans all build files |
71 | 71 | rm -f grammar.tab.h grammar.tab.c token.yy.c token.yy.h \ | rm -f grammar.tab.h grammar.tab.c token.yy.c token.yy.h \ |
72 | 72 | $(OBJS) $(OBJS:.o=.d) \ | $(OBJS) $(OBJS:.o=.d) \ |
73 | pjass | ||
73 | pjass pjass.exe | ||
74 | 74 | ||
75 | 75 | clean-release-files: ## Cleans all release zipballs | clean-release-files: ## Cleans all release zipballs |
76 | 76 | rm -f pjass-git-*.zip | rm -f pjass-git-*.zip |
File misc.c changed (mode: 100644) (index 1bcb00d..8a197f6) | |||
... | ... | void str_append(char *buf, const char *str, size_t buf_size){ | |
109 | 109 | size_t buf_len = strlen(buf); | size_t buf_len = strlen(buf); |
110 | 110 | size_t buf_freespace = buf_size - (buf_len+1); // +1 for zero byte at the end | size_t buf_freespace = buf_size - (buf_len+1); // +1 for zero byte at the end |
111 | 111 | size_t to_copy; | size_t to_copy; |
112 | |||
112 | 113 | if(buf_freespace > str_len){ | if(buf_freespace > str_len){ |
113 | 114 | to_copy = str_len; | to_copy = str_len; |
114 | 115 | }else{ | }else{ |
... | ... | void str_append(char *buf, const char *str, size_t buf_size){ | |
116 | 117 | } | } |
117 | 118 | ||
118 | 119 | memmove(buf+buf_len, str, to_copy); | memmove(buf+buf_len, str, to_copy); |
119 | buf[buf_len + to_copy +1] = 0; | ||
120 | buf[buf_len + to_copy] = 0; | ||
120 | 121 | } | } |
121 | 122 | ||
122 | 123 | static int editdistance(const char *s, const char *t, int cutoff){ | static int editdistance(const char *s, const char *t, int cutoff){ |