Changeset 33
- Timestamp:
- Jul 11, 2016, 2:44:46 PM (9 years ago)
- Location:
- rxutilex/trunk
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
rxutilex/trunk/Makefile
r24 r33 1 1 # Makefile for IBM C Compiler 3.x and NMAKE32. 2 3 SHARED = ..\..\shared 4 2 5 CC = icc 3 6 LINK = ilink 4 7 RC = rc 5 CFLAGS = /Ss /Q /Wuse /Gm 6 #CFLAGS = /Ss /Q /Wuse /Gm /Gd 8 CFLAGS = /Ss /Q /Wuse /Gm /I$(SHARED) /DSZ_ERROR_NAME="\"SYS2ERR\"" 9 #CFLAGS = /Ss /Q /Wuse /Gm /Gd /I$(SHARED) /DSZ_ERROR_NAME="\"SYS2ERR\"" 7 10 LFLAGS = /NOLOGO 8 11 NAME = rxutilex … … 15 18 !endif 16 19 17 $(NAME).dll : $(NAME).obj Makefile20 $(NAME).dll : $(NAME).obj shfuncs.obj Makefile 18 21 makedesc -D"Extended REXX Utility Functions" -N"Alex Taylor" -V"^#define=SZ_VERSION,rxutilex.c" $(NAME).def 19 $(LINK) $(LFLAGS) $(NAME).obj $(NAME).def $(LIBS) /O:$@22 $(LINK) $(LFLAGS) $(NAME).obj shfuncs.obj $(NAME).def $(LIBS) /O:$@ 20 23 # @dllrname.exe $@ CPPOM30=OS2OM30 /Q /R 21 24 22 $(NAME).obj : $(NAME).c $(NAME).def Makefile25 $(NAME).obj : $(NAME).c {$(SHARED)}shfuncs.h $(NAME).def Makefile 23 26 $(CC) $(CFLAGS) /C /Ge- $(NAME).c 27 28 shfuncs.obj : $(SHARED)\shfuncs.c {$(SHARED)}shfuncs.h Makefile 29 $(CC) $(CFLAGS) /C /Ge- $(SHARED)\shfuncs.c 24 30 25 31 clean : 26 32 if exist $(NAME).dll del $(NAME).dll 27 33 if exist $(NAME).obj del $(NAME).obj 34 if exist shfuncs.obj del shfuncs.obj 28 35 29 36 -
rxutilex/trunk/rxutilex.c
r31 r33 72 72 #include <rexxsaa.h> 73 73 74 75 #include "shfuncs.h" 76 77 74 78 #pragma import( DosGetPrty, "DosGetPrty", "DOSCALL1", 9 ) 75 79 USHORT APIENTRY16 DosGetPrty( USHORT usScope, PUSHORT pusPriority, USHORT pid ); … … 83 87 84 88 #define SZ_LIBRARY_NAME "RXUTILEX" // Name of this library 85 #define SZ_ERROR_NAME "SYS2ERR" // REXX variable used to store error codes89 //#define SZ_ERROR_NAME "SYS2ERR" // REXX variable used to store error codes 86 90 #define SZ_VERSION "0.1.3" // Current version of this library 87 91 88 92 // Maximum string lengths... 89 #define US_COMPOUND_MAXZ 250 // ...of a compound variable 93 #ifdef NO_SHARED_SOURCE 94 #define US_COMPOUND_MAXZ 250 // ...of a compound variable 95 #define US_ERRSTR_MAXZ 250 // ...of an error string 96 97 static const char *PSZ_ZERO = "0"; 98 static const char *PSZ_ONE = "1"; 99 #endif 100 90 101 #define US_INTEGER_MAXZ 12 // ...of a 32-bit integer string 91 102 #define US_LONGLONG_MAXZ 21 // ...of a 64-bit integer string 92 103 #define US_STEM_MAXZ ( US_COMPOUND_MAXZ - US_INTEGER_MAXZ ) // ...of a stem 93 #define US_ERRSTR_MAXZ 250 // ...of an error string94 104 #define US_PIDSTR_MAXZ ( CCHMAXPATH + 100 ) // ...of a process information string 95 105 #define US_TIMESTR_MAXZ 256 // ...of a formatted time string … … 103 113 #define FL_TIME_ISO8601 1 104 114 #define FL_TIME_LOCALE 2 105 106 static const char *PSZ_ZERO = "0";107 static const char *PSZ_ONE = "1";108 115 109 116 // List of functions to be registered by Sys2LoadFuncs or dropped by Sys2DropFuncs … … 177 184 // Private internal functions 178 185 ULONG GetProcess( PCSZ pszProgram, PSZ pszFullName, PULONG pulPID, PULONG pulPPID, PULONG pulType, PUSHORT pusPriority, PULONG pulCPU ); // 2016-02-20 SHL 179 BOOL SaveResultString( PRXSTRING prsResult, PCSZ pchBytes, ULONG ulBytes ); // 2016-02-20 SHL 180 BOOL WriteStemElement( PCSZ pszStem, ULONG ulIndex, PCSZ pszValue ); // 2016-02-20 SHL 181 void WriteErrorCode( ULONG ulError, PCSZ pszContext ); // 2016-02-20 SHL 186 187 #ifdef NO_SHARED_SOURCE 188 BOOL SaveResultString( PRXSTRING prsResult, PCSZ pchBytes, ULONG ulBytes ); // 2016-02-20 SHL 189 BOOL WriteStemElement( PCSZ pszStem, ULONG ulIndex, PCSZ pszValue ); // 2016-02-20 SHL 190 void WriteErrorCode( ULONG ulError, PCSZ pszContext ); // 2016-02-20 SHL 191 #endif 182 192 183 193 // MACROS … … 2467 2477 2468 2478 2479 /* MOVED */ 2480 #ifdef NO_SHARED_SOURCE 2481 2469 2482 /* ------------------------------------------------------------------------- * 2470 2483 * SaveResultString * … … 2594 2607 } 2595 2608 2609 #endif -
rxutilex/trunk/rxutilex.def
r31 r33 1 1 LIBRARY RXUTILEX INITINSTANCE TERMINSTANCE 2 2 DATA MULTIPLE NONSHARED 3 DESCRIPTION '@#Alex Taylor:0.1.3#@##1## 30 Mar 2016 18:58:46REINFORCE::::::@@Extended REXX Utility Functions'3 DESCRIPTION '@#Alex Taylor:0.1.3#@##1## 10 May 2016 22:01:20 REINFORCE::::::@@Extended REXX Utility Functions' 4 4 5 5 EXPORTS Sys2LoadFuncs
Note:
See TracChangeset
for help on using the changeset viewer.