| version 1.4, 2001/12/20 00:26:52 |
version 1.5, 2002/02/05 22:37:03 |
|
|
| /* |
/* |
| * $Log$ |
* $Id$ |
| * Revision 1.4 2001/12/20 00:26:52 jombik9 |
|
| * Various Makefile & code improvements. |
|
| * wait() implementation - no error is reported on ctrl+d now |
|
| * |
|
| * Revision 1.3 2001/12/13 11:22:01 jombik9 |
|
| * fcntl() added |
|
| * |
|
| * Revision 1.2 2001/12/03 12:18:19 jombik9 |
|
| * Warning removed. |
|
| * |
|
| * Revision 1.1 2001/12/02 23:33:11 jombik9 |
|
| * Completely new command line parsing implemented (using libcfg). |
|
| * Global options present, but not parsed yed. |
|
| * Place for config file parsing present, but not implemented yet. |
|
| * |
|
| * Revision 1.3 2001/09/21 19:48:30 host8 |
|
| * Cosmetics changes in cfg.c |
|
| * |
|
| * Revision 1.2 2001/09/21 19:44:51 host8 |
|
| * Added $Log$ |
|
| * Added Revision 1.4 2001/12/20 00:26:52 jombik9 |
|
| * Added Various Makefile & code improvements. |
|
| * Added wait() implementation - no error is reported on ctrl+d now |
|
| * Added |
|
| * Added Revision 1.3 2001/12/13 11:22:01 jombik9 |
|
| * Added fcntl() added |
|
| * Added |
|
| * Added Revision 1.2 2001/12/03 12:18:19 jombik9 |
|
| * Added Warning removed. |
|
| * Added |
|
| * Added Revision 1.1 2001/12/02 23:33:11 jombik9 |
|
| * Added Completely new command line parsing implemented (using libcfg). |
|
| * Added Global options present, but not parsed yed. |
|
| * Added Place for config file parsing present, but not implemented yet. |
|
| * Added |
|
| * Added Revision 1.3 2001/09/21 19:48:30 host8 |
|
| * Added Cosmetics changes in cfg.c |
|
| * Added keyword substitution |
|
| * |
|
| */ |
*/ |
| #include <stdio.h> |
#include <stdio.h> |
| #include <string.h> |
#include <string.h> |
| #include <stdlib.h> |
#include <stdlib.h> |
| #include <ctype.h> |
#include <ctype.h> |
| |
|
| #include <cfg/cfg.h> |
#include "cfg/cfg.h" |
| #include <cfg/str/strdyn.h> |
#include "cfg/str/strplus.h" |
| |
#include "cfg/str/strdyn.h" |
| |
|
| #include "fd.h" |
#include "fd.h" |
| #include "proctable.h" |
#include "proctable.h" |
| Line 91 PROCTABLE cfglocal_process(int argc, cha |
|
| Line 53 PROCTABLE cfglocal_process(int argc, cha |
|
| proc_ar = NULL; |
proc_ar = NULL; |
| ptbl = NULL; |
ptbl = NULL; |
| |
|
| /* |
/* |
| |
|
| PARSING SCHEME (do not delete!) |
PARSING SCHEME (do not delete!) |
| ------------------------------- |
------------------------------- |
| |
|
| cfglocal_cmdline_parse_process(); |
cfglocal_cmdline_parse_process(); |
| if (err) { |
if (err) { |
| cfglocal_cmdline_parse_global(); |
cfglocal_cmdline_parse_global(); |
| if (err) { |
if (err) { |
| fail; |
fail; |
| } |
} |
| |
|
| if (config_file) { |
if (config_file) { |
| cfglocal_cfgfile_parse_all(); |
cfglocal_cfgfile_parse_all(); |
| |
} |
| } |
} |
| } |
*/ |
| |
|
| */ |
|
| |
|
| while (1) { |
while (1) { |
| register int idx; |
register int idx; |
| Line 301 static int cfglocal_cmdline_parse_proces |
|
| Line 261 static int cfglocal_cmdline_parse_proces |
|
| msg_error_print("error on command line (error %d at %s)\n", |
msg_error_print("error on command line (error %d at %s)\n", |
| ret, argv[cfg_get_cur_idx(con)]); |
ret, argv[cfg_get_cur_idx(con)]); |
| cfg_free_context(con); |
cfg_free_context(con); |
| return -1; |
return ret; |
| } |
} |
| |
|
| if (cfg_get_cur_idx(con) == 0) { |
if (cfg_get_cur_idx(con) == 0) { |