forked from OpenZWave/python-openzwave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmylibc.pxd
More file actions
executable file
·55 lines (46 loc) · 1.59 KB
/
Copy pathmylibc.pxd
File metadata and controls
executable file
·55 lines (46 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- coding: utf-8 -*-
"""
This file is part of **python-openzwave** project https://github.com/OpenZWave/python-openzwave.
License : GPL(v3)
**python-openzwave** is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
**python-openzwave** is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with python-openzwave. If not, see http://www.gnu.org/licenses.
"""
#stdlib uint32_t
#ctypedef unsigned int uint32_t
#stdlib uint64_t
#ctypedef unsigned long uint64_t
#stdlib int32_t
#ctypedef signed int int32_t
#stdlib int16_t
#ctypedef signed short int16_t
#stdlib uint8_t
#ctypedef unsigned char uint8_t
#stdlib int8_t
#ctypedef signed char int8_t
cdef extern from "Python.h":
void PyEval_InitThreads()
void Py_Initialize()
cdef extern from *:
ctypedef char* const_char_ptr "const char*"
cdef extern from "<string>" namespace "std":
cdef cppclass string:
string()
string(char *)
string (size_t n, char c)
char * c_str()
#cdef extern from "stdlib.h":
# void* malloc(size_t size)
# void free(void* ptr)
#cdef extern from "<new>" namespace "std":
# void* new(size_t size)
# void delete(void* ptr)
# void* new[](size_t size)
# void delete[](void* ptr)