From: Markus R. <rol...@us...> - 2007-05-17 17:41:49
|
Update of /cvsroot/simspark/simspark/spark/utility/sfsexp In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13660 Modified Files: sexp.c Log Message: (merged from RSGEDIT_FILEREF) - properly init 'line' counter when creating an sexp_t struct Index: sexp.c =================================================================== RCS file: /cvsroot/simspark/simspark/spark/utility/sfsexp/sexp.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sexp.c 15 Mar 2007 07:26:30 -0000 1.2 --- sexp.c 17 May 2007 17:41:45 -0000 1.3 *************** *** 96,99 **** --- 96,100 ---- fakehead->next = NULL; /* this is the important part of fakehead */ fakehead->aty = sx->aty; + fakehead->line = 0; if (fakehead->ty == SEXP_VALUE) { *************** *** 496,499 **** --- 497,502 ---- sx->list = sx->next = NULL; + sx->line = 0; + return sx; } |