Author: tkreuzer
Date: Wed Nov 10 21:30:55 2010
New Revision: 49548
URL:
http://svn.reactos.org/svn/reactos?rev=49548&view=rev
Log:
[SPEC2PDEF]
- $ is an allowed character for symbol names
- Fix a bug that would skip empty lines improperly
- allow whitespaces after (
Modified:
branches/cmake-bringup/tools/spec2pdef/spec2pdef.c
Modified: branches/cmake-bringup/tools/spec2pdef/spec2pdef.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/spec2pdef/s…
==============================================================================
--- branches/cmake-bringup/tools/spec2pdef/spec2pdef.c [iso-8859-1] (original)
+++ branches/cmake-bringup/tools/spec2pdef/spec2pdef.c [iso-8859-1] Wed Nov 10 21:30:55
2010
@@ -39,7 +39,7 @@
int
IsSeparator(char chr)
{
- return (chr <= '*' || chr == ';');
+ return ((chr <= '*' && chr != '$') || chr ==
';');
}
int
@@ -261,7 +261,7 @@
// nLine, TokenLength(pcLine), pcLine);
/* Skip white spaces */
- while (*pc <= ' ' && *pc != 0) pc++;
+ while (*pc == ' ' || *pc == '\t') pc++;
/* Skip empty lines, stop at EOF */
if (*pc == ';' || *pc <= '#') continue;
@@ -354,6 +354,9 @@
return -14;
}
+ /* Skip whitespaces */
+ while (*pc == ' ' || *pc == '\t') pc++;
+
exp.nStackBytes = 0;
while (*pc >= '0')
{