~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/python/generic/py_capi_utils.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 *  \ingroup pygen
25
25
 */
26
26
 
27
 
 
 
27
 
28
28
#ifndef __PY_CAPI_UTILS_H__
29
29
#define __PY_CAPI_UTILS_H__
30
30
 
31
31
void                    PyC_ObSpit(const char *name, PyObject *var);
32
32
void                    PyC_LineSpit(void);
 
33
void                    PyC_StackSpit(void);
33
34
PyObject *              PyC_ExceptionBuffer(void);
34
35
PyObject *              PyC_Object_GetAttrStringArgs(PyObject *o, Py_ssize_t n, ...);
 
36
PyObject *              PyC_FrozenSetFromStrings(const char **strings);
35
37
PyObject *              PyC_Err_Format_Prefix(PyObject *exception_type_prefix, const char *format, ...);
36
38
void                    PyC_FileAndNum(const char **filename, int *lineno);
37
39
void                    PyC_FileAndNum_Safe(const char **filename, int *lineno); /* checks python is running */
38
40
int                             PyC_AsArray(void *array, PyObject *value, const Py_ssize_t length,
39
 
                            const PyTypeObject *type, const short is_double, const char *error_prefix);
 
41
                            const PyTypeObject *type, const bool is_double, const char *error_prefix);
 
42
PyObject *      PyC_FromArray(const void *array, int length, const PyTypeObject *type,
 
43
                              const bool is_double, const char *error_prefix);
40
44
 
41
45
/* follow http://www.python.org/dev/peps/pep-0383/ */
42
46
PyObject *      PyC_UnicodeFromByte(const char *str);
52
56
 
53
57
void PyC_SetHomePath(const char *py_path_bundle);
54
58
 
55
 
#define PYC_INTERPRETER_ACTIVE (((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current)) != NULL)
 
59
#define PYC_INTERPRETER_ACTIVE (((PyThreadState *)_Py_atomic_load_relaxed(&_PyThreadState_Current)) != NULL)
56
60
 
57
61
void *PyC_RNA_AsPointer(PyObject *value, const char *type_name);
58
62
 
68
72
int       PyC_FlagSet_ToBitfield(PyC_FlagSet *items, PyObject *value, int *r_value, const char *error_prefix);
69
73
PyObject *PyC_FlagSet_FromBitfield(PyC_FlagSet *items, int flag);
70
74
 
71
 
#endif // __PY_CAPI_UTILS_H__
 
75
#endif  /* __PY_CAPI_UTILS_H__ */