version 1.2, 1996/06/26 05:38:41 |
version 1.3, 2001/07/17 02:23:59 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
#include <unistd.h> |
#include <ctype.h> |
#include <ctype.h> |
#include "rpc_scan.h" |
#include "rpc_scan.h" |
#include "rpc_parse.h" |
#include "rpc_parse.h" |
|
|
/* |
/* |
* Reinitialize the world |
* Reinitialize the world |
*/ |
*/ |
|
void |
reinitialize() |
reinitialize() |
{ |
{ |
memset(curline, 0, MAXLINESIZE); |
memset(curline, 0, MAXLINESIZE); |
|
|
/* |
/* |
* string equality |
* string equality |
*/ |
*/ |
|
int |
streq(a, b) |
streq(a, b) |
char *a; |
char *a; |
char *b; |
char *b; |
|
|
*l = lst; |
*l = lst; |
} |
} |
|
|
static |
static int |
findit(def, type) |
findit(def, type) |
definition *def; |
definition *def; |
char *type; |
char *type; |
|
|
} |
} |
} |
} |
|
|
static |
static int |
typedefed(def, type) |
typedefed(def, type) |
definition *def; |
definition *def; |
char *type; |
char *type; |
|
|
} |
} |
} |
} |
|
|
|
int |
isvectordef(type, rel) |
isvectordef(type, rel) |
char *type; |
char *type; |
relation rel; |
relation rel; |
|
|
* Something went wrong, unlink any files that we may have created and then |
* Something went wrong, unlink any files that we may have created and then |
* die. |
* die. |
*/ |
*/ |
|
void |
crash() |
crash() |
{ |
{ |
int i; |
int i; |
|
|
return (sp->str); |
return (sp->str); |
} |
} |
|
|
static |
static void |
printbuf() |
printbuf() |
{ |
{ |
char c; |
char c; |
|
|
|
|
# define TABSIZE 4 |
# define TABSIZE 4 |
|
|
for (i = 0; c = curline[i]; i++) { |
for (i = 0; (c = curline[i]) != '\0'; i++) { |
if (c == '\t') { |
if (c == '\t') { |
cnt = 8 - (i % TABSIZE); |
cnt = 8 - (i % TABSIZE); |
c = ' '; |
c = ' '; |