diff options
author | 2003-10-31 08:42:23 +0000 | |
---|---|---|
committer | 2003-10-31 08:42:23 +0000 | |
commit | d484b7d03ace7dfad66bf1845501ed21cdb16b83 (patch) | |
tree | 7217919f9a70564b29131d02c66a64d9abcfe577 /lib/libedit/tokenizer.h | |
parent | regen. (diff) | |
download | wireguard-openbsd-d484b7d03ace7dfad66bf1845501ed21cdb16b83.tar.xz wireguard-openbsd-d484b7d03ace7dfad66bf1845501ed21cdb16b83.zip |
Update to NetBSD libedit (from Oct 1, 2003), adding some string
cleaning and history bug fixes. The code includes GNU libreadline
functionality, but the corresponding header files are not installed,
since some libreadline functions are missing. There are some minor API
changes, notably:
old: EditLine *el_init(const char *, FILE *, FILE *);
new: EditLine *el_init(const char *, FILE *, FILE *, FILE *);
old: HistEvent *history(History *h, int op, ...);
new: int history(History *h, HistEvent *ev, int op, ...); plus some
changes in operation names. See editline(3) for details.
Tested by djm@, mouring@, jmc@.
ok deraadt@
Diffstat (limited to 'lib/libedit/tokenizer.h')
-rw-r--r-- | lib/libedit/tokenizer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libedit/tokenizer.h b/lib/libedit/tokenizer.h index 1a43a0c8977..1d20a256fe3 100644 --- a/lib/libedit/tokenizer.h +++ b/lib/libedit/tokenizer.h @@ -1,5 +1,5 @@ -/* $OpenBSD: tokenizer.h,v 1.6 2003/06/02 20:18:40 millert Exp $ */ -/* $NetBSD: tokenizer.h,v 1.2 1997/01/11 06:48:16 lukem Exp $ */ +/* $OpenBSD: tokenizer.h,v 1.7 2003/10/31 08:42:24 otto Exp $ */ +/* $NetBSD: tokenizer.h,v 1.6 2003/08/07 16:44:34 agc Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -39,13 +39,13 @@ * tokenizer.h: Header file for tokenizer routines */ #ifndef _h_tokenizer -#define _h_tokenizer +#define _h_tokenizer typedef struct tokenizer Tokenizer; -Tokenizer *tok_init(const char *); +Tokenizer *tok_init(const char *); void tok_reset(Tokenizer *); void tok_end(Tokenizer *); -int tok_line(Tokenizer *, const char *, int *, char ***); +int tok_line(Tokenizer *, const char *, int *, const char ***); #endif /* _h_tokenizer */ |