]>
git.rm.cloudns.org Git - xonotic/gmqcc.git/log
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 19:56:11 +0000 (20:56 +0100)]
Fixing some indentation
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 19:36:02 +0000 (20:36 +0100)]
remove a redundant ir_function member
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 19:32:22 +0000 (20:32 +0100)]
Make the disasm a bit more verbose as to where globals are
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 19:32:06 +0000 (20:32 +0100)]
do not set a function-defs nargs to > 8
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 19:17:59 +0000 (20:17 +0100)]
CALL to handle extparams, renamed extparams again
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 19:11:14 +0000 (20:11 +0100)]
Add a # prefix to EXTPARM%i
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 19:06:28 +0000 (20:06 +0100)]
Make functions copy their extparams
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 18:19:38 +0000 (19:19 +0100)]
Make the >8 parameter message a warning
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 18:15:20 +0000 (19:15 +0100)]
Importing a tiny README file
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 18:14:06 +0000 (19:14 +0100)]
Importing LICENSE file
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 17:54:10 +0000 (18:54 +0100)]
Checking in an INSTALL file
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 16:06:26 +0000 (17:06 +0100)]
Adding myself to main.c's copyright notice
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 15:22:07 +0000 (16:22 +0100)]
Added #include
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 15:17:19 +0000 (16:17 +0100)]
Don't skip the \n after parsing a pragma in the lexer otherwise 2 pragmas in the row wouldn't work
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 14:32:03 +0000 (15:32 +0100)]
pragma line(lineno) - sets the linenumber for the line after the pragma
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 14:30:40 +0000 (15:30 +0100)]
Better linecounting for pragmas; support for prgama file(filename)
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 14:30:24 +0000 (15:30 +0100)]
Make pragmas pass through the preprocessor so the user can write them manually
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 14:23:00 +0000 (15:23 +0100)]
fixup line counting in #pragmas
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 14:14:42 +0000 (15:14 +0100)]
Experimental support for push/pop(line) pragmas
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 13:39:24 +0000 (14:39 +0100)]
update old_string after a recursive preprocess call so we don't reset to a free'd vector; add recursion header/footer pragmas
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 13:29:15 +0000 (14:29 +0100)]
Comment about why stringify is so short
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 13:27:47 +0000 (14:27 +0100)]
don't call parser_cleanup with -E
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 13:26:40 +0000 (14:26 +0100)]
Add quotes to the known control sequences... darn. Add stringification via #
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 12:33:53 +0000 (13:33 +0100)]
The ftepp now always outputs into a string buffer, with -E the buffer will be dumped to stdout or the via -o specified file, without -E it'll be passed to the parser to be compiled
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 12:06:29 +0000 (13:06 +0100)]
Merge branch 'master' into ftepp
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 12:06:16 +0000 (13:06 +0100)]
Collect accessor functions in the parser so they can later be deleted, fixed that leak
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 12:00:18 +0000 (13:00 +0100)]
Removing some code duplication
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 11:51:38 +0000 (12:51 +0100)]
Make -E print to stdout by default and honor -o, changed handling of source list a bit
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 10:54:11 +0000 (11:54 +0100)]
Since like with parsing, the preprocessor state has to be preserved across files for macros, we do that now, and with that introduce a new warning: -Wmultifile-if in case an #if spans over several command-line-provided source files (or progs.src file provided for that matter)
Wolfgang (Blub) Bumiller [Sun, 18 Nov 2012 10:43:46 +0000 (11:43 +0100)]
Some printf/con_out/con_err conversions, guarded some outputs with not-opts_pp_only so the -E switch can print to stdout normally
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 10:34:00 +0000 (11:34 +0100)]
Merge branch 'master' into ftepp
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 10:00:32 +0000 (11:00 +0100)]
install targets
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 09:43:50 +0000 (10:43 +0100)]
Temporary list of dependencies for objects
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 09:36:35 +0000 (10:36 +0100)]
quick and dirty fix to lexerror for when fopen fails
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 09:35:52 +0000 (10:35 +0100)]
removing mem.c from this branch in preparation for 0.1
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 22:13:53 +0000 (23:13 +0100)]
Lexer should keep newlines in merged lines, so will the preprocessor, but therefore the lexer will replace comments with actual spaces so we don't get borken output... also don't error about redifining a macro when inside a non-outputting #if branch
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:54:59 +0000 (22:54 +0100)]
## concatenation, -Wpreprocessor warning about redefining macros, #undef
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:41:29 +0000 (22:41 +0100)]
don't error on non-EOL EOF at the end of a macro line
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:38:58 +0000 (22:38 +0100)]
also use recursive-expansion on macros without parameters
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:31:51 +0000 (22:31 +0100)]
recursively call the preprocessor on expanded macros
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:22:31 +0000 (22:22 +0100)]
Expand macros into a string buffer
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:07:53 +0000 (22:07 +0100)]
moving ftepp_delete out of ftepp_preprocess so that it can actually be called recursively
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:06:07 +0000 (22:06 +0100)]
ftepp_out can now output to a string buffer
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 21:02:38 +0000 (22:02 +0100)]
Correctly handle nested #ifs
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 20:37:34 +0000 (21:37 +0100)]
Relax the preprocessor condition: # in the middle of a line also counts, but take care of builtin numbers since they use # as well
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 20:27:15 +0000 (21:27 +0100)]
Fix a bug in macro call parameter parsing
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 20:20:31 +0000 (21:20 +0100)]
Parsing parameters for a macro call
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:50:28 +0000 (20:50 +0100)]
macro_body parse function shouldn't skip whitespace inside
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:49:37 +0000 (20:49 +0100)]
moving ftepp_out further up, using it in ftepp_macro_call, generating output of parameter-less macros
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:46:52 +0000 (20:46 +0100)]
ftepp_macro_call/ftepp_skipallwhite
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:41:20 +0000 (20:41 +0100)]
Also allow empty-parameter-list macros
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:38:44 +0000 (20:38 +0100)]
Parsing basic macro body, no special tokens yet
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:32:03 +0000 (20:32 +0100)]
Set the mergelines flag only for preprocessor commands
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:29:20 +0000 (20:29 +0100)]
mergelines flag for the lexer to handle a backslash-newline
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:15:04 +0000 (20:15 +0100)]
fixing up dtors, parsing parameters of macros
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:04:30 +0000 (20:04 +0100)]
Update #if description comment
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 19:02:27 +0000 (20:02 +0100)]
Unary NOT in #if
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 18:32:02 +0000 (19:32 +0100)]
handling the noops flag better now
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 18:28:20 +0000 (19:28 +0100)]
Parsing some basic #ifs with defined()
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 18:07:23 +0000 (19:07 +0100)]
Fixing indentation
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 18:01:44 +0000 (19:01 +0100)]
Some #if parsing
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 17:29:46 +0000 (18:29 +0100)]
using ftepp_out which will honor conditions
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 17:27:32 +0000 (18:27 +0100)]
macro structure, parsing ifdefs and non-macro defines
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 16:46:16 +0000 (17:46 +0100)]
Basic structure of ftepp
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 15:57:39 +0000 (16:57 +0100)]
importing initial ftepp.c; -E option now executes the preprocessor
Wolfgang (Blub) Bumiller [Fri, 16 Nov 2012 15:42:30 +0000 (16:42 +0100)]
Removing old make rules for ir/ast tests in deleted test/ dir
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:40:32 +0000 (21:40 +0100)]
Free the 3 actual vectors, not the first 3 times
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:36:36 +0000 (21:36 +0100)]
Fixing util_memory_r
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:24:31 +0000 (21:24 +0100)]
moving _vec_remove above the 'exposed interface' comment
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:18:31 +0000 (21:18 +0100)]
Fix a typo causing NOTRACK to fail
Dale Weiler [Thu, 15 Nov 2012 20:04:05 +0000 (20:04 +0000)]
This bug was what caused mem.c to crash, dear lord
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 17:48:38 +0000 (18:48 +0100)]
Replacing lexer's vectors and getting rid of the macros
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 17:32:03 +0000 (18:32 +0100)]
Replaced it all...
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 10:02:16 +0000 (11:02 +0100)]
cleaned up empty lines
Dale Weiler [Thu, 15 Nov 2012 03:53:31 +0000 (03:53 +0000)]
Some man page changes
Dale Weiler [Thu, 15 Nov 2012 03:38:20 +0000 (03:38 +0000)]
Some more changes: added redirout/redirerr command line options
Dale Weiler [Thu, 15 Nov 2012 00:50:05 +0000 (00:50 +0000)]
added --nocolor and fixed bug
Dale Weiler [Thu, 15 Nov 2012 00:29:05 +0000 (00:29 +0000)]
Remove test binary file
Dale Weiler [Thu, 15 Nov 2012 00:28:46 +0000 (00:28 +0000)]
Use new console system everywhere.
Dale Weiler [Wed, 14 Nov 2012 20:41:15 +0000 (20:41 +0000)]
FIX TEH BLOCK
Wolfgang (Blub) Bumiller [Wed, 14 Nov 2012 20:39:16 +0000 (21:39 +0100)]
Merging in new-syntax
Dale Weiler [Wed, 14 Nov 2012 20:18:52 +0000 (20:18 +0000)]
Remove the tput shit
Dale Weiler [Wed, 14 Nov 2012 19:38:05 +0000 (19:38 +0000)]
Fix teh bugs, thanks div0
Dale Weiler [Wed, 14 Nov 2012 19:30:07 +0000 (19:30 +0000)]
Clever hack to determine terminal color support for *nix. Uses zero libraries :)
Dale Weiler [Wed, 14 Nov 2012 19:17:43 +0000 (19:17 +0000)]
preliminary segregated console subsystem
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:54:25 +0000 (18:54 +0100)]
if not() support
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:51:45 +0000 (18:51 +0100)]
'not' is now a keyword
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:54:25 +0000 (18:54 +0100)]
if not() support
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:51:45 +0000 (18:51 +0100)]
'not' is now a keyword
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 13:46:14 +0000 (14:46 +0100)]
improve the warning
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 13:43:20 +0000 (14:43 +0100)]
Warn (via -Wextensions) when accessing a field-of-array's element without putting the indexed field name in parenthesis
Dale Weiler [Tue, 13 Nov 2012 02:29:02 +0000 (02:29 +0000)]
More buddy allocator changes
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 23:39:39 +0000 (00:39 +0100)]
when finishing an array-indexing operation the parser now calls rotate_entfield_array_index_nodes to fixup 'ent.foo[n]' to become 'ent.(foo[n])'
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 23:36:00 +0000 (00:36 +0100)]
Fix a very stupid bug in the executor which prevented ADDRESS to have the same global as output as one of its inputs
Dale Weiler [Mon, 12 Nov 2012 23:24:14 +0000 (23:24 +0000)]
Some allocator changes (still doesn't work)
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 23:11:07 +0000 (00:11 +0100)]
fix wrong const qualifier
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 22:35:47 +0000 (23:35 +0100)]
allowing inexing of array-fields
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 22:05:44 +0000 (23:05 +0100)]
array-field setter needs to use STOREP*
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 21:39:43 +0000 (22:39 +0100)]
support for ast_entfield nodes with specific output types, fixing array-field instantiating code to print the correct name on error
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 21:33:34 +0000 (22:33 +0100)]
add an asterror message for ast_entfield_new with a wrong type