diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-24 07:02:11 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-06-24 07:02:11 +0000 |
commit | 6cbeff63c5f18ab4752342de7ae83a35118ebc38 (patch) | |
tree | e3becf02bc3d160206e1370760b38fd6a3c03609 /Build/source/texk/web2c/lib/main.c | |
parent | 4257aa8b08cf9d60fbf6dd3d5da0afae5e4308ba (diff) |
use ANSI C function declarations and prototypes
git-svn-id: svn://tug.org/texlive/trunk@13938 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/lib/main.c')
-rw-r--r-- | Build/source/texk/web2c/lib/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/lib/main.c b/Build/source/texk/web2c/lib/main.c index 8341b979543..23af7a4fd12 100644 --- a/Build/source/texk/web2c/lib/main.c +++ b/Build/source/texk/web2c/lib/main.c @@ -8,17 +8,18 @@ char **argv; int argc; +extern void mainbody (void); + /* The entry point for all the programs except TeX and Metafont, which have more to do. We just have to set up the command line. web2c transforms Pascal's main block into a procedure `main_body'. */ - -int main P2C(int, ac, string *, av) +int +main (int ac, string* av) { #ifdef __EMX__ _wildcard (&ac, &av); _response (&ac, &av); #endif - extern void mainbody P1H(void); argc = ac; argv = av; @@ -30,7 +31,7 @@ int main P2C(int, ac, string *, av) /* Return the Nth (counted as in C) argument from the command line. */ string -cmdline P1C(int, n) +cmdline (int n) { if (n >= argc) { /* This error message should never happen, because the callers |