home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / recio213.zip / history < prev    next >
Text File  |  1995-09-05  |  11KB  |  256 lines

  1. recio, Version 2.13, Release September 4, 1995.
  2. Copyright (C) 1994-1995, William Pierpoint.
  3.  
  4. HISTORY OF RECIO LIBRARY
  5.  
  6. 06/29/95 - vers. 2.13
  7.  
  8.     Fixed bugs in rsetrecstr(), rcgett(), and rgett() functions.
  9.     Revised rfixt() function.
  10.  
  11.     Revised algorithm within sftotm() function in rgett.c file to do 
  12.     a better job of parsing incomplete time data.
  13.  
  14.     Added macro RECBEGYR and function rsetbegyr().  These control the 
  15.     interpretation of time data that is read by the %y format.  RECBEGYR 
  16.     defaults to 1951.  In other words, the %y input corresponds to the 
  17.     years from 1951 to 2050.  Note that time_t type variables may not 
  18.     be able to represent the complete range, but that you should not have 
  19.     this limitation if using struct tm type variables.  To represent a 
  20.     different range of years, you can change the beginning year of the 
  21.     range by using the rsetbegyr function.
  22.     
  23.     Examples: 1/1/51 -> Jan 1, 1951
  24.             12/31/99 -> Dec 31, 1999
  25.               1/1/00 -> Jan 1, 2000
  26.             12/31/50 -> Dec 31, 2050
  27.  
  28.     Changed EINVDAT to EDOM for ANSI-C compatibility.  
  29.     
  30.     Changed abort() to exit(EXIT_FAILURE) so that streams are flushed 
  31.     upon abnormal program termination.
  32.     
  33.     Improved portability by moving all compiler dependencies to recio.h.
  34.  
  35. 01/29/95 - vers. 2.12
  36.  
  37.     New improved field parsing engine derived from regular expression 
  38.     specification is discussed in section 2.4 of design.txt.  Primary 
  39.     changes are:
  40.     
  41.         * When the field delimiter is not whitespace and the text
  42.           delimiter is whitespace (or anytime the text delimiter 
  43.           is not used even if defined as non-whitespace), leading
  44.           and lagging whitespace are not trimmed from a string field.
  45.     
  46.         * When the text delimiter is not whitespace, the text 
  47.           delimiter can be included as part of a field provided it 
  48.           is not followed by the field termination sequence.  The 
  49.           field termination sequence consists of the text delimiter 
  50.           followed by optional whitespace followed by either the 
  51.           field delimiter or the end of the record.  To illustrate 
  52.           for comma delimited fields with quoted text, the following 
  53.           is only one field: "K&R wrote, "Hello, World"".
  54.     
  55.         * When the text delimiter is the double quote character,
  56.           quoted text within the field is treated as a single word.  
  57.           The comma-delimited example "Use case "1", okay?" parses 
  58.           to one field.
  59.           
  60.         * Fixed a bug in how the rnumfld function counts fields.  
  61.           When the field delimiter is whitespace, the rnumfld function 
  62.           would count any trailing whitespace in the last field as an 
  63.           extra empty field.  The rnumfld function no longer counts any 
  64.           empty fields when whitespace is used as the field separator 
  65.           because empty fields are undetectable in this situation.
  66.     
  67.     An expanded discussion of the ltoa and ultoa functions can now be 
  68.     found in section 3.6 of design.txt.  Included simple ltoa and ultoa 
  69.     code for compilers that don't have these functions.
  70.  
  71. 12/26/94 - vers. 2.11
  72.  
  73.     Fixed some typos in spec.txt.  Added section 3.6 to design.txt.  
  74.     Made some minor stylistic improvements to the source code.
  75.  
  76. 11/2/94 - vers. 2.10
  77.  
  78.     Added new time fields.  Can input and output times using either 
  79.     the time_t or struct tm types and in various user specified formats.  
  80.     New modules are rgett.c, rputt.c, rcgett.c, and rcputt.c.
  81.  
  82.     Time formats are specified using a subset of the specifiers 
  83.     from the ANSI-C strftime function.  Supported specifiers are:
  84.         %d - day of month (1-31)
  85.         %H - hour from 24-hour clock (0-23)
  86.         %m - month (1-12)
  87.         %M - minute (0-59)
  88.         %s - second (0-61)
  89.         %y - year without century (00-99)
  90.         %Y - year with century (e.g. 1994)
  91.  
  92.     The default time format is "%m/%d/%y".  Can override the format on 
  93.     any record stream with a new format using the rsettmfmt function.
  94.  
  95.     Added new warning macro constant R_WTMFMT.  R_WTMFMT indicates that 
  96.     the time data was incomplete (i.e. any element of time format not 
  97.     matched against data).  Also new macro constants R_WFAULT and R_EFAULT 
  98.     added for use by application specific functions.
  99.  
  100.     Data written to an output stream can now be written without field and 
  101.     text delimiters.  Just set the field and text delimiters to the null 
  102.     character.
  103.  
  104. 10/10/94 - vers 2.04
  105.  
  106.     Added new string functions scntrimbegs, scntrimends, and scntrims 
  107.     to rstr.c file.
  108.  
  109.     Fixed minor bug in _rfldstr function in rget.c file.
  110.  
  111.     Changed return type for rskipfld and rskipnfld to unsigned, and  
  112.     num parameter in rskipnfld to unsigned.  Functions now return 
  113.     zero on error.
  114.  
  115.     Added new functions rnumfld, rgetfldpos, and rsetfldpos to rget.c
  116.     file.
  117.  
  118. 10/02/94 - vers 2.03
  119.  
  120.   Eliminated error return values for most functions.  This promotes a 
  121.   programming style that makes use of the callback error function as the 
  122.   preferred way to handle errors.  For lint users, reduces the number of 
  123.   warnings.
  124.  
  125.   Added macro ristxtfld.  If ristxtfld macro returns non-zero, then the 
  126.   current field (the field most recently input or output) was quoted with 
  127.   the text character delimiter (if not white space).  If ristxtfld macro 
  128.   returns zero, then the current field was not quoted.
  129.  
  130.   Added macro rresetrec.  Use of the rresetrec macro allows you to read 
  131.   the fields from the record buffer multiple times.  For example, you 
  132.   could first use rskipnfld to determine the number of fields, then use 
  133.   rresetrec to reset back to the beginning of the record buffer, and 
  134.   finally read in each field until you have reached the number of fields.
  135.  
  136.   Added modules remsg.c and rwmsg.c containing simple callback functions 
  137.   rerrmsg and rwarnmsg for reporting errors and warnings respectively.  
  138.   You may wish to use these functions during the initial prototyping stage 
  139.   of software development.  In the later stages of development, you can 
  140.   substitute more robust error and warning message functions.  Also added 
  141.   the rinit function that registers the error and warning message functions.  
  142.   It just calls rseterrfn and rsetwarnfn, but may be easier to remember.
  143.  
  144.   Added module rstr.c.  This module contains a small set of string functions 
  145.   that are needed by rget.c.  You may also find them useful in your programs.
  146.   See section 7 of the ascii file USAGE.TXT for more details.
  147.  
  148. 05/02/94 - vers 2.02
  149.  
  150.   Handling of errno made more reliable and more portable.  Some Borland C 
  151.   conversion functions clear errno first, some do not.  Where errno is 
  152.   checked after a conversion, cleared errno before conversion.
  153.  
  154.   Reduced code size of numeric field function modules by one-third by 
  155.   eliminating the macro emulation of function templates.  Number of header 
  156.   files reduced from nine to one.
  157.  
  158. 04/22/94 - vers 2.01
  159.  
  160.   Added rsetrecstr function to rget.c.  Sometimes it is handy to stuff a 
  161.   record buffer with your own string, then let the field input functions 
  162.   scan it.  
  163.   
  164.   Added mode check to several rget.c functions to ensure an error will be 
  165.   generated if these input functions are mistakenly used in an output stream.
  166.  
  167.   Fixed bugs in rwarn.c.  Warnings were not being cleared or reset correctly.
  168.  
  169. 04/15/94 - vers 2.00
  170.  
  171.   RECIO can now write as well as read.  Over 25 new functions added.
  172.  
  173.   New record streams that are always open are recout, recerr, and recprn.
  174.   New predefined context numbers are RECOUT, RECERR, and RECPRN.
  175.  
  176.   ROPEN_MAX increased from 5 to 8.
  177.  
  178.   New symbolic error constants are: 
  179.     R_EINVMOD - tried to read file opened in write mode, or vice versa.
  180.     R_ENOPUT  - unable to output data.
  181.  
  182.   New callback warning function and associated warning functions.
  183.   Now all empty data strings are trapped as warnings.  Application can
  184.   choose to handle them or to ignore them.  Failure of atexit function 
  185.   is changed from an error to a warning.
  186.  
  187.   New symbolic warning constants:
  188.     R_WEMPSTR - data string is empty.
  189.     R_WWIDTH  - data too wide for columnar output.
  190.     R_WNOREG  - unable to register exit function with atexit().
  191.                 (changed from error symbolic constant R_ENOREG).
  192.  
  193. 04/8/94 - vers 1.20
  194.  
  195.   Created new rerrstr and rstrerror functions.  Simplified TESTCH.C and 
  196.   TESTCO.C code by using rerrstr.
  197.  
  198.   Changed the specification and code for the rgets and rcgets functions to 
  199.   return a pointer to an empty string (rather than a null pointer) on error.  
  200.   This will help reduce null pointer errors in application programs. 
  201.  
  202.   Changed the specification and code for the rgetrec function.  The rgetrec 
  203.   function now clears the record buffer before the next record is read.  
  204.   This will cause the error number to be set to R_EMISDAT if the application 
  205.   ignores the eof indicator and attempts to read fields in records beyond 
  206.   end-of-file.  There is one exception: if the field just prior to the record 
  207.   buffer string terminator is a string field (which for an empty record buffer 
  208.   is the first field), it won't be trapped as missing data.  This is an 
  209.   unavoidable consequence of allowing empty string fields.  But you shouldn't 
  210.   be ignoring end-of-file anyway!  Also rgetrec continues to increment the 
  211.   record number if the program reads beyond end of file.  This solves an 
  212.   "off by one" bug when the file ends prematurely.
  213.  
  214.   Developed the dif program to locate line where two text files first 
  215.   differ.  Inserted dif source into TUTOR.TXT to illustrate a very simple
  216.   callback error function.  Substituted the dif program for the cmp program 
  217.   in regression test TEST.BAT.
  218.  
  219.  
  220. 04/5/94 - vers 1.11
  221.  
  222.   When is the minimum not the minimum?  MIN values in <float.h> are defined 
  223.   differently than in <limits.h>.  Fixed code to match definitions in 
  224.   ANSI X3.159-1989 Section 2.2.4.2.
  225.   
  226.   RECIO now tests for underflow and overflow of all floating point numbers 
  227.   input.  Test results TESTCH.OUT shows when overflow and underflow occur.
  228.   
  229.   Created new rfix functions to provide a quick way to fix overflows and 
  230.   underflows, and to get callback error functions up and running more 
  231.   quickly.
  232.  
  233.  
  234. 03/28/94 - vers 1.10
  235.  
  236.   Created single precision floating point functions rgetf() and rcgetf().
  237.  
  238.   Created functions rsetbegcolno() and rbegcolno() to make it easy to 
  239.   have column numbering start at either 0 or 1.  Default is 0.
  240.  
  241.   Created program TESTCO to test column delimited fields; enhanced test 
  242.   program TESTCH for character delimited fields.
  243.   
  244.   Created new symbolic error constants for record streams.  Program must 
  245.   use symbolic constants starting with R_ (such as R_EINVDAT) for valid 
  246.   record streams; use errno constants (such as ENOMEM) for invalid record 
  247.   streams.  New error checking provides better reporting and portability.
  248.   New symbolic error constants are not compatible with version 1.00; 
  249.   some rework of version 1.00 callback error functions required.
  250.  
  251.   Fixed some bugs in the column delimited functions.
  252.  
  253. 03/23/94 - vers 1.00
  254.  
  255.   Initial public release.
  256.