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
* 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();
* 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();
* 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();
*/
#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 {
};
#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[];
* 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;
* 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) == '{')
* 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";
* 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 */
*/
#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))