aboutsummaryrefslogtreecommitdiff
path: root/ckaliases.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-24 20:38:54 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-08-24 20:38:54 +0000
commitab736c0b1959c6c605c210d5fd9665bfe002042e (patch)
treee23a335c9a0e81505c9c06ba089e776200e1d443 /ckaliases.h
parented4ec220dcfcba29a7fc8ff161999c32a98e4430 (diff)
downloadalck-ab736c0b1959c6c605c210d5fd9665bfe002042e.tar.gz
alck-ab736c0b1959c6c605c210d5fd9665bfe002042e.tar.bz2
* lib/version.c: New file
* lib/gsc.h (gsc_version): New function * cvs/Makefile.am, ckaliases/Makefile.am, wydawca/Makefile.am, lib/Makefile.am, jabberd/Makefile.am: Fix include dirs * ckaliases/ckaliases.c, ckaliases/lex.l, ckaliases/ckaliases.h, ckaliases/gram.y: Use long options. Implement --version * wydawca/wydawca.c, jabberd/main.c: Use gsc_version to display program version. * doc/gsc.texi: Update * bootstrap: Add vasprintf git-svn-id: file:///svnroot/gsc/trunk@289 d2de0444-eb31-0410-8365-af798a554d48
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 @@
You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+#include <stdio.h>
+#include <stdlib.h>
+#define obstack_chunk_alloc malloc
+#define obstack_chunk_free free
+#include <obstack.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <unistd.h>
+#include <sys/file.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <string.h>
+#include "getopt.h"
+#include "progname.h"
+#include "error.h"
+#include "xalloc.h"
+
extern char *file_name;
extern int line_num;
+extern int error_count;
-void init_lex();
-void lex_debug(int n);
-void openaliases(char *name);
-void openaliases_prefix(char *prefix, char *name);
+void init_lex ();
+void lex_debug (int n);
+void openaliases (char *name);
+void openaliases_prefix (char *prefix, char *name);
-struct string_list {
- struct string_list *next;
- char *str;
+struct string_list
+{
+ struct string_list *next;
+ char *str;
};
-typedef struct slist {
- struct string_list *head, *tail;
- int count;
+typedef struct slist
+{
+ struct string_list *head, *tail;
+ int count;
} SLIST;
-void slist_add(SLIST **plist, char *str);
-void slist_append(SLIST **pdst, SLIST *src);
-char *slist_member(SLIST *plist, char *name);
-void slist_destroy(SLIST **plist);
-
-void read_include(SLIST **plist, char *name);
+void slist_add (SLIST ** plist, char *str);
+void slist_append (SLIST ** pdst, SLIST * src);
+char *slist_member (SLIST * plist, char *name);
+void slist_destroy (SLIST ** plist);
-void regalias(char *name, SLIST *exp);
-void begin_aliases(void);
-void end_aliases(void);
+void read_include (SLIST ** plist, char *name);
-void error(char *fmt, ...);
+void regalias (char *name, SLIST * exp);
+void begin_aliases (void);
+void end_aliases (void);
extern SLIST *cw_list;
extern int verbose;

Return to:

Send suggestions and report system problems to the System administrator.