/* * This program changes locals to be register declarations. This * produces code which runs 10% faster on some systems * (e.g., Vax-11/750, Sequent Balance). Don't try to use this * program with other than TeX and Metafont in C. * * Tim Morgan February 25, 1988 */ #include #include "site.h" char line[10240]; #ifdef REGFIX /* REST OF FILE */ #ifdef SYSV #define index strchr #endif extern char *index(); #define Puts(s) fputs(s, stdout) char *types[] = {"ASCIIcode ", "schar ", "eightbits ", "scaled ", "glueord ", "halfword ", "hyphpointer ", "internalfontnumber ", "nonnegativeinteger ", "poolpointer ", "quarterword ", "smallnumber ", "strnumber ", "triepointer ", "integer ", "short "}; #define NUMTYPES (sizeof(types)/sizeof(types[0])) int lens[NUMTYPES]; char *matchestype() { register int i; if (line[0] != ' ' || line[1] != ' ') return(0); for (i=0; i