Browse Source

+ all unknown function ifdef with
conditionnal unknown_functions
testwin works now, but windowcreate still fails !!

pierre 27 years ago
parent
commit
06e24d00f4
9 changed files with 1992 additions and 1935 deletions
  1. 401 401
      rtl/win32/ascdef.pp
  2. 13 1
      rtl/win32/ascdef.sed
  3. 393 393
      rtl/win32/ascfun.pp
  4. 10 2
      rtl/win32/base.pp
  5. 351 331
      rtl/win32/func.pp
  6. 8 3
      rtl/win32/makefile
  7. 405 405
      rtl/win32/unidef.pp
  8. 15 3
      rtl/win32/unidef.sed
  9. 396 396
      rtl/win32/unifun.pp

File diff suppressed because it is too large
+ 401 - 401
rtl/win32/ascdef.pp


+ 13 - 1
rtl/win32/ascdef.sed

@@ -1,9 +1,21 @@
+# function names with parameters
 s/function \([^(]*\)A *(/function \1(/
 s/function \([^(]*\)A *(/function \1(/
+# procedure names with parameters
 s/procedure \([^(]*\)A *(/procedure \1(/
 s/procedure \([^(]*\)A *(/procedure \1(/
+# function names without parameters
 s/function \([^:(]*\)A *: */function \1 : /
 s/function \([^:(]*\)A *: */function \1 : /
+# procedure names without parameters
 s/procedure \([^;(]*\)A *;/procedure \1;/
 s/procedure \([^;(]*\)A *;/procedure \1;/
+# function return value
 s/\([^ \t]*\)A *:=/\1:=/
 s/\([^ \t]*\)A *:=/\1:=/
+# function call with parameters
+s/\:=\(.*\)A(/:=\1(/
+# function call without parameters
+s/\:=\(.*\)A *;/:=\1;/
+# unit name
 s/ascfun;/ascdef;/
 s/ascfun;/ascdef;/
+# cvs name
 s/ascfun.pp,v/ascdef.pp,v/
 s/ascfun.pp,v/ascdef.pp,v/
-s/ASCIIFUNCTIONS/ASCIIFUNCFIONSDEFAULT/
+# unit conditionnal
+s/ASCIIFUNCTIONS/ASCIIFUNCTIONSDEFAULT/
 
 

File diff suppressed because it is too large
+ 393 - 393
rtl/win32/ascfun.pp


+ 10 - 2
rtl/win32/base.pp

@@ -156,7 +156,10 @@ unit base;
      FLOAT = real;
      FLOAT = real;
   { typedef GLOBALHANDLE;  }
   { typedef GLOBALHANDLE;  }
 
 
-     HANDLE = pointer;
+  {   HANDLE = pointer;
+    need to be compatible 
+    with longint for Delphi !! }
+     HANDLE = longint;{ or should it be cardinal ?? PM }
 
 
      HACCEL = HANDLE;
      HACCEL = HANDLE;
 
 
@@ -1210,7 +1213,12 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.5  1998-08-31 11:53:53  pierre
+  Revision 1.6  1998-09-04 17:17:32  pierre
+    + all unknown function ifdef with
+      conditionnal unknown_functions
+      testwin works now, but windowcreate still fails !!
+
+  Revision 1.5  1998/08/31 11:53:53  pierre
     * compilable windows.pp file
     * compilable windows.pp file
       still to do :
       still to do :
        - findout problems
        - findout problems

File diff suppressed because it is too large
+ 351 - 331
rtl/win32/func.pp


+ 8 - 3
rtl/win32/makefile

@@ -360,10 +360,10 @@ test:
 # only if sed is present 
 # only if sed is present 
 ifdef SED
 ifdef SED
 ascdef.pp : ascfun.pp ascdef.sed
 ascdef.pp : ascfun.pp ascdef.sed
-	$(SED) -f ascdef.sed ascfun.pp > ascdef.pp
+	sed -f ascdef.sed ascfun.pp > ascdef.pp
 
 
 unidef.pp : unifun.pp unidef.sed
 unidef.pp : unifun.pp unidef.sed
-	$(SED) -f unidef.sed unifun.pp > unidef.pp
+	sed -f unidef.sed unifun.pp > unidef.pp
 endif
 endif
 
 
 
 
@@ -375,7 +375,12 @@ include $(CFG)/makefile.def
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.11  1998-09-04 12:33:12  pierre
+# Revision 1.12  1998-09-04 17:17:36  pierre
+#   + all unknown function ifdef with
+#     conditionnal unknown_functions
+#     testwin works now, but windowcreate still fails !!
+#
+# Revision 1.11  1998/09/04 12:33:12  pierre
 #   + added SED testing for ascdef.pp and unidef.pp
 #   + added SED testing for ascdef.pp and unidef.pp
 #   * func.pp ready
 #   * func.pp ready
 #     still some functions missing (commented out for now)
 #     still some functions missing (commented out for now)

File diff suppressed because it is too large
+ 405 - 405
rtl/win32/unidef.pp


+ 15 - 3
rtl/win32/unidef.sed

@@ -1,9 +1,21 @@
+# function names with parameters
 s/function \([^(]*\)W *(/function \1(/
 s/function \([^(]*\)W *(/function \1(/
+# procedure names with parameters
 s/procedure \([^(]*\)W *(/procedure \1(/
 s/procedure \([^(]*\)W *(/procedure \1(/
+# function names without parameters
 s/function \([^:(]*\)W *: */function \1 : /
 s/function \([^:(]*\)W *: */function \1 : /
+# procedure names without parameters
 s/procedure \([^;(]*\)W *;/procedure \1;/
 s/procedure \([^;(]*\)W *;/procedure \1;/
+# function return value
 s/\([^ \t]*\)W *:=/\1:=/
 s/\([^ \t]*\)W *:=/\1:=/
-s/unifun;/unidef;/
-s/unifun.pp,v/unidef.pp,v/
-s/UNICODEFUNCTIONS/UNICODEFUNCFIONSDEFAULT/
+# function call with parameters
+s/\:=\(.*\)W(/:=\1(/
+# function call without parameters
+s/\:=\(.*\)W *;/:=\1;/
+# unit name
+s/ascfun;/ascdef;/
+# cvs name
+s/ascfun.pp,v/ascdef.pp,v/
+# unit conditionnal
+s/UNICODEFUNCTIONS/UNICODEFUNCTIONSDEFAULT/
 
 

File diff suppressed because it is too large
+ 396 - 396
rtl/win32/unifun.pp


Some files were not shown because too many files changed in this diff