aboutsummaryrefslogtreecommitdiff
path: root/ckaliases.h
diff options
context:
space:
mode:
Diffstat (limited to 'ckaliases.h')
-rw-r--r--ckaliases.h62
1 files changed, 42 insertions, 20 deletions
diff --git a/ckaliases.h b/ckaliases.h
index 8d6546d..d3e053c 100644
--- a/ckaliases.h
+++ b/ckaliases.h
@@ -14,36 +14,58 @@
14 You should have received a copy of the GNU General Public License along 14 You should have received a copy of the GNU General Public License along
15 with this program. If not, see <http://www.gnu.org/licenses/>. */ 15 with this program. If not, see <http://www.gnu.org/licenses/>. */
16 16
17#ifdef HAVE_CONFIG_H
18# include <config.h>
19#endif
20#include <stdio.h>
21#include <stdlib.h>
22#define obstack_chunk_alloc malloc
23#define obstack_chunk_free free
24#include <obstack.h>
25#include <stdio.h>
26#include <stdlib.h>
27#include <stdarg.h>
28#include <unistd.h>
29#include <sys/file.h>
30#include <sys/stat.h>
31#include <errno.h>
32#include <string.h>
33#include "getopt.h"
34#include "progname.h"
35#include "error.h"
36#include "xalloc.h"
37
17extern char *file_name; 38extern char *file_name;
18extern int line_num; 39extern int line_num;
40extern int error_count;
19 41
20void init_lex(); 42void init_lex ();
21void lex_debug(int n); 43void lex_debug (int n);
22void openaliases(char *name); 44void openaliases (char *name);
23void openaliases_prefix(char *prefix, char *name); 45void openaliases_prefix (char *prefix, char *name);
24 46
25struct string_list { 47struct string_list
26 struct string_list *next; 48{
27 char *str; 49 struct string_list *next;
50 char *str;
28}; 51};
29 52
30typedef struct slist { 53typedef struct slist
31 struct string_list *head, *tail; 54{
32 int count; 55 struct string_list *head, *tail;
56 int count;
33} SLIST; 57} SLIST;
34 58
35void slist_add(SLIST **plist, char *str); 59void slist_add (SLIST ** plist, char *str);
36void slist_append(SLIST **pdst, SLIST *src); 60void slist_append (SLIST ** pdst, SLIST * src);
37char *slist_member(SLIST *plist, char *name); 61char *slist_member (SLIST * plist, char *name);
38void slist_destroy(SLIST **plist); 62void slist_destroy (SLIST ** plist);
39
40void read_include(SLIST **plist, char *name);
41 63
42void regalias(char *name, SLIST *exp); 64void read_include (SLIST ** plist, char *name);
43void begin_aliases(void);
44void end_aliases(void);
45 65
46void error(char *fmt, ...); 66void regalias (char *name, SLIST * exp);
67void begin_aliases (void);
68void end_aliases (void);
47 69
48extern SLIST *cw_list; 70extern SLIST *cw_list;
49extern int verbose; 71extern int verbose;

Return to:

Send suggestions and report system problems to the System administrator.