]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
convert-rxgen-to-afsconfig-20010623
authorNathan Neulinger <nneul@umr.edu>
Sat, 23 Jun 2001 16:14:37 +0000 (16:14 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 23 Jun 2001 16:14:37 +0000 (16:14 +0000)
switch to afsconfig for some configuration; add RCSID

src/rxgen/Makefile
src/rxgen/rpc_clntout.c
src/rxgen/rpc_cout.c
src/rxgen/rpc_hout.c
src/rxgen/rpc_main.c
src/rxgen/rpc_parse.c
src/rxgen/rpc_scan.c
src/rxgen/rpc_svcout.c
src/rxgen/rpc_util.c
src/rxgen/rpc_util.h

index bac5c93dbe2d5b7102164b2f012fcbbe33c40bf6..bf186b869423e4dfac77d2fb456096be4e1647bd 100644 (file)
@@ -18,7 +18,7 @@ OBJS= rpc_main.o rpc_hout.o rpc_cout.o rpc_parse.o rpc_scan.o rpc_util.o \
        rpc_svcout.o rpc_clntout.o
 
 GOAL=rxgen
-CFLAGS = ${DBUG} -I. -I${DESTDIR}include ${XCFLAGS}
+CFLAGS = ${DBUG} -I. -I${DESTDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
 
 USNS=cellname
 SD=../../../src/CML
index 40f52dcc458b8cd54ebb821ca39c5de638f180c9..01394d916b9cfb72db60fe2943ed11876422afa6 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#ifndef lint
-static char sccsid[] = "@(#)rpc_clntout.c 1.2 87/06/24 (C) 1987 SMI";
-#endif
 
 /*
  * rpc_clntout.c, Client-stub outputter for the RPC protocol compiler
  * Copyright (C) 1987, Sun Microsytsems, Inc.
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
 #include <string.h>
-#else
-#include <strings.h>
-#endif
 #include "rpc_parse.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 #define DEFAULT_TIMEOUT 25     /* in seconds */
 
 static write_program();
index 0b2820eb4970e22df58fa9f6f63fe1dc357de543..e529e8b449dce5af27f58a1de7b36016f89c1932 100644 (file)
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#include <stdlib.h>
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_util.h"
 #include "rpc_parse.h"
 
+RCSID("$Header$");
+
 static print_header();
 static print_trailer();
 static space();
index 5c7853bc500f017c06adf6ccd766843fa66ff83e..8c21bce219feb89d3f7176725e662f0de7c7c9d7 100644 (file)
  * rpc_hout.c, Header file outputter for the RPC protocol compiler 
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
+#include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
 #include <ctype.h>
 #include "rpc_util.h"
 #include "rpc_parse.h"
 
+RCSID("$Header$");
+
 static pconstdef();
 static pstructdef();
 static puniondef();
index 640f81ed56486bb799f9023b712011e71f849979..01ad71b1ca4fe5c9822d5a76c5a25b4563f641d8 100644 (file)
  */
 
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <limits.h>
 #include <stdio.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
+#include <stdlib.h>
 #include <ctype.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
-#ifndef AFS_NT40_ENV
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+#ifdef HAVE_SYS_FILE_H
 #include <sys/file.h>
 #endif
 #include "rpc_util.h"
 #include "rpc_parse.h"
 #include "rpc_scan.h"
 
+RCSID("$Header$");
+
 #define EXTEND 1               /* alias for TRUE */
 
 struct commandline {
@@ -120,17 +125,18 @@ static char *XTRA_CPPFLAGS[] = {
 };
 #endif
 
-static c_output();
-static h_output();
-static s_output();
-static l_output();
-static do_registers();
-static parseargs();
+static int c_output();
+static int h_output();
+static int s_output();
+static int l_output();
+static int do_registers();
+static int parseargs();
 
 static int allc = sizeof(allv)/sizeof(allv[0]);
 
 #include "AFS_component_version_number.c"
 
+int
 main(argc, argv)
        int argc;
        char *argv[];
index 0d6a7fc36852dd97de221496d9c82cd47149644c..6656e33bb354267d70e268a0e9e6fdac729e583f 100644 (file)
  * Copyright (C) 1987 Sun Microsystems, Inc.
  */
 #include <afs/param.h>
+#include <afsconfig.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <ctype.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
 #include <string.h>
-#if defined(AFS_SUN5_ENV)
-#include <strings.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
 #endif
-#else
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_util.h"
 #include "rpc_scan.h"
 #include "rpc_parse.h"
 
+RCSID("$Header$");
 
 list *proc_defined[MAX_PACKAGES], *special_defined, *typedef_defined, *uniondef_defined;
 char *SplitStart = NULL;
index 385c79a273ac87ededde5bd59d31ef910544702d..d2d390d0d5358d3fb8f91948a7e8502e8b552042 100644 (file)
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_scan.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 #define startcomment(where) (where[0] == '/' && where[1] == '*')
 #define endcomment(where) (where[-1] == '*' && where[0] == '/')
 #define        verbatimstart(p) (*(p) == '@' && *((p) + 1) == '{')
index 8395227714d4f8448bccd188d12c38901c6df14a..5724ba8136375048966ef00ad5864ddb7a62cf9c 100644 (file)
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  */
-#ifndef lint
-static char sccsid[] = "@(#)rpc_svcout.c 1.6 87/06/24 (C) 1987 SMI";
-#endif
 
 /*
  * rpc_svcout.c, Server-skeleton outputter for the RPC protocol compiler
  * Copyright (C) 1987, Sun Microsytsems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#ifdef HAVE_STRING_H
 #include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #include "rpc_parse.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 static char RQSTP[] = "rqstp";
 static char TRANSP[] = "transp";
 static char ARG[] = "argument";
index 971c2ec9051556b3d3ce93f3db8569beb2c4f134..4b7ce3a36dc094c121fa2ad9dc959b9033835ee4 100644 (file)
  * Copyright (C) 1987, Sun Microsystems, Inc. 
  */
 #include <afs/param.h>
+#include <afsconfig.h>
 #include <stdio.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
 #include "rpc_scan.h"
 #include "rpc_parse.h"
 #include "rpc_util.h"
 
+RCSID("$Header$");
+
 char curline[MAXLINESIZE];     /* current read line */
 char *where = curline; /* current point in line */
 int linenum = 0;       /* current line number */
index 3df9ca36d96668249dce4c8a9dea08f8250f14b5..501e9bd5714da3e30ec2695d3eb7b89be5a3a0bd 100644 (file)
  */
 
 #include "rxgen_consts.h"
-#ifndef AFS_NT40_ENV
-#ifdef AFS_OSF_ENV
-extern void *malloc();
-#else
-extern char *malloc();
-#endif /* osf */
-#endif /* nt40 */
 #define alloc(size)            malloc((unsigned)(size))
 #define ALLOC(object)   (object *) malloc(sizeof(object))