warzone2100/lib/script
Giel van Schijndel 1252538097 * Make pIdent for VAR_SYMBOL and FUNC_SYMBOL const so that we're const correct with the function tables in scripttabs.c
* Replace "nstr = malloc(strlen(str) + 1); strcpy(nstr, str);" by using "nstr = strdup(str);" instead
 * Remove a non-sensical self-assignment ("pIdent = pIdent;")
 * In scriptAddVariable:
  * "Overallocate" for the new VAR_SYMBOL so that we can store the identifier in that single chunk of memory
   * This allows deallocating the entire structure with a single free() call (which prevents problems with the constness change to VAR_SYMBOL mentioned above)
  * Don't take ownership of the memory pointed to by psVarIdent->pIdent, just copy its contents instead
  * Make FREE_VARIDENTDECL a function instead: freeVARIDENTDECL
   * In this function also free psDcl->pIdent


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4696 4a71c877-e1ca-e34f-864e-861f7616d084
2008-04-20 15:18:28 +00:00
..
Makefile.am Move all stuff that actually belongs in CPPFLAGS (but is called CFLAGS) to AM_CPPFLAGS 2008-03-10 10:50:58 +00:00
Makefile.raw Proposed fix for non-MSVC buildsystems 2007-01-09 22:07:58 +00:00
chat_lexer.l Using the kludge for GNU Flex < 2.5.30 was slightly incorrect. Correct way is present in 2.5.9 already. 2008-03-28 11:05:19 +00:00
chat_parser.y TRUE->true, FALSE->false (except in scripts) 2008-03-24 16:51:17 +00:00
chat_processing.h Rename a few files for consistent naming. base.h -> basedef.h. 2007-07-12 19:56:16 +00:00
codeprint.c Make MSVC happy 2008-03-26 16:42:16 +00:00
codeprint.h Enhance copeprint capabilities and add more 2string functions for the scripting engine. 2008-03-26 00:45:03 +00:00
event.c Add -Wcast-align and -Wmissing-declarations to autoconf debug builds, and fix warnings. 2008-03-28 23:28:44 +00:00
event.h Cleanup #includes a bit 2008-03-16 12:39:08 +00:00
evntsave.c TRUE->true, FALSE->false (except in scripts) 2008-03-24 16:51:17 +00:00
evntsave.h Add GPL notices to all sourcecode files. 2007-01-15 20:09:25 +00:00
interp.c Revert 4344-4347, 4355, 4357, 4358, 4362: They caused too much slowdown in the scripting engine 2008-03-27 18:38:25 +00:00
interp.h Revert 4344-4347, 4355, 4357, 4358, 4362: They caused too much slowdown in the scripting engine 2008-03-27 18:38:25 +00:00
parse.h * Make pIdent for VAR_SYMBOL and FUNC_SYMBOL const so that we're const correct with the function tables in scripttabs.c 2008-04-20 15:18:28 +00:00
script.c Revert 4344-4347, 4355, 4357, 4358, 4362: They caused too much slowdown in the scripting engine 2008-03-27 18:38:25 +00:00
script.h Move interp*2string to script*2string 2008-03-26 14:57:35 +00:00
script.vcproj Get rid of unnecessary warnings when compiling release build using MSVC. 2008-04-01 15:56:39 +00:00
script_lexer.l Add -Wcast-align and -Wmissing-declarations to autoconf debug builds, and fix warnings. 2008-03-28 23:28:44 +00:00
script_parser.y * Make pIdent for VAR_SYMBOL and FUNC_SYMBOL const so that we're const correct with the function tables in scripttabs.c 2008-04-20 15:18:28 +00:00
stack.c Don't abuse interpCheckEquiv() since most type checking is done during compilation. 2008-04-16 19:14:58 +00:00
stack.h Allow a script to have more than strings at a time. 2008-04-14 20:12:27 +00:00