home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / bpos2-v2.zip / RTL-FIX2.ZIP / OS2F02.TXT next >
Text File  |  1993-12-04  |  2KB  |  61 lines

  1.  
  2. BP4OS2  OS2F02.TXT
  3.  
  4. The Second Fix Archive for the BP4OS2 Project.
  5.  
  6. CONTENCE
  7.              OS2F02.TXT    :   This File
  8.              WPAR.ASM      :   Assemble Language file containing
  9.                                 1. Function ParamStr( I : integer):string;
  10.                                 2. Function ParamCount:Integer;
  11.                                Source code.
  12.  
  13. These Patches must be applied on top of the OS2F01.zip (30 NOV 1993).
  14.  
  15. There are 3 separate Bug Fixes in this Archive.
  16.  
  17. **********************    F I X  # 1  ************************************
  18.  
  19. The following fixes I were routed from germany:
  20.  
  21. by Jasper Neumann 2:242/2
  22. =========================
  23.  
  24. crt.pas Line 199 (sometimes wierd colors):
  25.   vioscrollup(0,0,24,79,1,cell,0);
  26.                         ~ instead of 25
  27.  
  28. **********************    F I X   # 2 ************************************
  29.  
  30. fctl.asm Line 139 (Rewrite didn't overwrite an existing file):
  31.     MOV     AX,FILE_CREATE OR FILE_TRUNCATE; Read flags for new file
  32. instead of                    ~~~~~~~~~~~~~
  33.     MOV     AX,FILE_CREATE OR FILE_OPEN;  read flags for new file
  34.  
  35. **********************    F I X   # 3   **********************************
  36. Problem Report:
  37. ;  Command line parameter with mutliple spaces between them were ignored.
  38. ;
  39. ;  Program test.pas;
  40. ;  begin writeln(paramcount) end.
  41. ;
  42. ;  c>TEST 1 2  3 4 5
  43. ;            ~~ Doublespace
  44. ;  2
  45. ;  c>
  46. ;    returns 2 instead of 5.
  47.  
  48. Solution:
  49.    Replace   WPAR.ASM with the one in this Archive.
  50.  
  51. NOTE:  the WPAR.ASM in this Archive ADD 2 additional Features to
  52.        ParamStr:
  53.  
  54.        ParamStr(-1) : returns Complete CMDLINE as typed in by User.
  55.                       With a #0 between Program Name and Parameter list.
  56.        ParamStr(-2) : Returns Only the Parameter List as typed in by User.
  57.  
  58.            Also,  If the CMDLINE or Parameter List is > 255 char long, then
  59.            the result is truncated to 255 chars.
  60.  
  61.