Browse CVS Repository
Contents of /caraway/caraway/caraway.c
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1.1.1 -
( show annotations)
( download)
( as text)
(vendor branch)
Tue Jan 24 07:38:06 2006 UTC
(18 years, 2 months ago)
by reno
Branch: MAIN, reno
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-csrc
initial import into cvs
| 1 |
#include <stdio.h> |
| 2 |
#include <stdlib.h> |
| 3 |
#include "caraway.h" |
| 4 |
|
| 5 |
int main( int argc, char **argv ) |
| 6 |
{ |
| 7 |
if (argc < 2) |
| 8 |
fatal("option error"); |
| 9 |
if (!(yyin = fopen(argv[1], "r"))) |
| 10 |
fatal("open error"); |
| 11 |
yyparse(); |
| 12 |
return 0; |
| 13 |
} |
| 14 |
|
| 15 |
void fatal( char *s ) |
| 16 |
{ |
| 17 |
fprintf(stderr, "%s!!!.\n", s); |
| 18 |
} |
| 19 |
|
|