home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c160 / 1.ddi / FIX / FIX.DOC
Encoding:
Text File  |  1990-12-05  |  3.4 KB  |  102 lines

  1.  
  2. Table of Contents
  3.    
  4.    I.   Documentation Fixes
  5.    II.  Potential Problems
  6.    III. Portability Version Only
  7.  
  8. Documentaton Fixes
  9.  
  10. 1.  Documentation fix for '/DLANGUAGE' conditional compilation flag:
  11.  
  12.     When '/DLANGUAGE' is set, it is necessary to also set the '/DNO_SIZE_T'
  13.     flag for most compilers.  You will know you have a problem because
  14.     of error messages from the compiler.
  15.  
  16. 2.  Additional 'NOIO' switch documentation.
  17.  
  18.     If you wish to use Code Base 4.2 database management with a third 
  19.     party screen management library, you compile with the 'NOIO'
  20.     conditional compilation switch.  In this case, the routines
  21.     in all source files starting with 'g4', 'n4' and 'w4' are not needed.
  22.     In addition, files 'b4browse.c', 'b4quick.c', and 'x4list.c' are not 
  23.     needed.  These files contain the Code Base 4.2 screen management and 
  24.     browse routines.  In addition, you may wish to modify file 'u4error.c' 
  25.     so that error messages are displayed in a different manner.
  26.  
  27. 3.  The example under routine 'g4picture' is incorrect.  The second call to
  28.     routine 'g4()' should be a call to 'g4date()' instead:
  29.  
  30.        /* Get a Date */
  31.        g4date( 9,10, date_value ) ;
  32.  
  33. 4.  Under the example of routine 'i4index()' on page 145, the second and
  34.     third call to 'i4index()' should be as follows:
  35.  
  36.        /* The parameters were backwards.  */
  37.        i4index( "NAME", "L_NAME+F_NAME", 0, 0 ) ;  
  38.  
  39.        /* The parameters were backwards and DTOS is used rather than CTOS. */
  40.        i4index( "PURCHAS", "DTOS(PURCHASED)+L_NAME", 0, 0 ) ;
  41.  
  42. 5.  The example for CTOD(Char_Value) on page 264 is wrong.  It should be
  43.     as follows:
  44.  
  45.        CTOD( "11/30/88" )
  46.  
  47. 6.  In the example of routine 'g4valid', the last line of the
  48.     example is a call to 'w4int'.  This call is missing the
  49.     last parameter.  It should be as follows:
  50.  
  51.        w4int( 12,w4col(), i_data, 10 ) ;
  52.  
  53. 7.  The documentation under routines 'd4write' and 'd4append' both
  54.     state that 'v4unique_error' has a default value of '(int) 1'.
  55.     This is not true, the default value of 'v4unique_error' is '(int) 0'.
  56.  
  57. 8.  The documentation for routine 'x4pack()' neglects to mention that
  58.     this routine does not support memo fields.
  59.  
  60.  
  61. Potential Problems
  62.  
  63. 1. Code Base 4.2 does not currently support Turbo C++ 1.0 with the huge
  64.    memory model.  We believe there is a bug in Turbo C++ 1.0, which
  65.    causes Code Base 4.2 not to work, for this memory model.
  66.  
  67. 2. Turbo C 2.0 Problem
  68.  
  69.    When using the medium, small or tiny memory models, the 'malloc' routine
  70.    does not work correctly when allocating more than '0xF000' bytes of 
  71.    memory.  You may wish to call Borland for a patch.  Alternately,
  72.    you could modify routines 'h4alloc_try' and 'h4alloc' in file
  73.    'h4.c' to intercept calls attempting to allocate more than '0xF000' bytes 
  74.    of memory.
  75.    
  76.       ie.
  77.    
  78.          char *h4alloc_try(num)
  79.          int  num ;
  80.          {
  81.             if ( num > 0xF000 )  return( (char *) 0 ) ;
  82.             .
  83.             .
  84.          }
  85.    
  86.          char *h4alloc(num)
  87.          int  num ;
  88.          {
  89.             if ( num > 0xF000 )
  90.             {
  91.                u4error( E_MEMORY, (char *) 0) ;
  92.                return( (char *) 0 ) ;
  93.             }
  94.             .
  95.             .
  96.          }
  97.  
  98. 3.  Portability Version Only
  99.  
  100.    Refer to fix 'fix.doc' in subdirectory of the Portablity 
  101.    support disk.
  102.