1 #ifndef Py_CGENSUPPORT_H
2 #define Py_CGENSUPPORT_H
7 /***********************************************************
8 Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
9 Amsterdam, The Netherlands.
13 Permission to use, copy, modify, and distribute this software and its
14 documentation for any purpose and without fee is hereby granted,
15 provided that the above copyright notice appear in all copies and that
16 both that copyright notice and this permission notice appear in
17 supporting documentation, and that the names of Stichting Mathematisch
18 Centrum or CWI not be used in advertising or publicity pertaining to
19 distribution of the software without specific, written prior permission.
21 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
22 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
23 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
24 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
25 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
26 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
27 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
29 ******************************************************************/
31 /* Definitions used by cgen output */
35 #define mknewlongobject(x) newintobject(x)
36 #define mknewshortobject(x) newintobject((long)x)
37 #define mknewfloatobject(x) newfloatobject(x)
38 #define mknewcharobject(ch) mkvalue("c", ch)
40 extern int getiobjectarg
PROTO((object
*args
, int nargs
, int i
, object
**p_a
));
41 extern int getilongarg
PROTO((object
*args
, int nargs
, int i
, long *p_a
));
42 extern int getishortarg
PROTO((object
*args
, int nargs
, int i
, short *p_a
));
43 extern int getifloatarg
PROTO((object
*args
, int nargs
, int i
, float *p_a
));
44 extern int getistringarg
PROTO((object
*args
, int nargs
, int i
, string
*p_a
));
49 #endif /* !Py_CGENSUPPORT_H */