Added callables

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@29 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-01-05 14:54:43 +00:00
commit c595c94f1d
5 changed files with 110 additions and 37 deletions

View file

@ -84,7 +84,7 @@ typedef struct {
/* Callable */
typedef struct {
DOH (*doh_call)(DOH *obj, DOH *args); /* Callable */
DOH *(*doh_call)(DOH *obj, DOH *args); /* Callable */
} DohCallableMethods;
@ -200,12 +200,11 @@ extern int DohUngetc(int ch, DOH *obj);
extern void DohEncoding(char *name, DOH *(*fn)(DOH *s));
extern int DohPrintf(DOH *obj, char *format, ...);
extern int DohvPrintf(DOH *obj, char *format, va_list ap);
/* extern int DohScanf(DOH *obj, char *format, ...);
extern int DohvScanf(DOH *obj, char *format, va_list ap); */
extern int DohReplace(DOH *src, DOH *token, DOH *rep, int flags);
extern DOH *DohReadline(DOH *in);
extern DOH *DohCall(DOH *obj, DOH *args);
#ifndef DOH_LONG_NAMES
/* Macros to invoke the above functions. Includes the location of
the caller to simplify debugging if something goes wrong */
@ -258,7 +257,7 @@ extern DOH *DohReadline(DOH *in);
#define Replace DohReplace
#define NewScope DohNewScope
#define DelScope DohDelScope
#define Call DohCall
#endif
/* -----------------------------------------------------------------------------