]> git.xonotic.org Git - xonotic/gmqcc.git/log
xonotic/gmqcc.git
11 years agoAdded test for variadic arguments
Dale Weiler [Mon, 19 Nov 2012 02:11:24 +0000 (02:11 +0000)]
Added test for variadic arguments

11 years agoAdded command line parsing to test-suite
Dale Weiler [Mon, 19 Nov 2012 02:05:18 +0000 (02:05 +0000)]
Added command line parsing to test-suite

11 years agostdout/stderr logging functional now.
Dale Weiler [Mon, 19 Nov 2012 00:22:57 +0000 (00:22 +0000)]
stdout/stderr logging functional now.

11 years agoTest suite now logs stdout/stderr to respective files
Dale Weiler [Sun, 18 Nov 2012 22:59:23 +0000 (22:59 +0000)]
Test suite now logs stdout/stderr to respective files

11 years agoMerge branch 'master' into test-suite
Dale Weiler [Sat, 17 Nov 2012 10:02:21 +0000 (10:02 +0000)]
Merge branch 'master' into test-suite

Conflicts:
Makefile

11 years agoMore makefile changes
Dale Weiler [Sat, 17 Nov 2012 10:00:55 +0000 (10:00 +0000)]
More makefile changes

11 years agoinstall targets 0.1
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 10:00:32 +0000 (11:00 +0100)]
install targets

11 years agoMerge branch 'master' into test-suite
Dale Weiler [Sat, 17 Nov 2012 09:56:48 +0000 (09:56 +0000)]
Merge branch 'master' into test-suite

Conflicts:
Makefile

11 years agoAdded more tests, fixed existing ones, and some more test system changes.
Dale Weiler [Sat, 17 Nov 2012 09:51:55 +0000 (09:51 +0000)]
Added more tests, fixed existing ones, and some more test system changes.

11 years agoTemporary list of dependencies for objects
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 09:43:50 +0000 (10:43 +0100)]
Temporary list of dependencies for objects

11 years agoquick and dirty fix to lexerror for when fopen fails
Wolfgang (Blub) Bumiller [Sat, 17 Nov 2012 09:36:35 +0000 (10:36 +0100)]
quick and dirty fix to lexerror for when fopen fails

11 years agoremoving mem.c from this branch in preparation for 0.1
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

11 years agosigh
Dale Weiler [Sat, 17 Nov 2012 08:54:24 +0000 (08:54 +0000)]
sigh

11 years agoFix test suite
Dale Weiler [Sat, 17 Nov 2012 08:50:09 +0000 (08:50 +0000)]
Fix test suite

11 years agoActually add the tests
Dale Weiler [Sat, 17 Nov 2012 08:31:23 +0000 (08:31 +0000)]
Actually add the tests

11 years agoTest system works, and added some working tests!
Dale Weiler [Sat, 17 Nov 2012 08:10:31 +0000 (08:10 +0000)]
Test system works, and added some working tests!

11 years agoActually commit the new test stuff
Dale Weiler [Sat, 17 Nov 2012 02:55:33 +0000 (02:55 +0000)]
Actually commit the new test stuff

11 years agoNew test-suite initial implementation. Just need to write some tests.
Dale Weiler [Sat, 17 Nov 2012 02:54:30 +0000 (02:54 +0000)]
New test-suite initial implementation.  Just need to write some tests.

11 years agoRemoving old make rules for ir/ast tests in deleted test/ dir
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

11 years agoFree the 3 actual vectors, not the first 3 times
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:40:32 +0000 (21:40 +0100)]
Free the 3 actual vectors, not the first 3 times

11 years agoFixing util_memory_r
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:36:36 +0000 (21:36 +0100)]
Fixing util_memory_r

11 years agomoving _vec_remove above the 'exposed interface' comment
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:24:31 +0000 (21:24 +0100)]
moving _vec_remove above the 'exposed interface' comment

11 years agoFix a typo causing NOTRACK to fail
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 20:18:31 +0000 (21:18 +0100)]
Fix a typo causing NOTRACK to fail

