Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

CVS log for libcfg+/src/cfg+.c

[BACK] Up to [Platon] / libcfg+ / src

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.62 / (download) - [select for diffs], Sat Sep 12 04:04:49 2015 UTC (11 years, 1 month ago) by nepto


Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.8 (colored)

Introduced release 0.7.0 (12-SEP-2015)

Updated:
- Platon Group name (Platon SDG is no longer used)
- copyright year (2015)
- library homepage URLs
- certain e-mail addresses

Revision 1.61 / (download) - [select for diffs], Mon Jan 12 06:03:08 2004 UTC (22 years, 9 months ago) by nepto


Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored) to selected 1.8 (colored)

Bumped copyright year to 2004, preparing to 0.6.2 release.

Revision 1.60 / (download) - [select for diffs], Mon Jan 12 06:01:21 2004 UTC (22 years, 9 months ago) by nepto

Changes since 1.59: +1 -9 lines
Diff to previous 1.59 (colored) to selected 1.8 (colored)

Removed unneccessary comment.

Revision 1.59 / (download) - [select for diffs], Fri Nov 7 17:26:48 2003 UTC (22 years, 11 months ago) by nepto

Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.8 (colored)

Changed URL from www.platon.sk to platon.sk.

Revision 1.58 / (download) - [select for diffs], Tue Aug 19 14:07:15 2003 UTC (23 years, 2 months ago) by nepto

Changes since 1.57: +6 -1 lines
Diff to previous 1.57 (colored) to selected 1.8 (colored)

Self-test compilation remark added into source code.

Revision 1.57 / (download) - [select for diffs], Mon Feb 17 17:12:07 2003 UTC (23 years, 8 months ago) by nepto


Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.8 (colored)

Updated e-mail addresses.

Revision 1.56 / (download) - [select for diffs], Sun Jan 12 14:27:18 2003 UTC (23 years, 9 months ago) by rajo

Changes since 1.55: +40 -21 lines
Diff to previous 1.55 (colored) to selected 1.8 (colored)

Better formating.

Revision 1.55 / (download) - [select for diffs], Tue Jan 7 16:02:29 2003 UTC (23 years, 9 months ago) by nepto

Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored) to selected 1.8 (colored)

Increase copyright date.

Revision 1.54 / (download) - [select for diffs], Fri Dec 27 17:46:48 2002 UTC (23 years, 9 months ago) by nepto

Changes since 1.53: +13 -3 lines
Diff to previous 1.53 (colored) to selected 1.8 (colored)

Some fixes with PLATON_FUNC().
Added parts for testing empty prefixes of command line options;
  they are disabled by default.

Revision 1.53 / (download) - [select for diffs], Mon Oct 7 10:54:42 2002 UTC (24 years ago) by rajo

Changes since 1.52: +1 -1 lines
Diff to previous 1.52 (colored) to selected 1.8 (colored)

Tag $Id$ changed to $Platon$.

Revision 1.52 / (download) - [select for diffs], Wed Oct 2 17:49:08 2002 UTC (24 years ago) by rajo

Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.8 (colored)

Part of libplaton library (src/str/ subdirectory) was moved to
src/platon/str subdirectory.

Revision 1.51 / (download) - [select for diffs], Tue Aug 27 13:19:18 2002 UTC (24 years, 1 month ago) by rajo

Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.8 (colored)

Code cleanup.

Revision 1.50 / (download) - [select for diffs], Fri Aug 16 20:31:42 2002 UTC (24 years, 2 months ago) by rajo

Changes since 1.49: +6 -4 lines
Diff to previous 1.49 (colored) to selected 1.8 (colored)

* Namespace improvements.
* All functions in shared directory src/str have names with prefix 'cfg_'.
  In project libplaton are these function names withouth prefix.

Revision 1.49 / (download) - [select for diffs], Sun Aug 4 18:07:43 2002 UTC (24 years, 2 months ago) by rajo

Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) to selected 1.8 (colored)

Fixed 'make test'.

Revision 1.48 / (download) - [select for diffs], Thu Jul 18 22:16:30 2002 UTC (24 years, 3 months ago) by nepto


Changes since 1.47: +37 -7 lines
Diff to previous 1.47 (colored) to selected 1.8 (colored)

Lubomir Host added to authors in Doxygen autogenerated documentation.
Added folding into main cfg+.h header file.
Various countext initialization functions implmented, to get backward
compatibility. They are:
  - cfg_get_cmdline_context_argc()
  - cfg_set_cmdline_context_argc()
  - cfg_get_cmdline_context_pos()
  - cfg_set_cmdline_context_pos()
  - cfg_get_cfgfile_context_pos()
  - cfg_set_cfgfile_context_pos()
