comparison lwlib/lw_cmdline.c @ 8:fdc11ef4115b

Switched lwlink to lw_cmdline from argp and also brought in lw_alloc and lw_string to replace util.c
author lost@l-w.ca
date Sat, 22 Jan 2011 09:58:24 -0700
parents 1e5e8ec406fb
children a5d4693483af
comparison
equal deleted inserted replaced
7:917b608b8c66 8:fdc11ef4115b
20 */ 20 */
21 21
22 #include <stdio.h> 22 #include <stdio.h>
23 #include <stdlib.h> 23 #include <stdlib.h>
24 #include <string.h> 24 #include <string.h>
25 #include <ctype.h>
25 26
26 #include "lw_alloc.h" 27 #include "lw_alloc.h"
27 28
28 #define ___lw_cmdline_c_seen___ 29 #define ___lw_cmdline_c_seen___
29 #include "lw_cmdline.h" 30 #include "lw_cmdline.h"
205 static void lw_cmdline_help(struct lw_cmdline_parser *parser, char *name) 206 static void lw_cmdline_help(struct lw_cmdline_parser *parser, char *name)
206 { 207 {
207 struct lw_cmdline_options **llist; 208 struct lw_cmdline_options **llist;
208 int nopt; 209 int nopt;
209 int i; 210 int i;
210 int t;
211 char *tstr; 211 char *tstr;
212 int col = 0; 212 int col = 0;
213 213
214 tstr = parser -> doc; 214 tstr = parser -> doc;
215 for (nopt = 0; parser -> options[nopt].name; nopt++) 215 for (nopt = 0; parser -> options[nopt].name; nopt++)