Tell stc to NOT to inline #not as it has different meaning in PetitParser...
authorJan Vrany <jan.vrany@fit.cvut.cz>
Mon, 13 Apr 2015 14:19:55 +0100
changeset 426 2a65c972b937
parent 425 0a5c4929af56
child 427 a7f5e6de19d2
Tell stc to NOT to inline #not as it has different meaning in PetitParser...
tests/Make.proto
tests/Make.spec
tests/PPMappingTest.st
tests/stx_goodies_petitparser_tests.st
--- a/tests/Make.proto	Mon Apr 13 14:16:24 2015 +0100
+++ b/tests/Make.proto	Mon Apr 13 14:19:55 2015 +0100
@@ -112,7 +112,7 @@
 
 
 # build all packages containing referenced classes for this package
-# they are nor needed to compile the package
+# they are not needed to compile the package (but later, to load it)
 references:
 
 
--- a/tests/Make.spec	Mon Apr 13 14:16:24 2015 +0100
+++ b/tests/Make.spec	Mon Apr 13 14:19:55 2015 +0100
@@ -34,7 +34,7 @@
 # ********** OPTIONAL: MODIFY the next line(s) ***
 # STCLOCALOPTIMIZATIONS=+optinline +inlineNew
 # STCLOCALOPTIMIZATIONS=+optspace3
-STCLOCALOPTIMIZATIONS=+optspace3
+STCLOCALOPTIMIZATIONS=+optspace3 -inlinenot
 
 
 # Argument(s) to the stc compiler (stc --usage).
--- a/tests/PPMappingTest.st	Mon Apr 13 14:16:24 2015 +0100
+++ b/tests/PPMappingTest.st	Mon Apr 13 14:19:55 2015 +0100
@@ -1,5 +1,7 @@
 "{ Package: 'stx:goodies/petitparser/tests' }"
 
+"{ NameSpace: Smalltalk }"
+
 PPAbstractParserTest subclass:#PPMappingTest
 	instanceVariableNames:''
 	classVariableNames:''
@@ -88,6 +90,11 @@
     ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPMappingTest.st,v 1.3 2012-05-04 22:03:40 vrany Exp $'
 !
 
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
+!
+
 version_SVN
     ^ '§Id: PPMappingTest.st 4 2010-12-18 17:02:23Z kursjan §'
 ! !
--- a/tests/stx_goodies_petitparser_tests.st	Mon Apr 13 14:16:24 2015 +0100
+++ b/tests/stx_goodies_petitparser_tests.st	Mon Apr 13 14:19:55 2015 +0100
@@ -1,5 +1,9 @@
+"{ Encoding: utf8 }"
+
 "{ Package: 'stx:goodies/petitparser/tests' }"
 
+"{ NameSpace: Smalltalk }"
+
 LibraryDefinition subclass:#stx_goodies_petitparser_tests
 	instanceVariableNames:''
 	classVariableNames:''
@@ -69,6 +73,14 @@
     )
 !
 
+stcOptimizationOptions
+    "do not inline the not operation here - it is overwritten"
+
+    ^ super stcOptimizationOptions , ' -inlinenot'
+
+    "Created: / 13-04-2015 / 14:18:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 subProjects
     "list packages which are known as subprojects.
      The generated makefile will enter those and make there as well.