diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2017-10-26 16:45:12 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2017-10-26 16:45:12 (GMT) |
commit | 6054f36bb658916bd231b9002efb94444e2871c8 (patch) | |
tree | a815500ec9bf0e100f4075a825213605c382def0 /word.h | |
download | blt-6054f36bb658916bd231b9002efb94444e2871c8.zip blt-6054f36bb658916bd231b9002efb94444e2871c8.tar.gz blt-6054f36bb658916bd231b9002efb94444e2871c8.tar.bz2 |
Squashed 'xpa/' content from commit d6a54301
git-subtree-dir: xpa
git-subtree-split: d6a543018b46c5a6c47b5ff91e0e131549595ca6
Diffstat (limited to 'word.h')
-rw-r--r-- | word.h | 59 |
1 files changed, 59 insertions, 0 deletions
@@ -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 |