Changeset 18


Ignore:
Timestamp:
Sep 21, 2014, 9:48:19 AM (11 years ago)
Author:
Alex Taylor
Message:

Various fixes for switch to ICC v3.65.

Location:
rxutilex/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • rxutilex/trunk/Makefile

    r16 r18  
    33LINK   = ilink
    44RC     = rc
    5 CFLAGS = /Ss /Q /Wuse /Gm /Gd
     5CFLAGS = /Ss /Q /Wuse /Gm
     6#CFLAGS = /Ss /Q /Wuse /Gm /Gd
    67LFLAGS = /NOLOGO
    78NAME   = rxutilex
     
    1718                makedesc -D"Extra REXX Utility Functions" -N"Alex Taylor" -V"^#define=SZ_VERSION,rxutilex.c" $(NAME).def
    1819                $(LINK) $(LFLAGS) $(NAME).obj $(NAME).def $(LIBS) /O:$@
    19                 @dllrname.exe $@ CPPOM30=OS2OM30 /Q /R
     20#                @dllrname.exe $@ CPPOM30=OS2OM30 /Q /R
    2021
    2122$(NAME).obj : $(NAME).c $(NAME).def
  • rxutilex/trunk/readme.txt

    r17 r18  
    4444BUILD NOTES
    4545
    46 The included Makefile is for the IBM C/C++ compiler.  Version 3.6 or later
    47 is required in order to support the parsing of 64-bit integers.
     46The included Makefile is for the IBM C/C++ compiler.  Version 3.65 is
     47required in order to support the parsing of 64-bit integers.
    4848
    4949
  • rxutilex/trunk/rxutilex.c

    r17 r18  
    932932    PSZ    pszTZ,                             // Pointer to TZ environment var
    933933           pszSetTZ;
     934    int    iEpoch;                            // Input epoch time
    934935    time_t ttSeconds;                         // Input timestamp (seconds)
    935936    struct tm *timeptr;                       // Timestamp structure
     
    943944    if ( argc >= 1 && RXVALIDSTRING(argv[0]) ) {
    944945        // 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;
    946948    }
    947949
     
    11811183
    11821184    // 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
    11841190    MAKERXSTRING( *prsResult, szEpochTime, strlen(szEpochTime) );
    11851191
  • rxutilex/trunk/rxutilex.def

    r17 r18  
    11LIBRARY     RXUTILEX INITINSTANCE TERMINSTANCE
    22DATA        MULTIPLE NONSHARED
    3 DESCRIPTION '@#Alex Taylor:0.0.5#@##1## 21 Sep 2014 15:39:46     REINFORCE::::::@@Extra REXX Utility Functions'
     3DESCRIPTION '@#Alex Taylor:0.0.5#@##1## 21 Sep 2014 16:45:48     REINFORCE::::::@@Extra REXX Utility Functions'
    44
    55EXPORTS     Sys2LoadFuncs
Note: See TracChangeset for help on using the changeset viewer.