Changeset 33 for rxutilex/trunk/rxutilex.c
- Timestamp:
- Jul 11, 2016, 2:44:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.