Changeset 28


Ignore:
Timestamp:
Apr 21, 2010, 8:26:58 AM (15 years ago)
Author:
herwigb
Message:

Non kmk build.cmd fixed, several cosmetic changes

Location:
branches/1.0/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/1.0/src/build.cmd

    r14 r28  
    44@del .\de\uni.res
    55echo Done cleaning.
    6 gcc -o uni.o uni.c -c >build.log
     6gcc -o utils.o utils.c -c>>build.log
     7gcc -o splpd.o splpd.c -c>>build.log
     8gcc -o uni.o uni.c -c>build.log
     9
    710echo Done compiling.
    811cd de
     
    1013cd ..
    1114echo Done compiling resource.
    12 gcc -Zdll -Zbin-files -Zomf -o uni.pdr uni.o uni.def .\de\uni.res >>build.log
     15gcc -Zdll -Zbin-files -Zomf -o uni.pdr utils.o splpd.o uni.o uni.def .\de\uni.res >>build.log
    1316echo Done linking.
    14 ea2 -e DEFAULT_PORT=uni uni.pdr >>build.log
     17ea2 -e DEFAULT_PORT=UNI uni.pdr >>build.log
    1518echo Done attaching EA.
    1619rem d:
  • TabularUnified branches/1.0/src/ea2.cmd

    r1 r28  
    2929
    3030select
     31  when opt = '-?'  then rc = DisplayHelp()
    3132  when opt = '-e'  then rc = AddEA(filename, easpec)
    3233  when opt = '-d'  then rc = RemoveEA(filename, easpec)
    3334  when opt = '-v'  then rc = DisplayEA(filename, easpec,'false')
    3435  when opt = '-vn' then rc = DisplayEA(filename, easpec,'true' )
    35   when opt = '-?'  then rc = DisplayHelp()
    3636  when opt = ''    then rc = DisplayHelp()
    3737  otherwise  rc = DisplayPrinterEA(filename)
  • TabularUnified branches/1.0/src/splpd.c

    r27 r28  
    3030        ULONG   ulBootDrive;
    3131        ULONG   rcLoadMod;
    32         CHAR     szPathName[260];
     32        CHAR    szPathName[260];
    3333
    3434        if (!pulReturned ||
     
    6767        }
    6868
    69                 /*
    70                 ** check number of ports info we can fit in supplied buffer
    71                 */
     69        /*
     70        ** check number of ports info we can fit in supplied buffer
     71        */
    7272        *pulTotal    = MAX_PORTS;
    7373        *pcbRequired = CalcBufLength (hab, hModule);
    7474        *pulReturned = NumPortsCanFit (hab, hModule, cbBuf);
    7575
    76                 /*
    77                 ** return error if we can not fit one port.
    78                 */
     76        /*
     77        ** return error if we can not fit one port.
     78        */
    7979        if (!(*pulReturned))
    8080        {
     
    372372                                                        PVOID   pPrtOpenStruct)
    373373{
    374         APIRET rc;
    375         ULONG  ulAction       = 0;      /* Action taken by DosOpen */
    376         ULONG  ulBytesRead    = 0;      /* Number of bytes read by DosRead */
    377         ULONG  ulWrote       = 0;      /* Number of bytes written by DosWrite */
    378         ULONG  ulLocal       = 0;      /* File pointer position after DosSetFilePtr */
    379         char    szTemp[ 256];
    380         char    tmp[256];
    381         ULONG  pcbWritten ;
    382         USHORT  i;
    383         HFILE   control;
    384         char  filename[256];
     374        APIRET   rc;
     375        ULONG    ulAction    = 0;     /* Action taken by DosOpen */
     376        ULONG    ulBytesRead = 0;     /* Number of bytes read by DosRead */
     377        ULONG    ulWrote     = 0;     /* Number of bytes written by DosWrite */
     378        ULONG    ulLocal     = 0;     /* File pointer position after DosSetFilePtr */
     379        char     szTemp[ 256];
     380        char     tmp[256];
     381        ULONG    pcbWritten ;
     382        USHORT   i;
     383        HFILE    control;
     384        char     filename[256];
    385385        DATETIME dt;
    386         char  spool_dir[256];
    387         PEAOP2 pEABuf = NULL;
     386        char     spool_dir[256];
     387        PEAOP2   pEABuf = NULL;
    388388
    389389
     
    404404        sprintf(filename,"%s\\UNI\\%02d_%02d_%02d_%02d_%s",spool_dir,dt.hours,dt.minutes,dt.seconds,dt.hundredths,pszPortName);
    405405        rc = DosOpen(filename,
    406                                 phFile,                       /* File handle */
     406                                phFile,                        /* File handle */
    407407                                &ulAction,                     /* Action taken */
    408                                 100L,                           /* File primary allocation */
    409                                 FILE_ARCHIVED | FILE_NORMAL,    /* File attribute */
     408                                100L,                          /* File primary allocation */
     409                                FILE_ARCHIVED | FILE_NORMAL,   /* File attribute */
    410410                                OPEN_ACTION_CREATE_IF_NEW |
    411                                 OPEN_ACTION_OPEN_IF_EXISTS,     /* Open function type */
     411                                OPEN_ACTION_OPEN_IF_EXISTS,    /* Open function type */
    412412                                OPEN_FLAGS_NOINHERIT |
    413413                                OPEN_SHARE_DENYNONE  |
    414414                                OPEN_ACCESS_READWRITE,         /* Open mode of the file */
    415                                 0L);                         /* No extended attribute */
     415                                0L);                           /* No extended attribute */
    416416/*  DosWrite(*phFile,pszPSHeader,strlen(pszPSHeader),&cbHeader);  */
    417417        sprintf(szTemp,"PM_%s",pszPortName);
     
    484484        ULONG       nbr_lu;
    485485        ULONG       ulAction;
    486         char       szTemp[256];
    487         HFILE      control;
    488         char       binfile[256];
    489         char       arg[256];
    490         char       *j_parms;
    491         char       j_id[3];
    492         char       parameters[256];
    493         char       workingdir[256] ;
    494         char       j_title[256];
    495         char       j_copies[3];
    496         char       j_options[8];
    497         char       filename[256];
    498         char       ip_add[256];
    499         char       queue_name[256];
    500         char       workgroup[256];
    501         char       username[256];
    502         char       password_enc[256];
    503         char       password_dec[256];
    504         char       errorstr[256];
     486        char        szTemp[256];
     487        HFILE       control;
     488        char        binfile[256];
     489        char        arg[256];
     490        char        *j_parms;
     491        char        j_id[3];
     492        char        parameters[256];
     493        char        workingdir[256] ;
     494        char        j_title[256];
     495        char        j_copies[3];
     496        char        j_options[8];
     497        char        filename[256];
     498        char        ip_add[256];
     499        char        queue_name[256];
     500        char        workgroup[256];
     501        char        username[256];
     502        char        password_enc[256];
     503        char        password_dec[256];
     504        char        errorstr[256];
    505505        USHORT      pos;
    506         char       spool_dir[256];
     506        char        spool_dir[256];
    507507        ULONG       ulBootDrive;
    508508
Note: See TracChangeset for help on using the changeset viewer.