11 years agoThis bug was what caused mem.c to crash, dear lord
Dale Weiler [Thu, 15 Nov 2012 20:04:05 +0000 (20:04 +0000)]
This bug was what caused mem.c to crash, dear lord

11 years agoReplacing lexer's vectors and getting rid of the macros
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 17:48:38 +0000 (18:48 +0100)]
Replacing lexer's vectors and getting rid of the macros

11 years agoReplaced it all...
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 17:32:03 +0000 (18:32 +0100)]
Replaced it all...

11 years agocleaned up empty lines
Wolfgang (Blub) Bumiller [Thu, 15 Nov 2012 10:02:16 +0000 (11:02 +0100)]
cleaned up empty lines

11 years agoSome man page changes
Dale Weiler [Thu, 15 Nov 2012 03:53:31 +0000 (03:53 +0000)]
Some man page changes

11 years agoSome more changes: added redirout/redirerr command line options
Dale Weiler [Thu, 15 Nov 2012 03:38:20 +0000 (03:38 +0000)]
Some more changes: added redirout/redirerr command line options

11 years agoadded --nocolor and fixed bug
Dale Weiler [Thu, 15 Nov 2012 00:50:05 +0000 (00:50 +0000)]
added --nocolor and fixed bug

11 years agoRemove test binary file
Dale Weiler [Thu, 15 Nov 2012 00:29:05 +0000 (00:29 +0000)]
Remove test binary file

11 years agoUse new console system everywhere.
Dale Weiler [Thu, 15 Nov 2012 00:28:46 +0000 (00:28 +0000)]
Use new console system everywhere.

11 years agoFIX TEH BLOCK
Dale Weiler [Wed, 14 Nov 2012 20:41:15 +0000 (20:41 +0000)]
FIX TEH BLOCK

11 years agoMerging in new-syntax
Wolfgang (Blub) Bumiller [Wed, 14 Nov 2012 20:39:16 +0000 (21:39 +0100)]
Merging in new-syntax

11 years agoRemove the tput shit
Dale Weiler [Wed, 14 Nov 2012 20:18:52 +0000 (20:18 +0000)]
Remove the tput shit

11 years agoFix teh bugs, thanks div0
Dale Weiler [Wed, 14 Nov 2012 19:38:05 +0000 (19:38 +0000)]
Fix teh bugs, thanks div0

11 years agoClever hack to determine terminal color support for *nix. Uses zero libraries :)
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 :)

11 years agopreliminary segregated console subsystem
Dale Weiler [Wed, 14 Nov 2012 19:17:43 +0000 (19:17 +0000)]
preliminary segregated console subsystem

11 years agoif not() support
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:54:25 +0000 (18:54 +0100)]
if not() support

11 years ago'not' is now a keyword
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:51:45 +0000 (18:51 +0100)]
'not' is now a keyword

11 years agoif not() support
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:54:25 +0000 (18:54 +0100)]
if not() support

11 years ago'not' is now a keyword
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 17:51:45 +0000 (18:51 +0100)]
'not' is now a keyword

11 years agoimprove the warning
Wolfgang (Blub) Bumiller [Tue, 13 Nov 2012 13:46:14 +0000 (14:46 +0100)]
improve the warning

11 years agoWarn (via -Wextensions) when accessing a field-of-array's element without putting...
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

11 years agoMore buddy allocator changes
Dale Weiler [Tue, 13 Nov 2012 02:29:02 +0000 (02:29 +0000)]
More buddy allocator changes

11 years agowhen finishing an array-indexing operation the parser now calls rotate_entfield_array...
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])'

11 years agoFix a very stupid bug in the executor which prevented ADDRESS to have the same global...
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

11 years agoSome allocator changes (still doesn't work)
Dale Weiler [Mon, 12 Nov 2012 23:24:14 +0000 (23:24 +0000)]
Some allocator changes (still doesn't work)

11 years agofix wrong const qualifier
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 23:11:07 +0000 (00:11 +0100)]
fix wrong const qualifier

11 years agoallowing inexing of array-fields
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 22:35:47 +0000 (23:35 +0100)]
allowing inexing of array-fields

