text.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/*
* Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
* All Rights Reserved.
*/
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
# include "e.h"
# include "e.def"
#include <locale.h>
int csp;
int psp;
#define CSSIZE 400
char cs[420];
int c;
char *p;
#ifndef NEQN
#else NEQN
#endif NEQN
if (t == QTEXT)
p = p1;
else if ( t == SPACE )
p = "\\ ";
else if ( t == THIN )
p = "\\|";
else if ( t == TAB )
p = "\\t";
else {
if (lf == 0)
}
p = cs;
}
}
int f;
f = ROM;
switch( c) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
case ':': case ';': case '!': case '%':
case '(': case '[': case ')': case ']':
case ',':
shim();
roman(c); break;
case '.':
roman(c);
else
f = rf;
break;
case '|':
shim();
case '=':
shim();
break;
case '+':
shim();
break;
case '>': case '<':
shim();
name4(c,'=');
psp++;
} else {
}
break;
case '-':
shim();
} else {
}
break;
case '/':
shim();
break;
case '~': case ' ':
case '^':
shim(); break;
case '\\': /* troff - pass 2 or 3 more chars */
shim();
}
break;
case '\'':
break;
case 'f':
f = ITAL;
}
else
break;
case 'j':
f = ITAL;
}
else
break;
default:
break;
}
return(f);
}
shim() {
}
roman(c) int c; {
}
}