Improvements.

Revision 1.47 / (download) - [select for diffs], Tue Jul 16 13:42:11 2002 UTC (24 years, 3 months ago) by nepto

Changes since 1.46: +36 -41 lines
Diff to previous 1.46 (colored) to selected 1.8 (colored)

Important API changes.
All elements array members, bytes and lines in file) are counted from 0.
Appropriate changes in error message printing functions.
Move initialization stuff for command line parsing from
  cfg_set_cmdline_context() function to cmdline parsing function to
  analogical behaviour for line and file.
Context structure update (memebrs reorganization, new members, etc.).

Revision 1.46 / (download) - [select for diffs], Mon Jul 15 17:02:37 2002 UTC (24 years, 3 months ago) by jombik9

Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored) to selected 1.8 (colored)

Sync.

Revision 1.45 / (download) - [select for diffs], Mon Jul 15 16:43:12 2002 UTC (24 years, 3 months ago) by jombik9

Changes since 1.44: +24 -17 lines
Diff to previous 1.44 (colored) to selected 1.8 (colored)

Added full begin_pos and end_pos usage in command line parsing.
API methods cfg_(get|set)_cmdline_context() changes. Parameter argc
  removed, begin_pos and end_pos added.
New macros cfg_(get|set)_cmdline_context_by_argc() created to get
  backward compatibility. Please change your old
  cfg_(get|set)_cmdline_context() calls to these new functions/macros.

Revision 1.44 / (download) - [select for diffs], Mon Jul 15 16:17:02 2002 UTC (24 years, 3 months ago) by jombik9

Changes since 1.43: +13 -13 lines
Diff to previous 1.43 (colored) to selected 1.8 (colored)

Removed property argc from cfg_context structure.
Property begin_pos is now used for command line parsing.
Other appropriate properties changed from int (argc) to long (begin_pos).

Revision 1.43 / (download) - [select for diffs], Mon Jul 15 15:37:21 2002 UTC (24 years, 3 months ago) by jombik9

Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.8 (colored)

Declaration ``extern char ***cfg_default_properties;'' optimized.

Revision 1.42 / (download) - [select for diffs], Mon Jul 15 14:45:54 2002 UTC (24 years, 3 months ago) by rajo

Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) to selected 1.8 (colored)

Headers update.

Revision 1.41 / (download) - [select for diffs], Sun Jun 23 10:48:46 2002 UTC (24 years, 3 months ago) by jombik9

Changes since 1.40: +2 -38 lines
Diff to previous 1.40 (colored) to selected 1.8 (colored)

These real properties were added:
    CFG_FILE_NORMAL_MULTI_VALS_SEPARATOR
    CFG_FILE_LEFTOVER_MULTI_VALS_SEPARATOR
    CFG_FILE_QUOTE_PREFIX
    CFG_FILE_QUOTE_POSTFIX
    + appropriate _FILE_ equivalents
Various virtual properties added for setting up two or more real
properties in one function call:
    CFG_QUOTE
    CFG_LINE_QUOTE
    CFG_FILE_QUOTE
    CFG_QUOTE_PREFIX
    CFG_QUOTE_POSTFIX
    CFG_MULTI_VALS_SEPARATOR
    CFG_FILE_MULTI_VALS_SEPARATOR
    CFG_LINE_MULTI_VALS_SEPARATOR
    CFG_NORMAL_MULTI_VALS_SEPARATOR
    CFG_LEFTOVER_MULTI_VALS_SEPARATOR
    CFG_OPTION_ARG_SEPARATOR
Default properties values update.
Improved internal functions split_multi_arg() and unquote_single_arg().

Revision 1.40 / (download) - [select for diffs], Thu May 30 22:29:45 2002 UTC (24 years, 4 months ago) by jombik9


Changes since 1.39: +58 -92 lines
Diff to previous 1.39 (colored) to selected 1.8 (colored)

Special properties stuff completely rewritten from scratch.
Now it is possible to link applications agains our library.
Old code was removed, only in props.c was left commented.
New documentation texts for Doxygen.

Revision 1.39 / (download) - [select for diffs], Wed May 29 15:12:11 2002 UTC (24 years, 4 months ago) by jombik9

Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.8 (colored)

Fixed bug with short option '-'.

