Changeset 18
- Timestamp:
- Sep 21, 2014, 9:48:19 AM (11 years ago)
- Location:
- rxutilex/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
rxutilex/trunk/Makefile
r16 r18 3 3 LINK = ilink 4 4 RC = rc 5 CFLAGS = /Ss /Q /Wuse /Gm /Gd 5 CFLAGS = /Ss /Q /Wuse /Gm 6 #CFLAGS = /Ss /Q /Wuse /Gm /Gd 6 7 LFLAGS = /NOLOGO 7 8 NAME = rxutilex … … 17 18 makedesc -D"Extra REXX Utility Functions" -N"Alex Taylor" -V"^#define=SZ_VERSION,rxutilex.c" $(NAME).def 18 19 $(LINK) $(LFLAGS) $(NAME).obj $(NAME).def $(LIBS) /O:$@ 19 @dllrname.exe $@ CPPOM30=OS2OM30 /Q /R20 # @dllrname.exe $@ CPPOM30=OS2OM30 /Q /R 20 21 21 22 $(NAME).obj : $(NAME).c $(NAME).def -
rxutilex/trunk/readme.txt
r17 r18 44 44 BUILD NOTES 45 45 46 The included Makefile is for the IBM C/C++ compiler. Version 3.6 or later47 isrequired in order to support the parsing of 64-bit integers.46 The included Makefile is for the IBM C/C++ compiler. Version 3.65 is 47 required in order to support the parsing of 64-bit integers. 48 48 49 49 -
rxutilex/trunk/rxutilex.c
r17 r18 932 932 PSZ pszTZ, // Pointer to TZ environment var 933 933 pszSetTZ; 934 int iEpoch; // Input epoch time 934 935 time_t ttSeconds; // Input timestamp (seconds) 935 936 struct tm *timeptr; // Timestamp structure … … 943 944 if ( argc >= 1 && RXVALIDSTRING(argv[0]) ) { 944 945 // first argument: epoch time value 945 if (( sscanf( argv[0].strptr, "%d", &ttSeconds )) != 1 ) return ( 40 ); 946 if (( sscanf( argv[0].strptr, "%d", &iEpoch )) != 1 ) return ( 40 ); 947 ttSeconds = (time_t) iEpoch; 946 948 } 947 949 … … 1181 1183 1182 1184 // Return the calculated time value 1183 sprintf( szEpochTime, "%u", timeval ); 1185 #if __IBMC__ >= 360 || __IBMCPP__ >= 360 1186 sprintf( szEpochTime, "%.0f", timeval ); 1187 #else 1188 sprintf( szEpochTime, "%d", timeval ); 1189 #endif 1184 1190 MAKERXSTRING( *prsResult, szEpochTime, strlen(szEpochTime) ); 1185 1191 -
rxutilex/trunk/rxutilex.def
r17 r18 1 1 LIBRARY RXUTILEX INITINSTANCE TERMINSTANCE 2 2 DATA MULTIPLE NONSHARED 3 DESCRIPTION '@#Alex Taylor:0.0.5#@##1## 21 Sep 2014 1 5:39:46REINFORCE::::::@@Extra REXX Utility Functions'3 DESCRIPTION '@#Alex Taylor:0.0.5#@##1## 21 Sep 2014 16:45:48 REINFORCE::::::@@Extra REXX Utility Functions' 4 4 5 5 EXPORTS Sys2LoadFuncs
Note:
See TracChangeset
for help on using the changeset viewer.