diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-17 15:27:21 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-17 15:27:21 (GMT) |
commit | 912e82088edadbdbf95d594f93ddc9dd99a305f8 (patch) | |
tree | 9153dcd3bcf256fb26ebdcbfd8a1a7d9132430f1 /xpa/word.h | |
parent | fecf4a80a5080aa65e7c2d717f96e86ad04ca46c (diff) | |
parent | d604b7940b14efb191a38ef22c3a38fa3adba4d0 (diff) | |
download | blt-912e82088edadbdbf95d594f93ddc9dd99a305f8.zip blt-912e82088edadbdbf95d594f93ddc9dd99a305f8.tar.gz blt-912e82088edadbdbf95d594f93ddc9dd99a305f8.tar.bz2 |
Merge commit 'd604b7940b14efb191a38ef22c3a38fa3adba4d0' as 'xpa'
Diffstat (limited to 'xpa/word.h')
-rw-r--r-- | xpa/word.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/xpa/word.h b/xpa/word.h new file mode 100644 index 0000000..5778574 --- /dev/null +++ b/xpa/word.h @@ -0,0 +1,59 @@ +/* + * Copyright (c) 1999-2003 Smithsonian Astrophysical Observatory + */ + +/* + * + * word.h -- declarations for word parsing + * + */ + +#ifndef __word_h +#define __word_h + +#if HAVE_CONFIG_H +#include <conf.h> +#endif +#ifdef HAVE_STRING_H +#include <string.h> +#endif +#if HAVE_MALLOC_H +#include <malloc.h> +#endif +#if HAVE_STDLIB_H +#include <stdlib.h> +#endif +#include <prsetup.h> +#include <xalloc.h> + +/* defines the types of callback procedure we use */ +typedef char *(*MacroCB)( +#ifdef ANSI_FUNC + char *buf, + void *client_data +#endif +); + +_PRbeg + +int word _PRx((char *lbuf, char *tbuf, int *lptr)); +int newdtable _PRx((char *s)); +int freedtable _PRx((void)); +void newdelim _PRx((char *s)); +void freedelim _PRx((char *s)); +int lastdelim _PRx((void)); +int tmatch _PRx((char *string, char *xtemplate)); +int keyword _PRx((char *ibuf, char *key, char *obuf, int maxlen)); +char *macro _PRx((char *icmd, char **keyword, char **value, int nkey, + MacroCB client_callback, void *client_data)); +void cluc _PRx((char *s)); +void culc _PRx((char *s)); +int nowhite _PRx((char *c, char *cr)); +void nocr _PRx((char *s)); +int istrue _PRx((char *s)); +int isfalse _PRx((char *s)); +unsigned long strtoul16 _PRx((char *s, char **t)); + +_PRend + +#endif |