mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
Massive automated renaming of all Py_/PyObject/etc. prefixes to Ty_/TyObject/etc. This includes: - All public API types (TyObject, TyTypeObject, etc.) - All public API functions (Ty_Initialize, Ty_BuildValue, etc.) - All internal API (_Ty_ prefixes) - Reference counting macros (Ty_INCREF, Ty_DECREF, etc.) - Type flags (Ty_TPFLAGS_*) - Debug flags (Ty_DEBUG, Ty_TRACE_REFS, etc.) - All object type APIs (TyList_, TyDict_, TyUnicode_, etc.) This changes over 60,000 occurrences across 1000+ files. Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
32 lines
827 B
C
32 lines
827 B
C
|
|
/* Interface for marshal.c */
|
|
|
|
#ifndef Ty_MARSHAL_H
|
|
#define Ty_MARSHAL_H
|
|
#ifndef Ty_LIMITED_API
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
PyAPI_FUNC(TyObject *) TyMarshal_ReadObjectFromString(const char *,
|
|
Ty_ssize_t);
|
|
PyAPI_FUNC(TyObject *) TyMarshal_WriteObjectToString(TyObject *, int);
|
|
|
|
#define Ty_MARSHAL_VERSION 5
|
|
|
|
PyAPI_FUNC(long) TyMarshal_ReadLongFromFile(FILE *);
|
|
PyAPI_FUNC(int) TyMarshal_ReadShortFromFile(FILE *);
|
|
PyAPI_FUNC(TyObject *) TyMarshal_ReadObjectFromFile(FILE *);
|
|
PyAPI_FUNC(TyObject *) TyMarshal_ReadLastObjectFromFile(FILE *);
|
|
|
|
PyAPI_FUNC(void) TyMarshal_WriteLongToFile(long, FILE *, int);
|
|
PyAPI_FUNC(void) TyMarshal_WriteObjectToFile(TyObject *, FILE *, int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* Ty_LIMITED_API */
|
|
#endif /* !Ty_MARSHAL_H */
|