11 years agoarray-field setter needs to use STOREP*
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 22:05:44 +0000 (23:05 +0100)]
array-field setter needs to use STOREP*

11 years agosupport for ast_entfield nodes with specific output types, fixing array-field instant...
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

11 years agoadd an asterror message for ast_entfield_new with a wrong type
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

11 years agoentity-array-field-setter generation
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 21:31:54 +0000 (22:31 +0100)]
entity-array-field-setter generation

11 years agocode to instantiate field-array accessors
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 21:24:11 +0000 (22:24 +0100)]
code to instantiate field-array accessors

11 years agoPreparing to generate accessors for field arrays
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 21:16:18 +0000 (22:16 +0100)]
Preparing to generate accessors for field arrays

11 years agomore factorizing and shortening of code
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 20:12:25 +0000 (21:12 +0100)]
more factorizing and shortening of code

11 years agoshorten some code
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 19:51:12 +0000 (20:51 +0100)]
shorten some code

11 years agogenearting field arrays
Wolfgang (Blub) Bumiller [Mon, 12 Nov 2012 19:33:49 +0000 (20:33 +0100)]
genearting field arrays

11 years agoMore work on buddy allocator
Dale Weiler [Mon, 12 Nov 2012 15:32:25 +0000 (15:32 +0000)]
More work on buddy allocator

11 years agoJS stuff
Dale Weiler [Mon, 12 Nov 2012 02:59:10 +0000 (02:59 +0000)]
JS stuff

11 years agoworking on a buddy allocator for gmqcc (initial code base)
Dale Weiler [Mon, 12 Nov 2012 01:35:01 +0000 (01:35 +0000)]
working on a buddy allocator for gmqcc (initial code base)

11 years agoqcvm -trace now shows the current function name and nest-depth
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 22:57:42 +0000 (23:57 +0100)]
qcvm -trace now shows the current function name and nest-depth

11 years agocall ir_function_finalize on array accessors otherwise they'll blow up stuff
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 22:46:03 +0000 (23:46 +0100)]
call ir_function_finalize on array accessors otherwise they'll blow up stuff

11 years agoapply the typemask where previously forgotten
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 22:39:40 +0000 (23:39 +0100)]
apply the typemask where previously forgotten

11 years agoshow the function name for CALLs in disasm
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 22:36:03 +0000 (23:36 +0100)]
show the function name for CALLs in disasm

11 years agoGenerating function-local arrays
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 22:31:57 +0000 (23:31 +0100)]
Generating function-local arrays

11 years agofix an uninitialized value
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 20:32:04 +0000 (21:32 +0100)]
fix an uninitialized value

11 years agocalling the array setter when required
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 20:27:02 +0000 (21:27 +0100)]
calling the array setter when required

11 years agoFix array-index codegen conditions
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 18:02:50 +0000 (19:02 +0100)]
Fix array-index codegen conditions

11 years agoFixing lexer to not classify wrong tokens as operators
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 17:57:02 +0000 (18:57 +0100)]
Fixing lexer to not classify wrong tokens as operators

11 years agohandling of op-[
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 17:54:08 +0000 (18:54 +0100)]
handling of op-[

11 years agoHandling [ in the SYA
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 17:45:43 +0000 (18:45 +0100)]
Handling [ in the SYA

11 years agoindex operator actually has 2 operands, not 0
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 17:45:20 +0000 (18:45 +0100)]
index operator actually has 2 operands, not 0

11 years agolexer needs to fill the token for the index operator with actual content...
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 17:31:37 +0000 (18:31 +0100)]
lexer needs to fill the token for the index operator with actual content...

11 years agoarray index opening-paren can now return TOKEN_OPERATOR, partially handled in SYA
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 15:43:16 +0000 (16:43 +0100)]
array index opening-paren can now return TOKEN_OPERATOR, partially handled in SYA

11 years agoSY_PAREN_ constants to replace magic numbers
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 15:36:20 +0000 (16:36 +0100)]
SY_PAREN_ constants to replace magic numbers

11 years agoget-accessor calling in ast_array_index_codegen
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 15:32:59 +0000 (16:32 +0100)]
get-accessor calling in ast_array_index_codegen

