Browse Source

fcl-passrc: less hints

git-svn-id: trunk@45963 -
Mattias Gaertner 5 years ago
parent
commit
fc5a1d81c7

+ 11 - 0
packages/fcl-passrc/src/fcl-passrc.inc

@@ -4,8 +4,19 @@
 {$ifdef fpc}
 {$ifdef fpc}
   {$define UsePChar}
   {$define UsePChar}
   {$define HasInt64}
   {$define HasInt64}
+  {$define UsePChar}
+  {$define UseAnsiStrings}
+  {$define HasStreams}
+  {$IF FPC_FULLVERSION<30101}
+    {$define EmulateArrayInsert}
+  {$endif}
+  {$define HasFS}
 {$endif}
 {$endif}
 
 
+{$IFDEF NODEJS}
+  {$define HasFS}
+{$ENDIF}
+
 {$IF FPC_FULLVERSION>30100}
 {$IF FPC_FULLVERSION>30100}
   {$warn 6058 off} // cannot inline
   {$warn 6058 off} // cannot inline
 {$ENDIF}
 {$ENDIF}

+ 2 - 4
packages/fcl-passrc/src/pastree.pp

@@ -14,15 +14,13 @@
 
 
  **********************************************************************}
  **********************************************************************}
 
 
-{$mode objfpc}
-{$h+}
-
 unit PasTree;
 unit PasTree;
 
 
+{$i fcl-passrc.inc}
+
 {$if defined(debugrefcount) or defined(VerbosePasTreeMem) or defined(VerbosePasResolver)}
 {$if defined(debugrefcount) or defined(VerbosePasTreeMem) or defined(VerbosePasResolver)}
   {$define EnablePasTreeGlobalRefCount}
   {$define EnablePasTreeGlobalRefCount}
 {$endif}
 {$endif}
-{$inline on}
 
 
 interface
 interface
 
 

+ 1 - 16
packages/fcl-passrc/src/pscanner.pp

@@ -16,22 +16,7 @@
 
 
 unit PScanner;
 unit PScanner;
 
 
-{$mode objfpc}
-{$h+}
-
-{$ifdef fpc}
-  {$define UsePChar}
-  {$define UseAnsiStrings}
-  {$define HasStreams}
-  {$IF FPC_FULLVERSION<30101}
-    {$define EmulateArrayInsert}
-  {$endif}
-  {$define HasFS}
-{$endif}
-
-{$IFDEF NODEJS}
-  {$define HasFS}
-{$ENDIF}
+{$i fcl-passrc.inc}
 
 
 interface
 interface