8
8
* Copyright (C) 1999-2000. The University of Chicago
9
9
* See the file LICENSE for information on usage and redistribution.
11
* $Header: /cvsroot/swig/SWIG/Source/DOH/doh.h,v 1.8 2003/10/31 17:36:37 beazley Exp $
11
* $Header: /cvsroot/swig/SWIG/Source/DOH/doh.h,v 1.13 2005/10/07 13:16:21 marcelomatus Exp $
12
12
* ----------------------------------------------------------------------------- */
93
93
#define DohNewFile DOH_NAMESPACE(NewFile)
94
94
#define DohNewFileFromFile DOH_NAMESPACE(NewFileFromFile)
95
95
#define DohNewFileFromFd DOH_NAMESPACE(NewFileFromFd)
96
#define DohFileErrorDisplay DOH_NAMESPACE(FileErrorDisplay)
96
97
#define DohClose DOH_NAMESPACE(Close)
97
98
#define DohCopyto DOH_NAMESPACE(Copyto)
98
99
#define DohNewList DOH_NAMESPACE(NewList)
187
188
extern int DohDelattr(DOH *obj, const DOHString_or_char *name);
188
189
extern DOH *DohKeys(DOH *obj);
189
190
extern int DohGetInt(DOH *obj, const DOHString_or_char *name);
191
extern void DohSetInt(DOH *obj, const DOHString_or_char *name, int);
190
192
extern double DohGetDouble(DOH *obj, const DOHString_or_char *name);
193
extern void DohSetDouble(DOH *obj, const DOHString_or_char *name, double);
191
194
extern char *DohGetChar(DOH *obj, const DOHString_or_char *name);
192
extern void DohSetInt(DOH *obj, const DOHString_or_char *name, int);
193
extern void DohSetDouble(DOH *obj, const DOHString_or_char *name, double);
195
extern void DohSetChar(DOH *obj, const DOH *name, char *value);
196
extern void *DohGetFlagAttr(DOH *obj, const DOHString_or_char *name);
197
extern int DohGetFlag(DOH *obj, const DOHString_or_char *name);
198
extern void DohSetFlagAttr(DOH *obj, const DOHString_or_char *name, const DOHString_or_char *attr);
199
extern void DohSetFlag(DOH *obj, const DOHString_or_char *name);
194
200
extern void *DohGetVoid(DOH *obj, const DOHString_or_char *name);
195
201
extern void DohSetVoid(DOH *obj, const DOHString_or_char *name, void *value);
283
289
extern DOHFile *DohNewFile(DOH *file, const char *mode);
284
290
extern DOHFile *DohNewFileFromFile(FILE *f);
285
291
extern DOHFile *DohNewFileFromFd(int fd);
292
extern void DohFileErrorDisplay(DOHString *filename);
286
293
extern int DohClose(DOH *file);
287
294
extern int DohCopyto(DOHFile *input, DOHFile *output);
292
299
* ----------------------------------------------------------------------------- */
294
301
extern DOHList *DohNewList();
302
extern void DohSortList(DOH *lo, int (*cmp)(const DOH *, const DOH *));
296
304
/* -----------------------------------------------------------------------------
353
361
#define GetDouble DohGetDouble
354
362
#define GetChar DohGetChar
355
363
#define GetVoid DohGetVoid
364
#define GetFlagAttr DohGetFlagAttr
365
#define GetFlag DohGetFlag
356
366
#define SetInt DohSetInt
357
367
#define SetDouble DohSetDouble
358
368
#define SetChar DohSetattr
359
369
#define SetVoid DohSetVoid
370
#define SetFlagAttr DohSetFlagAttr
371
#define SetFlag DohSetFlag
372
#define UnsetFlag(o,n) DohSetFlagAttr(o,n,NULL)
373
#define ClearFlag(o,n) DohSetFlagAttr(o,n,"")
360
374
#define Readline DohReadline
361
375
#define Replace DohReplace
362
376
#define Chop DohChop
371
385
#define NewFile DohNewFile
372
386
#define NewFileFromFile DohNewFileFromFile
373
387
#define NewFileFromFd DohNewFileFromFd
388
#define FileErrorDisplay DohFileErrorDisplay
374
389
#define Close DohClose
375
390
#define NewVoid DohNewVoid
376
391
#define Keys DohKeys