Commit graph

2784 commits

Author SHA1 Message Date
Dale Weiler
8c08897749 Fixes 2013-04-21 10:13:51 +00:00
Dale Weiler
462c06d56b Merge branch 'cooking' 2013-04-21 10:09:08 +00:00
Dale Weiler
317559e5a5 Update CHANGES 2013-04-21 10:08:04 +00:00
Dale Weiler
4a1eb7f948 update README to reflect syntax highlighting stuff. 2013-04-21 09:44:08 +00:00
Dale Weiler
f3c04d0f37 Add jedit syntax highlighting support, thanks to LordHavoc (made some changes to reflect gmqcc syntax more) 2013-04-21 08:13:39 +00:00
Dale Weiler
3cecd5d066 This is suppoted now 2013-04-21 07:30:32 +00:00
Dale Weiler
7def17eed5 Add syntax configuration file for gtksourceview (this allows QC code syntax highlighting for GNOMEs default text view in nautilus, gedit, and sandy + other gtksouceview based editors). 2013-04-21 07:27:59 +00:00
Dale Weiler
c362826dc6 typo 2013-04-21 07:07:07 +00:00
Dale Weiler
0661002257 update README for syntax highlighting stuff 2013-04-21 07:06:37 +00:00
Dale Weiler
96c0fa983d A more realistic preprocessor concatenation test. 2013-04-21 06:52:22 +00:00
Dale Weiler
6009e2b3ea Undo that fail 2013-04-21 06:46:54 +00:00
Dale Weiler
07e335fdb8 Better output on failure 2013-04-21 06:46:39 +00:00
Dale Weiler
e27eebe0f9 More preprocessor testsuite support and our first preprocessor test! 2013-04-21 06:36:52 +00:00
Dale Weiler
c53fa31a0a More preprocessor testing support for the testsuite. 2013-04-21 06:23:40 +00:00
Dale Weiler
79282bfee0 Initial preprocessor procedure option for testsuite implemented. 2013-04-21 06:20:17 +00:00
Dale Weiler
ea0e2c47d5 We don't need to specify "-should fail" because we print the type now (this also makes the description colum shorter) 2013-04-21 06:13:25 +00:00
Dale Weiler
57d2876021 I did it, I did it, I did it, horray!, Thanks Dora .. I mean Hirato. 2013-04-21 06:09:20 +00:00
Dale Weiler
485866552d Some work in progress preprocessing test work 2013-04-21 05:50:21 +00:00
Dale Weiler
b47e3ebccf Remove hashset 2013-04-21 04:56:41 +00:00
Wolfgang Bumiller
46752af74b parser_const_string now uses hashtables; hashtables may want to dup an empty string without it becoming NULL - also replacing ir_strdup with the new util_ one 2013-04-17 18:23:30 +02:00
Wolfgang Bumiller
8f2a22b8c3 fix warnings to allow compiling with -O3 2013-04-17 17:58:08 +02:00
Dale Weiler
dc7e18ec73 Some inline never hurt anyone .. actually, C made a bad decision in it's design, everything should've always been implicitly inline, since most code back in the day was small, if you had large bodies, there should've been an 'outline' keyword for that instead :P 2013-04-17 11:02:42 +00:00
Dale Weiler
0b0b6423ba Use hashtable for macro definitions in the preprocessor, this speeds up the search for them, and the removal of them making it O(1) instead of O(n). This also makes my 30 second xonotic compiles take only 13 seconds 2013-04-17 10:51:33 +00:00
Wolfgang Bumiller
4d394494b6 don't call ftepp_finish on a freed ftepp struct 2013-04-17 11:36:45 +02:00
Dale Weiler
d7be99c9dd More perliminary reworking for threading 2013-04-17 06:30:09 +00:00
Dale Weiler
21c6079b7a Fix compile for windows. 2013-04-17 04:27:00 +00:00
Dale Weiler
1f0a1b8140 Perliminary parser reworking, required for the proposed multithreading. 2013-04-17 00:52:52 +00:00
Dale Weiler
b82efcf0ce Fix typo in kate syntax highlighting installation documentation. 2013-04-16 20:27:01 +00:00
Dale Weiler
a61c9c6d89 Added syntax highlighting configuration files (with documentation on how to install them) for nano, kate and geany. 2013-04-16 20:24:33 +00:00
Wolfgang Bumiller
992c6fbfb8 lex_try_pragma: free the buffers 2013-04-16 14:14:15 +02:00
Dale Weiler
1c51fb80eb Fix memdump printing 2013-04-16 09:13:22 +00:00
Dale Weiler
f2b21158d8 Rewrote memory tracking, now prints highest water mark (most used memory at a given time during compile). Changes all byte representation to MB representation. Added ability to print the contents of the leaked memory to the console when -debug is on (infact the lost messages only print during -debug), -memchk simply reports the memory info at the end (it is also printed when -debug). You can set the memory dump columns with -memdumpcols=# where # is the number of columns you want (default is 16) 2013-04-15 20:54:53 +00:00
Wolfgang Bumiller
1a9c82483c fix macro parameters 2013-04-15 21:07:44 +02:00
Wolfgang Bumiller
1f667c4b35 ast_expression_delete: delete varparam if it is set - fixes another leak 2013-04-15 21:05:59 +02:00
Wolfgang Bumiller
d5e90a17f9 fix memleak in ast_local_codegen 2013-04-15 20:56:48 +02:00
Wolfgang Bumiller
1caf1b3ebe util_strdup: don't use util_memory_a with -DNOTRACK 2013-04-15 20:53:53 +02:00
Dale Weiler
c2b5a95961 GCC specific stuff compile flags. 2013-04-15 06:23:13 +00:00
Dale Weiler
ef528d6710 Added tracing to strdup for allocations, fixed some memleaks, this isn't pretty (trying to track down some weird memory leak issues) 2013-04-14 23:51:16 +00:00
Dale Weiler
18fad16a7d cleanups 2013-04-14 01:41:13 +00:00
Dale Weiler
7ba7fd5968 Fet rid of explicit file stream flushes, streams are flushed on exit, which we can always gurantee. 2013-04-14 01:32:29 +00:00
Dale Weiler
752409417f Remove one more external function 2013-04-14 01:29:50 +00:00
Dale Weiler
4591b3a4fa More flattening. I don't know why I turned off buffering, that makes output to console even slower due to all the flushes, which actually slows down compilation. 2013-04-14 01:26:40 +00:00
Dale Weiler
eb2a74f7e7 Flatten more external functions 2013-04-14 01:25:11 +00:00
Dale Weiler
a25bd052d7 More function flatening 2013-04-14 01:16:35 +00:00
Dale Weiler
ccc2eb3298 More function flatening 2013-04-14 01:14:14 +00:00
Dale Weiler
3e7340c52c More external function flatening (less external symbols) 2013-04-14 01:07:39 +00:00
Dale Weiler
3f546df677 Revert that trans stuff 2013-04-14 01:03:22 +00:00
Dale Weiler
48d6375817 flatten the use of strcpy, 90% of the cases we already knew the length of the string either at compile-time, or already within the scope we where, thus letting us use strncpy, which can be further optimized (unrolled if static) 2013-04-14 01:00:25 +00:00
Dale Weiler
3f40fcb965 Fix possible buffer overflows. 2013-04-13 18:17:15 +00:00
Dale Weiler
95172861f5 Fix possible bug 2013-04-13 18:04:07 +00:00