Commit graph

480 commits

Author SHA1 Message Date
Wolfgang (Blub) Bumiller
7324eee421 Merge branch 'master' into blub/bc3 2012-08-08 12:09:31 +02:00
Wolfgang (Blub) Bumiller
2bf40b4104 include opts_debug and opts_memchk in exec.c's standalone part for now to have it compile 2012-08-08 12:07:37 +02:00
Wolfgang (Blub) Bumiller
ae251d3914 Merge branch 'master' into blub/bc3 2012-08-08 12:05:08 +02:00
Wolfgang (Blub) Bumiller
7fed5bf41f make it also compilable with -std=c99 by not redefining extra_semicolon_, by appending N to it 2012-07-30 13:48:53 +02:00
Wolfgang Bumiller
47a8a69f1c ast nodes now store their type id, and can be checked via ast_istype 2012-07-29 10:03:13 +02:00
Wolfgang Bumiller
03307a0903 ir_block_create_fieldaddress to pass on fieldtype from its input field 2012-07-28 21:59:34 +02:00
Wolfgang Bumiller
06ee0dc4f7 test/ast-test.c must define opts_ variables since we don't compile main.c into it 2012-07-28 21:56:35 +02:00
Wolfgang Bumiller
d05bee94d1 code_alloc_field to allocate entityfield data, ir now has ir_builder_create_field - so that globals and fields can be created separately - properly 2012-07-28 21:55:01 +02:00
Wolfgang Bumiller
71d79d99d3 parser_init,compile,finish,cleanup - used in main 2012-07-28 21:21:41 +02:00
Wolfgang Bumiller
e3dc56fc92 Merging master and adopting its main.c 2012-07-28 21:14:03 +02:00
Wolfgang Bumiller
a7957a9fdc Merge branch 'master' into cmdline 2012-07-28 21:04:59 +02:00
Wolfgang Bumiller
9216ee50f5 use util_ functions for strtocmd and strtononcmd 2012-07-28 19:31:14 +02:00
Wolfgang Bumiller
93105d4c2c Added missing parameter names 2012-07-28 19:31:02 +02:00
Wolfgang Bumiller
3321748e4a util_strtocmd, util_strtononcmd 2012-07-28 19:28:27 +02:00
Wolfgang Bumiller
c81eb57480 reuse old opts_, renamed all opt_ to opts_ to be consistent, making code.c use OPTS_FLAG() for OMIT_NULL_BYTES and DARKPLACES_STRING_TABLE_BUG 2012-07-28 19:20:19 +02:00
Wolfgang Bumiller
25e49a669d flags.def and warns.def containing defined flags and warnings 2012-07-28 19:09:44 +02:00
Wolfgang Bumiller
342836c6df adapting to change in master: ast_store takes an ast_expression 2012-07-28 18:17:29 +02:00
Wolfgang Bumiller
3d21db9896 Merge branch 'master' into blub/bc3 2012-07-28 18:13:24 +02:00
Wolfgang Bumiller
c5ba27da6f ast_store to take ast_expression on its left, rather than ast_value. Assigning to a vector member would not put an ast_value on the left, but an ast_member, thus: ast_expression now already 2012-07-28 18:13:12 +02:00
Wolfgang Bumiller
ae12583ada Adding more cleanup; checking whether or not a return has the right type 2012-07-28 16:06:55 +02:00
Wolfgang Bumiller
17643c9940 consistency ftw 2012-07-28 15:57:28 +02:00
Wolfgang Bumiller
bddf0bb384 -fhelp to list -f flags, -Whelp to list -W options 2012-07-28 14:50:07 +02:00
Wolfgang Bumiller
ac26c2f2f2 Add -foverlap-locals - something we really should make possible 2012-07-28 14:48:02 +02:00
Wolfgang Bumiller
3072ce7eba Added handler for -W 2012-07-28 13:59:35 +02:00
Wolfgang Bumiller
d06cc6c2d1 Fixing a warning 2012-07-28 13:50:12 +02:00
Wolfgang Bumiller
244e6a0a4d Importing gmqcc.1 2012-07-28 13:47:14 +02:00
Wolfgang Bumiller
5e026dd62a Print out all the information parsed from the commandline 2012-07-28 13:20:06 +02:00
Wolfgang Bumiller
ddfd44e2a4 gcc style long option support and -std=foo added 2012-07-28 12:59:33 +02:00
Wolfgang Bumiller
3c462539a6 Commandline handling first draft 2012-07-28 12:36:20 +02:00
Wolfgang Bumiller
10d70328c8 executor: prog_delete: deleting builtins properly - unless statically allocated; added a qc_builtins array for the standalone executor containing 'print' 2012-07-27 19:27:56 +02:00
Wolfgang Bumiller
a3919a6074 Merge branch 'master' into blub/bc3 2012-07-27 19:18:21 +02:00
Wolfgang Bumiller
5f0a6bcc53 _MEM_ -> MEM_ again at use 2012-07-27 19:18:04 +02:00
Wolfgang Bumiller
b76ffe8304 Merging master with newly merged executor 2012-07-27 19:17:03 +02:00
Wolfgang Bumiller
f8b3081c44 Merging master and adapting _MEM_* on new mem-vector functions 2012-07-27 19:13:03 +02:00
Wolfgang Bumiller
975356cbce Merge branch 'master' into blub/bc3 2012-07-27 19:02:39 +02:00
Wolfgang Bumiller
81fd77da38 _MEM_... -> MEM_... 2012-07-27 19:02:18 +02:00
Wolfgang Bumiller
75812d486a Handling output file, writing output file 2012-07-27 18:22:39 +02:00
Wolfgang Bumiller
79753d05bd Handling vector constants now too 2012-07-27 16:20:53 +02:00
Wolfgang Bumiller
b88e25ed81 Handling string-immediates 2012-07-27 16:10:43 +02:00
Wolfgang Bumiller
ea09553b32 Merge branch 'master' into blub/bc3 2012-07-27 15:27:41 +02:00
Wolfgang Bumiller
42168fde00 removing an old comment 2012-07-27 15:27:34 +02:00
Wolfgang Bumiller
0a5e5c07e5 Adapting to changes of where parameters are stored in master 2012-07-27 15:26:48 +02:00
Wolfgang Bumiller
e417eb2b33 Merge branch 'master' into blub/bc3 2012-07-27 15:24:13 +02:00
Wolfgang Bumiller
2674982854 Moving parameters to from ast_value to ast_expression_common, it's part of the type after all 2012-07-27 15:22:39 +02:00
Wolfgang Bumiller
6379d39bb7 Starting some typechecking. Function parameters must be part of ast_expression_common, they're part of the type, not ast_value... 2012-07-27 15:07:25 +02:00
Wolfgang Bumiller
65f4f03aa5 Handling calls correctly now 2012-07-27 15:02:39 +02:00
Wolfgang Bumiller
c79bc784a3 Parsing function calls 2012-07-27 14:40:43 +02:00
Wolfgang Bumiller
64c230d222 Parsing a comma as an operator now - unless noop is true 2012-07-27 13:47:01 +02:00
Wolfgang Bumiller
3618d071ff fixing comma operator 2012-07-27 13:42:02 +02:00
Wolfgang Bumiller
f103544c95 Merge branch 'master' into blub/bc3 2012-07-27 13:40:34 +02:00