Commit graph

2416 commits

Author SHA1 Message Date
Dale Weiler
c7679722fb Please the whitespace gods 2013-07-27 11:48:55 +00:00
Dale Weiler
8db9724c5d Revert "Smaller memory footprint, 4/8 bytes vs 12/24 for individual token lex_ctx's. Use to be a 'shallow' copy of the details in lex_file, now it's a pointer to the contents in lex_file."
This reverts commit cddf70f46b.
2013-07-26 16:17:41 +00:00
Dale Weiler
cddf70f46b Smaller memory footprint, 4/8 bytes vs 12/24 for individual token lex_ctx's. Use to be a 'shallow' copy of the details in lex_file, now it's a pointer to the contents in lex_file. 2013-07-26 16:09:26 +00:00
Dale Weiler
4a3794ea2b Track strdup memory too 2013-07-26 14:57:21 +00:00
Dale Weiler
44d5481828 There was too many 16-sized buckets when compiling xonotic, increase the size: this is cheaper on memory and slightly faster. 2013-07-26 14:50:37 +00:00
Dale Weiler
629fe05083 Fix the ctype replacements to work with macro arguments that have side-effect, with exception to isspace which *might* need to become a function. 2013-07-26 12:28:02 +00:00
Dale Weiler
d411d60685 Eeasy fix for that 2013-07-21 22:07:22 +00:00
Dale Weiler
2bfea938b3 One last one 2013-07-21 22:00:07 +00:00
Dale Weiler
96ec279663 Another one 2013-07-21 21:56:03 +00:00
Dale Weiler
697ad9d3a7 Technically GCC was wrong here, since opts_ini_parse is guranteed to change error. 2013-07-21 21:51:34 +00:00
Dale Weiler
764b9abaf4 Cleanups 2013-07-19 11:43:22 +00:00
Dale Weiler
84ad8ec37a Update gmqcc.ini.example 2013-07-04 15:24:55 -04:00
Wolfgang Bumiller
17318af62f fix typo 2013-07-01 10:37:51 +02:00
Wolfgang Bumiller
b39a748984 actually no :) 2013-06-22 20:31:50 +02:00
Dale Weiler
b534aca263 Fix a case of the uninitialized blues 2013-06-22 02:25:19 +00:00
Dale Weiler
adc9e7bf22 Fix some more bugs (coverity you're a life saver) 2013-06-22 02:05:04 +00:00
Dale Weiler
560b45dd16 Buffer overflow! 2013-06-22 01:58:20 +00:00
Dale Weiler
bbffdde2dc Fix some bugs and a memleak in the testsuite. 2013-06-22 01:56:22 +00:00
Dale Weiler
063c50fce4 More bug fixes and dead code elimination 2013-06-22 01:23:59 +00:00
Dale Weiler
5429b6f189 Fix out of bound access 2013-06-22 01:16:24 +00:00
Dale Weiler
d39fb653aa Fix some more bugs, and use dup2 because dup leaks on some implementations. 2013-06-22 01:14:13 +00:00
Dale Weiler
e08f00bfcd Update clean rules in makefiles to remove coverity stuff 2013-06-22 00:16:44 +00:00
Dale Weiler
edf59e4f73 Fixed possible bug in VM. Added coverity rules to makefiles. 2013-06-22 00:15:25 +00:00
Dale Weiler
52e7394418 Fix uninitialized data 2013-06-22 00:00:17 +00:00
Dale Weiler
a982d4e524 Fix a sizeof bug 2013-06-21 23:55:47 +00:00
Dale Weiler
458cfcb48c I'm assuming this is a bug since all other read tests compare with itself's ir_value, and only this one doesn't. Otherwise why would you need to load to an ir_value for vec? 2013-06-21 23:54:09 +00:00
Dale Weiler
5bdf0aff81 Catch that one too 2013-06-21 23:51:49 +00:00
Dale Weiler
1929b129ee Improper use of a possible negative value. 2013-06-21 23:49:08 +00:00
Dale Weiler
ce23e95d0b Remove a ton of dead code and document the one really insane case. 2013-06-21 23:40:51 +00:00
Dale Weiler
684112474b cppcheck had the right idea, but the wrong scope on this one. 2013-06-21 23:29:50 +00:00
Dale Weiler
fe296de42f Fix more bugs (mostly possible NULL pointer dereferences) 2013-06-21 23:26:49 +00:00
Dale Weiler
996d998ebb Fix possible NULL pointer dereference 2013-06-21 23:21:12 +00:00
Dale Weiler
125d039e3d Fix some bugs 2013-06-21 23:16:00 +00:00
Dale Weiler
6db2e69f9a Oh my god microsoft you suck 2013-06-20 11:20:56 +00:00
Dale Weiler
82fd7fcf68 Move code generator into ir_builder for earlier free. It's also a much more cleaner design than load parser->code for all ast/ir operations. We also have a proper chain'd design now (so making this a library will be easier). 2013-06-20 10:52:58 +00:00
Dale Weiler
a2c3388e49 Fix some comments 2013-06-18 07:31:09 +00:00
Dale Weiler
944ec75687 Retarded clang warning is retarded. 2013-06-18 07:26:07 +00:00
Dale Weiler
3b8b76328c Holy mexicans 15% better hashing == 5% faster compiles. 2013-06-18 07:22:03 +00:00
Dale Weiler
e6c1d66c35 Merge branch 'master' into cooking
Conflicts:
	opts.def
2013-06-17 20:14:26 +00:00
Dale Weiler
51eb94f251 Enable it for gmqcc and fteqcc modes. 2013-06-17 20:13:21 +00:00
Dale Weiler
7e76b42f11 Merge branch 'master' of github.com:graphitemaster/gmqcc 2013-06-17 20:12:02 +00:00
Dale Weiler
23cb7f4e09 Fix some bugs 2013-06-17 20:11:37 +00:00
Dale Weiler
a04c0d2aa2 make source a dependency for the c.o rule 2013-06-16 08:35:58 +00:00
Dale Weiler
ad8d76b212 Fixed 2013-06-16 08:24:13 +00:00
Dale Weiler
de8974d03e Use includes for makefile consistency. Added make depend rule for BSDmakefile. 2013-06-16 08:21:23 +00:00
Wolfgang Bumiller
f8db5a7c6d reclassify_token should only deal with tokens < TOKEN_START... should fix #113 2013-06-16 09:56:21 +02:00
Wolfgang Bumiller
e6bb7697f9 reclassify_token should only deal with tokens < TOKEN_START... should fix #113 2013-06-16 09:53:11 +02:00
Dale Weiler
a3e1342bdb Update 2013-06-16 07:51:55 +00:00
Dale Weiler
ba85107a85 Better scheme 2013-06-16 07:48:41 +00:00
Dale Weiler
0e392f91d2 A new batch of fresh hot dependencies for both 2013-06-16 07:23:51 +00:00