11 years agoStore accessors in the ast_value for access from within the ast - generate accessors...
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 15:22:09 +0000 (16:22 +0100)]
Store accessors in the ast_value for access from within the ast - generate accessors after generating all the globals to not mess up the order of globals in the output

11 years agoarray accessor function genaration
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 15:06:27 +0000 (16:06 +0100)]
array accessor function genaration

11 years agoproperly in all situations where an array is part of a function's return type
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 13:17:48 +0000 (14:17 +0100)]
properly in all situations where an array is part of a function's return type

11 years agoDon't allow arrays and other unsupported parameter types to be used in parameter...
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 13:08:02 +0000 (14:08 +0100)]
Don't allow arrays and other unsupported parameter types to be used in parameter lists

11 years agoStarting to add error messages for when using array types in expressions
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 11:32:47 +0000 (12:32 +0100)]
Starting to add error messages for when using array types in expressions

11 years agoast->ir for TYPE_ARRAY globals
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 11:14:44 +0000 (12:14 +0100)]
ast->ir for TYPE_ARRAY globals

11 years agoneed to use ast_unref rather than ast_delete on the parsed array-size otherwise we...
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 11:13:34 +0000 (12:13 +0100)]
need to use ast_unref rather than ast_delete on the parsed array-size otherwise we end up deleting constants

11 years agoRemoved -O3 from Makefile again
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 10:52:05 +0000 (11:52 +0100)]
Removed -O3 from Makefile again

11 years agoadding opts_max_array_size with a default of 1024, adding some TODO errors for arrays...
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 10:09:36 +0000 (11:09 +0100)]
adding opts_max_array_size with a default of 1024, adding some TODO errors for arrays in the AST

11 years agofor arrays, ast_value will contain several ir_values, ir_v will point to the [0]...
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 09:51:40 +0000 (10:51 +0100)]
for arrays, ast_value will contain several ir_values, ir_v will point to the [0] element

11 years agoFixing execloop indentation
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 09:40:31 +0000 (10:40 +0100)]
Fixing execloop indentation

11 years agoparser_compile_file vs parser_compile_string
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 09:32:43 +0000 (10:32 +0100)]
parser_compile_file vs parser_compile_string

11 years agolex_open_string
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 09:27:09 +0000 (10:27 +0100)]
lex_open_string

11 years agoparse arrays
Wolfgang (Blub) Bumiller [Sun, 11 Nov 2012 09:04:57 +0000 (10:04 +0100)]
parse arrays

11 years agofirst parsing of [ - pushing temp changes
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 20:55:56 +0000 (21:55 +0100)]
first parsing of [ - pushing temp changes

11 years ago-fadjust-vector-fields is now on by default in -std=gmqcc
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 19:21:02 +0000 (20:21 +0100)]
-fadjust-vector-fields is now on by default in -std=gmqcc

11 years agoarray-subscript operator entries
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 19:04:10 +0000 (20:04 +0100)]
array-subscript operator entries

11 years agoPreparing to parse arrays: adding TYPE_ARRAY and union/struct TYPE_ constants to...
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 18:35:52 +0000 (19:35 +0100)]
Preparing to parse arrays: adding TYPE_ARRAY and union/struct TYPE_ constants to be consistent with fteqcc, filled type-arrays with their data, attempting to parse an array variable and added some error messages to the IR in case of unhandled types

11 years agoSupport non-const initialized locals
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 15:00:32 +0000 (16:00 +0100)]
Support non-const initialized locals

11 years agoShouldn't require a 'local' keyword for local fieldpointers
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 14:43:43 +0000 (15:43 +0100)]
Shouldn't require a 'local' keyword for local fieldpointers

11 years agoLocals of type .vector will now also properly generate all 3 locals
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 11:44:18 +0000 (12:44 +0100)]
Locals of type .vector will now also properly generate all 3 locals

11 years agoglobals of type .vector will now properly generate 3 globals
Wolfgang (Blub) Bumiller [Sat, 10 Nov 2012 11:42:38 +0000 (12:42 +0100)]
globals of type .vector will now properly generate 3 globals