Update of /cvsroot/simspark/simspark/spark/utility/sfsexp
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12419
Modified Files:
sexp.h
Log Message:
(merged from RSGEDIT_FILEREF branch)
- added 'line' member to sexp_t struct that augments a parsed s-expression with the line number of the source file it was read from
- added 'line' member to the parsr continuation struct that counts the number of new lines read so far. This is used to calculate the line number in the parser
Index: sexp.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/utility/sfsexp/sexp.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** sexp.h 19 Dec 2005 19:13:30 -0000 1.1
--- sexp.h 17 May 2007 17:38:21 -0000 1.2
***************
*** 291,294 ****
--- 291,299 ----
*/
unsigned int binlength;
+
+ /**
+ * The line number of the element start
+ */
+ unsigned int line;
} sexp_t;
***************
*** 462,465 ****
--- 467,475 ----
*/
char *bindata;
+
+ /**
+ * The current line number, i.e. the number of \n seen
+ */
+ unsigned int line;
} pcont_t;
|