comparison pwplib/setup.c @ 35:b9d679965320

Code cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 24 May 2010 01:22:33 +0300
parents f0869ef0f2d9
children e2b6a35bcb0c
comparison
equal deleted inserted replaced
34:32ec3c0d1b6c 35:b9d679965320
120 120
121 /*********************************************************************/ 121 /*********************************************************************/
122 122
123 #define ARGC pwplib.argc 123 #define ARGC pwplib.argc
124 #define ARGV pwplib.argv 124 #define ARGV pwplib.argv
125 int getopts(optab*argin) 125 static int getopts(optab *argin)
126 { 126 {
127 int i=0; 127 int i=0;
128 128
129 {optab*s0=argin; 129 {optab*s0=argin;
130 while(s0->name!=NULL) 130 while(s0->name!=NULL)
217 #undef ARGC 217 #undef ARGC
218 #undef ARGV 218 #undef ARGV
219 219
220 /************************************/ 220 /************************************/
221 221
222 optab main_init[]= 222 static optab main_init[]=
223 { 223 {
224 /* stuph */ 224 /* stuph */
225 "help", OPT_ONE,(void*)0,(void*)&pwplib.setup[SETUP_WANTHELP], 225 "help", OPT_ONE,(void*)0,(void*)&pwplib.setup[SETUP_WANTHELP],
226 "shutup", OPT_ONE,(void*)0,(void*)&pwplib.setup[SETUP_SHUTUP], 226 "shutup", OPT_ONE,(void*)0,(void*)&pwplib.setup[SETUP_SHUTUP],
227 "infodelay",OPT_INT,(void*)100,(void*)&pwplib.set.infodelay, 227 "infodelay",OPT_INT,(void*)100,(void*)&pwplib.set.infodelay,