Revision 1.38 / (download) - [select for diffs], Mon May 27 16:43:40 2002 UTC (24 years, 4 months ago) by jombik9

Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored) to selected 1.8 (colored)

Fixed shadowed debug variable.
Added error_code cleaning into cfg_reset_context() function.

Revision 1.37 / (download) - [select for diffs], Sat May 11 14:54:58 2002 UTC (24 years, 5 months ago) by jombik9

Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.8 (colored)

File positions constants updated.

Revision 1.36 / (download) - [select for diffs], Mon Apr 29 20:07:36 2002 UTC (24 years, 5 months ago) by host8

Changes since 1.35: +21 -40 lines
Diff to previous 1.35 (colored) to selected 1.8 (colored)

Revert to old version (1.34).

Revision 1.35 / (download) - [select for diffs], Mon Apr 29 08:29:26 2002 UTC (24 years, 5 months ago) by host8

Changes since 1.34: +41 -22 lines
Diff to previous 1.34 (colored) to selected 1.8 (colored)

Patched test for cfg library.

Revision 1.34 / (download) - [select for diffs], Wed Apr 24 22:03:54 2002 UTC (24 years, 5 months ago) by jombik9


Changes since 1.33: +24 -16 lines
Diff to previous 1.33 (colored) to selected 1.8 (colored)

Error handling stuff finished.
Function cfg_fprint_error() added.
Functions cfg_print_error() and cfg_get_error_str() modified.

Revision 1.33 / (download) - [select for diffs], Sun Apr 21 10:08:40 2002 UTC (24 years, 6 months ago) by jombik9

Changes since 1.32: +10 -8 lines
Diff to previous 1.32 (colored) to selected 1.8 (colored)

Neccessary building stuff changes.
Headers update.

Revision 1.32 / (download) - [select for diffs], Fri Apr 19 18:23:52 2002 UTC (24 years, 6 months ago) by host8

Changes since 1.31: +18 -2 lines
Diff to previous 1.31 (colored) to selected 1.8 (colored)

'#include' stuff.
Removed test for strerror() function -- not used.

Revision 1.31 / (download) - [select for diffs], Wed Apr 10 23:57:17 2002 UTC (24 years, 6 months ago) by jombik9

Changes since 1.30: +89 -23 lines
Diff to previous 1.30 (colored) to selected 1.8 (colored)

Error handling stuff improvements (new functions).
Protection against buffer overflowing.

Revision 1.30 / (download) - [select for diffs], Wed Apr 10 13:51:46 2002 UTC (24 years, 6 months ago) by jombik9

Changes since 1.29: +97 -0 lines
Diff to previous 1.29 (colored) to selected 1.8 (colored)

cfg_print_error() function started.

Revision 1.29 / (download) - [select for diffs], Mon Apr 8 20:57:35 2002 UTC (24 years, 6 months ago) by jombik9

Changes since 1.28: +5 -3 lines
Diff to previous 1.28 (colored) to selected 1.8 (colored)

* implement config file end_pos (in both modes, positions and line)
  - line mode tested, works fine; position tests needed
* get_cur_opt_idx() will return number of line in config file context
  - implemented; set CFG_FILE_LINE_USAGE flag to use line arithemtic

User documentation: first chapter.

Revision 1.28 / (download) - [select for diffs], Sun Apr 7 12:47:08 2002 UTC (24 years, 6 months ago) by jombik9

Changes since 1.27: +0 -4 lines
Diff to previous 1.27 (colored) to selected 1.8 (colored)

Doxygen documentations.

Revision 1.27 / (download) - [select for diffs], Thu Apr 4 17:10:58 2002 UTC (24 years, 6 months ago) by jombik9

Changes since 1.26: +5 -1 lines
Diff to previous 1.26 (colored) to selected 1.8 (colored)

Things from TODO list:

+ number of spaces in cfgfile option names should not be relevant in compare
  with real option names in file; that means "multi int" is the same as
  "multi  int" and "multi\tint"
  - seems to be fixed, but needs testing
+ fix this bug: numbers in format 09 cannot be converted to decimal data type
  - it is not bug, it is feature: numbers started with 0 are considered to be
    in octal format; similary numbers started with 0x or 0X are considered to
    be in hexadecimal format; so 09 is really invalid, because in octal format
    this number is not correct

Doxygen documentation update

Revision 1.26 / (download) - [select for diffs], Mon Mar 25 14:18:11 2002 UTC (24 years, 6 months ago) by jombik9

Changes since 1.25: +39 -20 lines
Diff to previous 1.25 (colored) to selected 1.8 (colored)

