[Spambayes-checkins] spambayes/Outlook2000/dialogs/resources
rcparser.py, 1.7, 1.8
Mark Hammond
mhammond at users.sourceforge.net
Thu Aug 21 07:09:39 EDT 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs/resources
In directory sc8-pr-cvs1:/tmp/cvs-serv2683
Modified Files:
rcparser.py
Log Message:
Allow "-1" as a control literal.
Index: rcparser.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/resources/rcparser.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** rcparser.py 19 Aug 2003 12:17:07 -0000 1.7
--- rcparser.py 21 Aug 2003 13:09:37 -0000 1.8
***************
*** 315,321 ****
self.getCommaToken()
self.getToken()
if self.token=='-':
! raise RuntimeError, \
! "Negative literal in rc script - don't know what to do"
control.id = self.token
control.idNum = self.addId(control.id)
--- 315,324 ----
self.getCommaToken()
self.getToken()
+ # msvc seems to occasionally replace "IDC_STATIC" with -1
if self.token=='-':
! if self.getToken() != '1':
! raise RuntimeError, \
! "Negative literal in rc script (other than -1) - don't know what to do"
! self.token = "IDC_STATIC"
control.id = self.token
control.idNum = self.addId(control.id)
More information about the Spambayes-checkins
mailing list