Deleted Added
full compact
interp_parse.c (38789) interp_parse.c (39441)
1/*
2 * Redistribution and use in source and binary forms, with or without
3 * modification, are permitted provided that the following conditions
4 * are met:
5 * 1. Redistributions of source code must retain the above copyright
6 * notice, this list of conditions and the following disclaimer.
7 * 2. Redistributions in binary form must reproduce the above copyright
8 * notice, this list of conditions and the following disclaimer in the
9 * documentation and/or other materials provided with the distribution.
10 *
11 * Jordan K. Hubbard
12 * 29 August 1998
13 *
1/*
2 * Redistribution and use in source and binary forms, with or without
3 * modification, are permitted provided that the following conditions
4 * are met:
5 * 1. Redistributions of source code must retain the above copyright
6 * notice, this list of conditions and the following disclaimer.
7 * 2. Redistributions in binary form must reproduce the above copyright
8 * notice, this list of conditions and the following disclaimer in the
9 * documentation and/or other materials provided with the distribution.
10 *
11 * Jordan K. Hubbard
12 * 29 August 1998
13 *
14 * $Id: interp_parse.c,v 1.2 1998/09/03 06:14:41 jkh Exp $
14 * $Id: interp_parse.c,v 1.3 1998/09/04 02:43:26 msmith Exp $
15 *
16 * The meat of the simple parser.
17 */
18
19#include <stand.h>
20#include <string.h>
21
22/* Forward decls */
23extern char *backslash(char *str);
24
15 *
16 * The meat of the simple parser.
17 */
18
19#include <stand.h>
20#include <string.h>
21
22/* Forward decls */
23extern char *backslash(char *str);
24
25static void init(int *argcp, char ***argvp);
26static void clean(void);
27static int insert(int *argcp, char *buf);
28static char *variable_lookup(char *name);
29
30#define PARSE_BUFSIZE 1024 /* maximum size of one element */
31#define MAXARGS 20 /* maximum number of elements */
32static char *args[MAXARGS];
33

--- 168 unchanged lines hidden ---
25static void clean(void);
26static int insert(int *argcp, char *buf);
27static char *variable_lookup(char *name);
28
29#define PARSE_BUFSIZE 1024 /* maximum size of one element */
30#define MAXARGS 20 /* maximum number of elements */
31static char *args[MAXARGS];
32

--- 168 unchanged lines hidden ---