|
| 1 | +/* MIT License |
| 2 | + * |
| 3 | + * Copyright (c) 2020, Oracle and/or its affiliates. |
| 4 | + * Copyright (c) 2019 pyhandle |
| 5 | + * |
| 6 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | + * of this software and associated documentation files (the "Software"), to deal |
| 8 | + * in the Software without restriction, including without limitation the rights |
| 9 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | + * copies of the Software, and to permit persons to whom the Software is |
| 11 | + * furnished to do so, subject to the following conditions: |
| 12 | + * |
| 13 | + * The above copyright notice and this permission notice shall be included in all |
| 14 | + * copies or substantial portions of the Software. |
| 15 | + * |
| 16 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | + * SOFTWARE. |
| 23 | + */ |
| 24 | + |
| 25 | +/* |
| 26 | + DO NOT EDIT THIS FILE! |
| 27 | +
|
| 28 | + This file is automatically generated by tools/autogen.py from tools/public_api.h. |
| 29 | + Run this to regenerate: |
| 30 | + make autogen |
| 31 | +
|
| 32 | +*/ |
| 33 | + |
| 34 | +#define _HPyFunc_DECLARE_HPyFunc_NOARGS(SYM) static HPy SYM(HPyContext ctx, HPy self) |
| 35 | +#define _HPyFunc_DECLARE_HPyFunc_O(SYM) static HPy SYM(HPyContext ctx, HPy self, HPy arg) |
| 36 | +#define _HPyFunc_DECLARE_HPyFunc_VARARGS(SYM) static HPy SYM(HPyContext ctx, HPy self, HPy *args, HPy_ssize_t nargs) |
| 37 | +#define _HPyFunc_DECLARE_HPyFunc_KEYWORDS(SYM) static HPy SYM(HPyContext ctx, HPy self, HPy *args, HPy_ssize_t nargs, HPy kw) |
| 38 | +#define _HPyFunc_DECLARE_HPyFunc_UNARYFUNC(SYM) static HPy SYM(HPyContext ctx, HPy) |
| 39 | +#define _HPyFunc_DECLARE_HPyFunc_BINARYFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, HPy) |
| 40 | +#define _HPyFunc_DECLARE_HPyFunc_TERNARYFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, HPy, HPy) |
| 41 | +#define _HPyFunc_DECLARE_HPyFunc_INQUIRY(SYM) static int SYM(HPyContext ctx, HPy) |
| 42 | +#define _HPyFunc_DECLARE_HPyFunc_LENFUNC(SYM) static HPy_ssize_t SYM(HPyContext ctx, HPy) |
| 43 | +#define _HPyFunc_DECLARE_HPyFunc_SSIZEARGFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, HPy_ssize_t) |
| 44 | +#define _HPyFunc_DECLARE_HPyFunc_SSIZESSIZEARGFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, HPy_ssize_t, HPy_ssize_t) |
| 45 | +#define _HPyFunc_DECLARE_HPyFunc_SSIZEOBJARGPROC(SYM) static int SYM(HPyContext ctx, HPy, HPy_ssize_t, HPy) |
| 46 | +#define _HPyFunc_DECLARE_HPyFunc_SSIZESSIZEOBJARGPROC(SYM) static int SYM(HPyContext ctx, HPy, HPy_ssize_t, HPy_ssize_t, HPy) |
| 47 | +#define _HPyFunc_DECLARE_HPyFunc_OBJOBJARGPROC(SYM) static int SYM(HPyContext ctx, HPy, HPy, HPy) |
| 48 | +#define _HPyFunc_DECLARE_HPyFunc_FREEFUNC(SYM) static void SYM(HPyContext ctx, void *) |
| 49 | +#define _HPyFunc_DECLARE_HPyFunc_GETATTRFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, char *) |
| 50 | +#define _HPyFunc_DECLARE_HPyFunc_GETATTROFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, HPy) |
| 51 | +#define _HPyFunc_DECLARE_HPyFunc_SETATTRFUNC(SYM) static int SYM(HPyContext ctx, HPy, char *, HPy) |
| 52 | +#define _HPyFunc_DECLARE_HPyFunc_SETATTROFUNC(SYM) static int SYM(HPyContext ctx, HPy, HPy, HPy) |
| 53 | +#define _HPyFunc_DECLARE_HPyFunc_REPRFUNC(SYM) static HPy SYM(HPyContext ctx, HPy) |
| 54 | +#define _HPyFunc_DECLARE_HPyFunc_HASHFUNC(SYM) static HPy_hash_t SYM(HPyContext ctx, HPy) |
| 55 | +#define _HPyFunc_DECLARE_HPyFunc_RICHCMPFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, HPy, int) |
| 56 | +#define _HPyFunc_DECLARE_HPyFunc_GETITERFUNC(SYM) static HPy SYM(HPyContext ctx, HPy) |
| 57 | +#define _HPyFunc_DECLARE_HPyFunc_ITERNEXTFUNC(SYM) static HPy SYM(HPyContext ctx, HPy) |
| 58 | +#define _HPyFunc_DECLARE_HPyFunc_DESCRGETFUNC(SYM) static HPy SYM(HPyContext ctx, HPy, HPy, HPy) |
| 59 | +#define _HPyFunc_DECLARE_HPyFunc_DESCRSETFUNC(SYM) static int SYM(HPyContext ctx, HPy, HPy, HPy) |
| 60 | +#define _HPyFunc_DECLARE_HPyFunc_INITPROC(SYM) static int SYM(HPyContext ctx, HPy self, HPy *args, HPy_ssize_t nargs, HPy kw) |
| 61 | +#define _HPyFunc_DECLARE_HPyFunc_GETTER(SYM) static HPy SYM(HPyContext ctx, HPy, void *) |
| 62 | +#define _HPyFunc_DECLARE_HPyFunc_SETTER(SYM) static int SYM(HPyContext ctx, HPy, HPy, void *) |
| 63 | +#define _HPyFunc_DECLARE_HPyFunc_DESTROYFUNC(SYM) static void SYM(void *) |
| 64 | + |
| 65 | +typedef HPy (*HPyFunc_noargs)(HPyContext ctx, HPy self); |
| 66 | +typedef HPy (*HPyFunc_o)(HPyContext ctx, HPy self, HPy arg); |
| 67 | +typedef HPy (*HPyFunc_varargs)(HPyContext ctx, HPy self, HPy *args, HPy_ssize_t nargs); |
| 68 | +typedef HPy (*HPyFunc_keywords)(HPyContext ctx, HPy self, HPy *args, HPy_ssize_t nargs, HPy kw); |
| 69 | +typedef HPy (*HPyFunc_unaryfunc)(HPyContext ctx, HPy); |
| 70 | +typedef HPy (*HPyFunc_binaryfunc)(HPyContext ctx, HPy, HPy); |
| 71 | +typedef HPy (*HPyFunc_ternaryfunc)(HPyContext ctx, HPy, HPy, HPy); |
| 72 | +typedef int (*HPyFunc_inquiry)(HPyContext ctx, HPy); |
| 73 | +typedef HPy_ssize_t (*HPyFunc_lenfunc)(HPyContext ctx, HPy); |
| 74 | +typedef HPy (*HPyFunc_ssizeargfunc)(HPyContext ctx, HPy, HPy_ssize_t); |
| 75 | +typedef HPy (*HPyFunc_ssizessizeargfunc)(HPyContext ctx, HPy, HPy_ssize_t, HPy_ssize_t); |
| 76 | +typedef int (*HPyFunc_ssizeobjargproc)(HPyContext ctx, HPy, HPy_ssize_t, HPy); |
| 77 | +typedef int (*HPyFunc_ssizessizeobjargproc)(HPyContext ctx, HPy, HPy_ssize_t, HPy_ssize_t, HPy); |
| 78 | +typedef int (*HPyFunc_objobjargproc)(HPyContext ctx, HPy, HPy, HPy); |
| 79 | +typedef void (*HPyFunc_freefunc)(HPyContext ctx, void *); |
| 80 | +typedef HPy (*HPyFunc_getattrfunc)(HPyContext ctx, HPy, char *); |
| 81 | +typedef HPy (*HPyFunc_getattrofunc)(HPyContext ctx, HPy, HPy); |
| 82 | +typedef int (*HPyFunc_setattrfunc)(HPyContext ctx, HPy, char *, HPy); |
| 83 | +typedef int (*HPyFunc_setattrofunc)(HPyContext ctx, HPy, HPy, HPy); |
| 84 | +typedef HPy (*HPyFunc_reprfunc)(HPyContext ctx, HPy); |
| 85 | +typedef HPy_hash_t (*HPyFunc_hashfunc)(HPyContext ctx, HPy); |
| 86 | +typedef HPy (*HPyFunc_richcmpfunc)(HPyContext ctx, HPy, HPy, int); |
| 87 | +typedef HPy (*HPyFunc_getiterfunc)(HPyContext ctx, HPy); |
| 88 | +typedef HPy (*HPyFunc_iternextfunc)(HPyContext ctx, HPy); |
| 89 | +typedef HPy (*HPyFunc_descrgetfunc)(HPyContext ctx, HPy, HPy, HPy); |
| 90 | +typedef int (*HPyFunc_descrsetfunc)(HPyContext ctx, HPy, HPy, HPy); |
| 91 | +typedef int (*HPyFunc_initproc)(HPyContext ctx, HPy self, HPy *args, HPy_ssize_t nargs, HPy kw); |
| 92 | +typedef HPy (*HPyFunc_getter)(HPyContext ctx, HPy, void *); |
| 93 | +typedef int (*HPyFunc_setter)(HPyContext ctx, HPy, HPy, void *); |
| 94 | +typedef void (*HPyFunc_destroyfunc)(void *); |
0 commit comments