version 1.32, 2006/11/27 23:19:41 |
version 1.33, 2007/05/15 19:42:05 |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
{ |
{ |
char *sys = NOSTR, sbuf[12], *p; |
char *sys = NULL, sbuf[12], *p; |
int i; |
int i; |
|
|
/* XXX preserve previous braindamaged behavior */ |
/* XXX preserve previous braindamaged behavior */ |
|
|
} |
} |
} |
} |
|
|
if (sys == NOSTR) |
if (sys == NULL) |
goto notnumber; |
goto notnumber; |
if (isalpha(*sys)) |
if (isalpha(*sys)) |
goto notnumber; |
goto notnumber; |
|
|
* Kludge, their's no easy way to get the initialization |
* Kludge, their's no easy way to get the initialization |
* in the right order, so force it here |
* in the right order, so force it here |
*/ |
*/ |
if ((PH = getenv("PHONES")) == NOSTR) |
if ((PH = getenv("PHONES")) == NULL) |
PH = _PATH_PHONES; |
PH = _PATH_PHONES; |
vinit(); /* init variables */ |
vinit(); /* init variables */ |
setparity("none"); /* set the parity table */ |
setparity("none"); /* set the parity table */ |
|
|
char *parity; |
char *parity; |
extern const unsigned char evenpartab[]; |
extern const unsigned char evenpartab[]; |
|
|
if (value(PARITY) == NOSTR) |
if (value(PARITY) == NULL) |
value(PARITY) = defparity; |
value(PARITY) = defparity; |
parity = value(PARITY); |
parity = value(PARITY); |
if (equal(parity, "none")) { |
if (equal(parity, "none")) { |