version 1.6, 2003/06/26 00:12:39 |
version 1.7, 2004/07/20 03:50:27 |
|
|
* keep clist in order--inserts a column in a sorted array |
* keep clist in order--inserts a column in a sorted array |
*/ |
*/ |
static void |
static void |
insertcol(field) |
insertcol(struct field *field) |
struct field *field; |
|
{ |
{ |
int i; |
int i; |
for (i = 0; i < ncols; i++) |
for (i = 0; i < ncols; i++) |
|
|
* matches fields with the appropriate columns--n^2 but who cares? |
* matches fields with the appropriate columns--n^2 but who cares? |
*/ |
*/ |
void |
void |
fldreset(fldtab) |
fldreset(struct field *fldtab) |
struct field *fldtab; |
|
{ |
{ |
int i; |
int i; |
fldtab[0].tcol.p = clist+ncols-1; |
fldtab[0].tcol.p = clist+ncols-1; |
|
|
* interprets a column in a -k field |
* interprets a column in a -k field |
*/ |
*/ |
char * |
char * |
setcolumn(pos, cur_fld, gflag) |
setcolumn(char *pos, struct field *cur_fld, int gflag) |
char *pos; |
|
struct field *cur_fld; |
|
int gflag; |
|
{ |
{ |
struct column *col; |
struct column *col; |
int tmp; |
int tmp; |
|
|
} |
} |
|
|
int |
int |
setfield(pos, cur_fld, gflag) |
setfield(char *pos, struct field *cur_fld, int gflag) |
char *pos; |
|
struct field *cur_fld; |
|
int gflag; |
|
{ |
{ |
int tmp; |
int tmp; |
cur_fld->weights = ascii; |
cur_fld->weights = ascii; |
|
|
} |
} |
|
|
int |
int |
optval(desc, tcolflag) |
optval(int desc, int tcolflag) |
int desc, tcolflag; |
|
{ |
{ |
switch(desc) { |
switch(desc) { |
case 'b': |
case 'b': |
|
|
* Note that the conversion is tricky, see the manual for details. |
* Note that the conversion is tricky, see the manual for details. |
*/ |
*/ |
void |
void |
fixit(argc, argv) |
fixit(int *argc, char **argv) |
int *argc; |
|
char **argv; |
|
{ |
{ |
int i, j; |
int i, j; |
long v, w, x; |
long v, w, x; |
|
|
* all bets are off. See also num_init in number.c |
* all bets are off. See also num_init in number.c |
*/ |
*/ |
void |
void |
settables(gflags) |
settables(int gflags) |
int gflags; |
|
{ |
{ |
u_char *wts; |
u_char *wts; |
int i, incr; |
int i, incr; |