Changeset 28
- Timestamp:
- Apr 21, 2010, 8:26:58 AM (15 years ago)
- Location:
- branches/1.0/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/1.0/src/build.cmd ¶
r14 r28 4 4 @del .\de\uni.res 5 5 echo Done cleaning. 6 gcc -o uni.o uni.c -c >build.log 6 gcc -o utils.o utils.c -c>>build.log 7 gcc -o splpd.o splpd.c -c>>build.log 8 gcc -o uni.o uni.c -c>build.log 9 7 10 echo Done compiling. 8 11 cd de … … 10 13 cd .. 11 14 echo Done compiling resource. 12 gcc -Zdll -Zbin-files -Zomf -o uni.pdr u ni.o uni.def .\de\uni.res >>build.log15 gcc -Zdll -Zbin-files -Zomf -o uni.pdr utils.o splpd.o uni.o uni.def .\de\uni.res >>build.log 13 16 echo Done linking. 14 ea2 -e DEFAULT_PORT= uniuni.pdr >>build.log17 ea2 -e DEFAULT_PORT=UNI uni.pdr >>build.log 15 18 echo Done attaching EA. 16 19 rem d: -
TabularUnified branches/1.0/src/ea2.cmd ¶
r1 r28 29 29 30 30 select 31 when opt = '-?' then rc = DisplayHelp() 31 32 when opt = '-e' then rc = AddEA(filename, easpec) 32 33 when opt = '-d' then rc = RemoveEA(filename, easpec) 33 34 when opt = '-v' then rc = DisplayEA(filename, easpec,'false') 34 35 when opt = '-vn' then rc = DisplayEA(filename, easpec,'true' ) 35 when opt = '-?' then rc = DisplayHelp()36 36 when opt = '' then rc = DisplayHelp() 37 37 otherwise rc = DisplayPrinterEA(filename) -
TabularUnified branches/1.0/src/splpd.c ¶
r27 r28 30 30 ULONG ulBootDrive; 31 31 ULONG rcLoadMod; 32 CHAR 32 CHAR szPathName[260]; 33 33 34 34 if (!pulReturned || … … 67 67 } 68 68 69 70 71 69 /* 70 ** check number of ports info we can fit in supplied buffer 71 */ 72 72 *pulTotal = MAX_PORTS; 73 73 *pcbRequired = CalcBufLength (hab, hModule); 74 74 *pulReturned = NumPortsCanFit (hab, hModule, cbBuf); 75 75 76 77 78 76 /* 77 ** return error if we can not fit one port. 78 */ 79 79 if (!(*pulReturned)) 80 80 { … … 372 372 PVOID pPrtOpenStruct) 373 373 { 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]; 385 385 DATETIME dt; 386 char spool_dir[256];387 PEAOP2 pEABuf = NULL;386 char spool_dir[256]; 387 PEAOP2 pEABuf = NULL; 388 388 389 389 … … 404 404 sprintf(filename,"%s\\UNI\\%02d_%02d_%02d_%02d_%s",spool_dir,dt.hours,dt.minutes,dt.seconds,dt.hundredths,pszPortName); 405 405 rc = DosOpen(filename, 406 phFile, /* File handle */406 phFile, /* File handle */ 407 407 &ulAction, /* Action taken */ 408 100L, 409 FILE_ARCHIVED | FILE_NORMAL, 408 100L, /* File primary allocation */ 409 FILE_ARCHIVED | FILE_NORMAL, /* File attribute */ 410 410 OPEN_ACTION_CREATE_IF_NEW | 411 OPEN_ACTION_OPEN_IF_EXISTS, 411 OPEN_ACTION_OPEN_IF_EXISTS, /* Open function type */ 412 412 OPEN_FLAGS_NOINHERIT | 413 413 OPEN_SHARE_DENYNONE | 414 414 OPEN_ACCESS_READWRITE, /* Open mode of the file */ 415 0L); /* No extended attribute */415 0L); /* No extended attribute */ 416 416 /* DosWrite(*phFile,pszPSHeader,strlen(pszPSHeader),&cbHeader); */ 417 417 sprintf(szTemp,"PM_%s",pszPortName); … … 484 484 ULONG nbr_lu; 485 485 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]; 505 505 USHORT pos; 506 char spool_dir[256];506 char spool_dir[256]; 507 507 ULONG ulBootDrive; 508 508
Note:
See TracChangeset
for help on using the changeset viewer.