Removed SIGSEGV from self test.

Revision 1.25 / (download) - [select for diffs], Thu Mar 21 14:11:53 2002 UTC (24 years, 7 months ago) by jombik9

Changes since 1.24: +46 -84 lines
Diff to previous 1.24 (colored) to selected 1.8 (colored)

Improved self test.

Revision 1.24 / (download) - [select for diffs], Thu Mar 21 13:38:03 2002 UTC (24 years, 7 months ago) by jombik9

Changes since 1.23: +73 -0 lines
Diff to previous 1.23 (colored) to selected 1.8 (colored)

Function cfg_get_error_str() added.

Revision 1.23 / (download) - [select for diffs], Mon Feb 25 18:45:56 2002 UTC (24 years, 7 months ago) by host8

Changes since 1.22: +40 -27 lines
Diff to previous 1.22 (colored) to selected 1.8 (colored)

Source code indentation.

Revision 1.22 / (download) - [select for diffs], Mon Feb 18 21:34:56 2002 UTC (24 years, 8 months ago) by jombik9

Changes since 1.21: +13 -11 lines
Diff to previous 1.21 (colored) to selected 1.8 (colored)

libcfg improvements: when parsing file and stop str prefix founded, line
is returnet in current option string accessible via cfg_get_cur_opt()
function

copyright, version and another notes in libcfg

EP config file and command lien parsing (written from scratch) with
focus on variability accroding to Wolcaans ideas

TODO list updates

Revision 1.21 / (download) - [select for diffs], Sun Feb 17 15:18:45 2002 UTC (24 years, 8 months ago) by jombik9

Changes since 1.20: +25 -15 lines
Diff to previous 1.20 (colored) to selected 1.8 (colored)

Total sync.
Files headers in libcfg project.
Transaltion updates in phpWebFileManager.
New signatures.

Revision 1.20 / (download) - [select for diffs], Wed Feb 13 14:55:26 2002 UTC (24 years, 8 months ago) by jombik9

Changes since 1.19: +83 -112 lines
Diff to previous 1.19 (colored) to selected 1.8 (colored)

cfg improvements

Revision 1.19 / (download) - [select for diffs], Thu Dec 20 19:50:38 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.18: +10 -19 lines
Diff to previous 1.18 (colored) to selected 1.8 (colored)

Quotations fully implemented.

Revision 1.18 / (download) - [select for diffs], Sun Dec 16 20:44:37 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.17: +23 -7 lines
Diff to previous 1.17 (colored) to selected 1.8 (colored)

Too many improvements:
- Makefile change - 'make test' added
- libcfg properties reorganization
- starting of quotation implementation

Revision 1.17 / (download) - [select for diffs], Mon Dec 10 21:01:48 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.16: +36 -21 lines
Diff to previous 1.16 (colored) to selected 1.8 (colored)

* better stuff for manipulating with context flags (add, remove, clear, ...)
  - cfg_set_context_flag(), cfg_clear_context_flag()
    and getting info functions cfg_get_context_flag(), cfg_is_context_flag()

Revision 1.16 / (download) - [select for diffs], Sun Dec 9 15:07:37 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.8 (colored)

Improvements.

Revision 1.15 / (download) - [select for diffs], Sat Dec 8 18:23:52 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.14: +43 -32 lines
Diff to previous 1.14 (colored) to selected 1.8 (colored)

* get_multi_line() will return return code according to error and pointer
  to buffer will be passed as function parameter
* parameter to specify end of line postfixes for multi lines

* functions str_left_trim(), str_right_trim() for white characters removing
* macros ltrim(), rtrim() or str_ltrim(), str_ltrim()
* macros str_trim(), strtrim(), trim()

* leftover arguments dual mode:
  1.) can have valid options after leftover arguments
  2.) after first leftover argument is all cosidered as leftover argument
  Default initialization will be according to POSIXLY_CORRECT environment
  variable. Can be changed by changing context flags.
* better stuff for manipulating with context flags (add, remove, clear, ...)
  - add, clear, remove implemented

* universal functions with strdyn context properties manipulation and
  create appropriate macros

Revision 1.14 / (download) - [select for diffs], Wed Dec 5 23:58:48 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.13: +67 -34 lines
Diff to previous 1.13 (colored) to selected 1.8 (colored)

Basic config file stuff implement.
TODO list updated (look @ that funny features :P)
Example config file added.

