version 1.8, 2003/06/03 02:56:16 |
version 1.9, 2003/06/10 22:20:50 |
|
|
static void add_file(char *); |
static void add_file(char *); |
|
|
int |
int |
main(argc, argv) |
main(int argc, char *argv[]) |
int argc; |
|
char *argv[]; |
|
{ |
{ |
int c, fflag; |
int c, fflag; |
|
|
|
|
* together. Empty strings and files are ignored. |
* together. Empty strings and files are ignored. |
*/ |
*/ |
char * |
char * |
cu_fgets(buf, n) |
cu_fgets(char *buf, int n) |
char *buf; |
|
int n; |
|
{ |
{ |
static enum {ST_EOF, ST_FILE, ST_STRING} state = ST_EOF; |
static enum {ST_EOF, ST_FILE, ST_STRING} state = ST_EOF; |
static FILE *f; /* Current open file */ |
static FILE *f; /* Current open file */ |
|
|
* Set len to the length of the line. |
* Set len to the length of the line. |
*/ |
*/ |
int |
int |
mf_fgets(sp, spflag) |
mf_fgets(SPACE *sp, enum e_spflag spflag) |
SPACE *sp; |
|
enum e_spflag spflag; |
|
{ |
{ |
static FILE *f; /* Current open file */ |
static FILE *f; /* Current open file */ |
size_t len; |
size_t len; |
|
|
* Add a compilation unit to the linked list |
* Add a compilation unit to the linked list |
*/ |
*/ |
static void |
static void |
add_compunit(type, s) |
add_compunit(enum e_cut type, char *s) |
enum e_cut type; |
|
char *s; |
|
{ |
{ |
struct s_compunit *cu; |
struct s_compunit *cu; |
|
|
|
|
* Add a file to the linked list |
* Add a file to the linked list |
*/ |
*/ |
static void |
static void |
add_file(s) |
add_file(char *s) |
char *s; |
|
{ |
{ |
struct s_flist *fp; |
struct s_flist *fp; |
|
|