version 1.15, 2006/04/14 01:11:07 |
version 1.16, 2006/04/19 06:53:41 |
|
|
#define VALDELIM ':' /* values delimiter */ |
#define VALDELIM ':' /* values delimiter */ |
|
|
static int found = 0; |
static int found = 0; |
|
static int flags = 0; |
|
|
static void ident_file(const char *, FILE *); |
static void ident_file(const char *, FILE *); |
static void ident_line(FILE *); |
static void ident_line(FILE *); |
|
|
while ((ch = rcs_getopt(argc, argv, "qV")) != -1) { |
while ((ch = rcs_getopt(argc, argv, "qV")) != -1) { |
switch(ch) { |
switch(ch) { |
case 'q': |
case 'q': |
verbose = 0; |
flags |= QUIET; |
break; |
break; |
case 'V': |
case 'V': |
printf("%s\n", rcs_version); |
printf("%s\n", rcs_version); |
|
|
ident_line(fp); |
ident_line(fp); |
} |
} |
|
|
if (found == 0 && verbose == 1) |
if (found == 0 && !(flags & QUIET)) |
fprintf(stderr, "ident warning: no id keywords in %s\n", |
fprintf(stderr, "ident warning: no id keywords in %s\n", |
filename); |
filename); |
|
|