Revision 1.13 / (download) - [select for diffs], Sat Dec 1 01:27:47 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.12: +86 -29 lines
Diff to previous 1.12 (colored) to selected 1.8 (colored)

Complete and transparent multi arguments implemented.
Separated multi arguments implemented.
Leftover arguments implemented allowing all types with or without multi.
Code reorganization in <cmdline.c>.
Bug fixes (not NULL tests and others).
New options with new argument types in self testing code.

Revision 1.12 / (download) - [select for diffs], Fri Nov 30 02:10:27 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.11: +80 -25 lines
Diff to previous 1.11 (colored) to selected 1.8 (colored)

* command line stop string implemented
* create strdyn_create_ar() and link strdyn_duplicate()
* boolean multi options initialization handling
* multi options detection and error handling
* string data type support added
* string multi options initialization handling
* others improvements

Revision 1.11 / (download) - [select for diffs], Wed Nov 28 20:46:51 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.10: +17 -6 lines
Diff to previous 1.10 (colored) to selected 1.8 (colored)

*** empty log message ***

Revision 1.10 / (download) - [select for diffs], Tue Nov 27 17:11:30 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.9: +28 -3 lines
Diff to previous 1.9 (colored) to selected 1.8 (colored)

FIXED: for each numeric data type (INT, UINT, LONG, ...) tests if range
  checks works properly; for INT it doesn't
    - int and long seems to be the same datatype
FIXED: fix ULONG argument parsing (there is strange strtoul() behaviour)
Reorganization.
Popt sources in comments removed.
Old code sources in comments removed.
Whole testing, numeric values works fine.

Revision 1.9 / (download) - [select for diffs], Tue Nov 27 15:15:25 2001 UTC (24 years, 10 months ago) by jombik9

Changes since 1.8: +13 -2 lines
Diff to previous 1.8 (colored)

Filename reorganizations.

Revision 1.8 / (download) - [selected], Tue Nov 13 16:19:44 2001 UTC (24 years, 11 months ago) by jombik9

Changes since 1.7: +3 -0 lines
Diff to previous 1.7 (colored)

Valig INT range checks (Red Hat's popt library has a bug in code!)
Additional numeric types (DOUBLE, FLOAT and UNSIGNED LONG) handling with appropriate range checks (not tested yet).
Missing argument error handling (added also into self test code).

Revision 1.7 / (download) - [select for diffs], Tue Oct 23 15:41:32 2001 UTC (24 years, 11 months ago) by jombik9

Changes since 1.6: +4 -0 lines
Diff to previous 1.6 (colored) to selected 1.8 (colored)

Parsing improvements.

Revision 1.6 / (download) - [select for diffs], Tue Oct 23 00:05:18 2001 UTC (24 years, 11 months ago) by jombik9

Changes since 1.5: +40 -3 lines
Diff to previous 1.5 (colored) to selected 1.8 (colored)

Basic implementation command line parsing.
Not fully tested, not fully worked, but seems to be good after few little improvements. :-)

Revision 1.5 / (download) - [select for diffs], Tue Oct 16 18:22:16 2001 UTC (25 years ago) by jombik9

Changes since 1.4: +30 -7 lines
Diff to previous 1.4 (colored) to selected 1.8 (colored)

Command line prefixes (-, --) implemented.
Command line & config file separators (=, =) implemented.

Revision 1.4 / (download) - [select for diffs], Thu Oct 11 13:27:34 2001 UTC (25 years ago) by jombik9

Changes since 1.3: +42 -17 lines
Diff to previous 1.3 (colored) to selected 1.8 (colored)

Default values initialization.
Improvements in strdyn library.

Revision 1.3 / (download) - [select for diffs], Wed Oct 10 19:23:13 2001 UTC (25 years ago) by jombik9

Changes since 1.2: +32 -9 lines
Diff to previous 1.2 (colored) to selected 1.8 (colored)

Properties manipulation implementation.

Revision 1.2 / (download) - [select for diffs], Thu Oct 4 11:55:04 2001 UTC (25 years ago) by jombik9

Changes since 1.1: +4 -261 lines
Diff to previous 1.1 (colored) to selected 1.8 (colored)

work

Revision 1.1 / (download) - [select for diffs], Wed Oct 3 19:12:04 2001 UTC (25 years ago) by jombik9

Diff to selected 1.8 (colored)

Initial revision

Revision 1.1.1.1 / (download) - [select for diffs] (vendor branch), Wed Oct 3 19:12:04 2001 UTC (25 years ago) by jombik9


Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.8 (colored)

command line & config file parsing library

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top