Skip to content

Commit f1ec801

Browse files
authored
[DEV] (2.6.0-rc) CAPI - Endian and Arch
Merge pull request #41 from MatrixEditor/dev/2.6.0-rc_capi-endian
2 parents 5868d73 + 549cc4e commit f1ec801

77 files changed

Lines changed: 369 additions & 12479 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ share/python-wheels/
2929
*.egg
3030
MANIFEST
3131
bench/
32+
pypi/
33+
caterpillarapi.h
3234

3335
# PyInstaller
3436
# Usually these files are written by a python script from a template

CMakeLists.txt

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,7 @@ python_add_library(
1717
MODULE
1818

1919
src/ccaterpillar/arch.c
20-
src/ccaterpillar/atomobj.c
21-
src/ccaterpillar/context.c
22-
src/ccaterpillar/option.c
2320
src/ccaterpillar/module.c
24-
src/ccaterpillar/context.c
25-
src/ccaterpillar/state.c
26-
src/ccaterpillar/struct.c
27-
src/ccaterpillar/layer.c
28-
src/ccaterpillar/default.c
29-
30-
src/ccaterpillar/parsing_typeof.c
31-
src/ccaterpillar/parsing_sizeof.c
32-
src/ccaterpillar/parsing_pack.c
33-
src/ccaterpillar/parsing_unpack.c
34-
35-
src/ccaterpillar/atomimpl/int.c
36-
src/ccaterpillar/atomimpl/float.c
37-
src/ccaterpillar/atomimpl/bool.c
38-
src/ccaterpillar/atomimpl/char.c
39-
src/ccaterpillar/atomimpl/pad.c
40-
src/ccaterpillar/atomimpl/string.c
41-
src/ccaterpillar/atomimpl/const.c
42-
src/ccaterpillar/atomimpl/bytes.c
43-
src/ccaterpillar/atomimpl/pstring.c
44-
src/ccaterpillar/atomimpl/enum.c
45-
src/ccaterpillar/atomimpl/varint.c
46-
src/ccaterpillar/atomimpl/computed.c
47-
src/ccaterpillar/atomimpl/lazy.c
48-
src/ccaterpillar/atomimpl/cstring.c
49-
50-
src/ccaterpillar/atomimpl/builtins/builtin.c
51-
src/ccaterpillar/atomimpl/builtins/repeated.c
52-
src/ccaterpillar/atomimpl/builtins/condition.c
53-
src/ccaterpillar/atomimpl/builtins/switch.c
54-
src/ccaterpillar/atomimpl/builtins/atoffset.c
55-
src/ccaterpillar/atomimpl/builtins/primitive.c
5621

5722
WITH_SOABI
5823
)

docs/doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ WARN_LOGFILE =
949949
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
950950
# Note: If this tag is empty the current directory is searched.
951951

952-
INPUT = ../../include
952+
INPUT = ../../src/caterpillar/include
953953

954954
# This tag can be used to specify the character encoding of the source files
955955
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses

src/capi.dat

Lines changed: 11 additions & 201 deletions
Original file line numberDiff line numberDiff line change
@@ -23,211 +23,21 @@
2323
# Defines the source file (relative to this file) that contains the
2424
# function definitions.
2525

26-
src:ccaterpillar/context.c
2726
src:ccaterpillar/arch.c
28-
src:ccaterpillar/atomobj.c
29-
src:ccaterpillar/option.c
30-
src:ccaterpillar/struct.c
31-
src:ccaterpillar/state.c
32-
src:ccaterpillar/layer.c
33-
src:ccaterpillar/parsing_pack.c
34-
src:ccaterpillar/parsing_unpack.c
35-
src:ccaterpillar/parsing_typeof.c
36-
src:ccaterpillar/parsing_sizeof.c
37-
src:ccaterpillar/atomimpl/bool.c
38-
src:ccaterpillar/atomimpl/float.c
39-
src:ccaterpillar/atomimpl/char.c
40-
src:ccaterpillar/atomimpl/int.c
41-
src:ccaterpillar/atomimpl/pad.c
42-
src:ccaterpillar/atomimpl/string.c
43-
src:ccaterpillar/atomimpl/const.c
44-
src:ccaterpillar/atomimpl/bytes.c
45-
src:ccaterpillar/atomimpl/pstring.c
46-
src:ccaterpillar/atomimpl/enum.c
47-
src:ccaterpillar/atomimpl/varint.c
48-
src:ccaterpillar/atomimpl/computed.c
49-
src:ccaterpillar/atomimpl/lazy.c
50-
src:ccaterpillar/atomimpl/cstring.c
51-
src:ccaterpillar/atomimpl/builtins/builtin.c
52-
src:ccaterpillar/atomimpl/builtins/repeated.c
53-
src:ccaterpillar/atomimpl/builtins/condition.c
54-
src:ccaterpillar/atomimpl/builtins/switch.c
55-
src:ccaterpillar/atomimpl/builtins/atoffset.c
56-
src:ccaterpillar/atomimpl/builtins/primitive.c
5727

5828
# First index is reserved for the global module reference
5929
obj:0:CpModule:PyModuleDef
6030

6131
type:-:_modulestate:_modulestate:-
6232

63-
type:1:_atomobj:CpAtomObject:atom
64-
type:2:_catomobj:CpCAtomObject:catom
65-
type:3:_archobj:CpArchObject:Arch
66-
type:4:_endianobj:CpEndianObject:Endian
67-
type:5:_contextobj:CpContextObject:Context
68-
type:6:_unaryexpr:CpUnaryExprObject:unaryexpr
69-
type:7:_binaryexpr:CpBinaryExprObject:binaryexpr
70-
type:8:_contextpath:CpContextPathObject:ContextPath
71-
# type:9:_fieldobj:CpFieldObject:Field
72-
# type:10:_fieldatomobj:CpFieldAtomObject:fieldatom
73-
# type:11:_fieldcatomobj:CpFieldCAtomObject:fieldcatom
74-
75-
obj:12:CpInvalidDefault_Type:-
76-
obj:13:CpDefaultOption_Type:-
77-
obj:14:_CpInvalidDefault_Object:PyObject
78-
obj:15:_CpDefaultOption_Object:PyObject
79-
80-
type:16:_option:CpOptionObject:Option
81-
type:17:_stateobj:CpStateObject:State
82-
type:18:_layerobj:CpLayerObject:layer
83-
84-
# REVISIT: maybe rename to _structfieldinfo
85-
type:19:_fieldinfoobj:CpStructFieldInfoObject:fieldinfo
86-
type:20:_structobj:CpStructObject:Struct
87-
type:21:_floatatomobj:CpFloatAtomObject:Float
88-
type:22:_intatomobj:CpIntAtomObject:Int
89-
type:23:_boolatomobj:CpBoolAtomObject:Bool
90-
type:24:_charatomobj:CpCharAtomObject:Char
91-
type:25:_paddingatomobj:CpPaddingAtomObject:Padding
92-
type:26:_stringatomobj:CpStringAtomObject:string
93-
type:27:_constatomobj:CpConstAtomObject:const
94-
type:28:_builtinatomobj:CpBuiltinAtomObject:builtinatom
95-
type:29:_repeatedatomobj:CpRepeatedAtomObject:repeated
96-
type:30:_seqlayerobj:CpSeqLayerObject:seqlayer
97-
type:31:_objlayerobj:CpObjLayerObject:objlayer
98-
type:32:_conditionatomobj:CpConditionAtomObject:condition
99-
type:33:_switchatomobj:CpSwitchAtomObject:switch
100-
type:34:_offsetatomobj:CpOffsetAtomObject:atoffset
101-
type:35:_primitiveatomobj:CpPrimitiveAtomObject:patom
102-
type:36:_lengthinfoobj:CpLengthInfoObject:lengthinfo
103-
type:37:_bytesatomobj:CpBytesAtomObject:octetstring
104-
type:38:_pstringatomobj:CpPStringAtomObject:pstring
105-
type:39:_enumatomobj:CpEnumAtomObject:enumeration
106-
type:40:_varintatomobj:CpVarIntAtomObject:VarInt
107-
type:41:_computedatomobj:CpComputedAtomObject:computed
108-
type:42:_lazyatomobj:CpLazyAtomObject:lazy
109-
type:43:_cstringatomobj:CpCStringAtomObject:cstring
110-
111-
func:50:CpEndian_IsLittleEndian:int:null
112-
func:53:CpContext_New:CpContextObject*:+1
113-
func:54:CpUnaryExpr_New:CpUnaryExprObject*:+1
114-
func:55:CpBinaryExpr_New:CpBinaryExprObject*:+1
115-
func:56:CpContextPath_New:CpContextPathObject*:+1
116-
func:57:CpContextPath_FromString:CpContextPathObject*:+1
117-
func:58:CpTypeMap_Lookup:PyObject*:+1
118-
func:59:CpTypeMap_Register:int:null
119-
# func:58:CpField_New:CpFieldObject*:null
120-
# func:59:CpField_HasCondition:int:null
121-
# func:60:CpField_IsEnabled:int:null
122-
# func:61:CpField_GetOffset:Py_ssize_t:null
123-
# func:62:CpField_EvalSwitch:PyObject*:+1
124-
# func:63:CpField_GetLength:PyObject*:+1
125-
func:64:CpTypeOf:PyObject*:+1
126-
# func:65:CpTypeOf_Field:PyObject*:+1
127-
func:66:CpTypeOf_Common:PyObject*:+1
128-
func:67:CpPack:int:null
129-
# func:68:CpPack_Field:int:null
130-
# func:69:CpPack_Common:int:null
131-
# func:70:CpPack_Struct:int:null
132-
func:72:_CpPack_EvalLength:int:null
133-
func:73:CpSizeOf:PyObject*:+1
134-
# func:74:CpSizeOf_Field:PyObject*:+1
135-
func:75:CpSizeOf_Struct:PyObject*:+1
136-
func:76:CpSizeOf_Common:PyObject*:+1
137-
func:77:_Cp_SizeOf:PyObject*:+1
138-
func:78:CpUnpack:PyObject*:+1
139-
# func:79:CpUnpack_Field:PyObject*:+1
140-
# func:80:CpUnpack_Common:PyObject*:+1
141-
# func:81:CpUnpack_Struct:PyObject*:+1
142-
func:83:_CpUnpack_EvalLength:int:null
143-
func:84:CpUnpack_CAtom:PyObject*:+1
144-
func:85:CpPack_CAtom:int:null
145-
func:86:CpSizeOf_CAtom:PyObject*:+1
146-
func:87:CpTypeOf_CAtom:PyObject*:+1
147-
func:88:CpState_New:CpStateObject*:null
148-
func:89:CpState_Tell:PyObject*:+1
149-
func:90:CpState_Seek:PyObject*:+1
150-
func:91:CpState_Read:PyObject*:+1
151-
func:92:CpState_ReadSsize_t:PyObject*:+1
152-
func:93:CpState_ReadFully:PyObject*:+1
153-
func:94:CpState_Write:PyObject*:+1
154-
func:95:CpState_SetGlobals:int:null
155-
func:96:CpLayer_New:CpLayerObject*:+1
156-
func:98:CpLayer_Invalidate:int:null
157-
func:99:CpStructFieldInfo_New:CpStructFieldInfoObject*:+1
158-
func:100:CpStruct_AddFieldInfo:int:null
159-
# func:101:CpStruct_AddField:int:null
160-
func:102:CpStruct_New:CpStructObject*:+1
161-
func:103:CpStruct_GetAnnotations:PyObject*:+1
162-
func:104:CpStruct_ReplaceType:int:null
163-
func:105:CpStruct_HasOption:int:null
164-
func:106:CpStruct_Pack:int:null
165-
func:107:CpStruct_Unpack:PyObject*:+1
166-
func:108:CpStruct_SizeOf:PyObject*:+1
167-
func:109:CpStructModel_Check:int:null
168-
func:110:CpStructModel_GetStruct:PyObject*:+1
169-
func:111:CpSeqLayer_New:CpSeqLayerObject*:+1
170-
func:112:CpSeqLayer_SetSequence:int:null
171-
func:113:CpObjLayer_New:CpObjLayerObject*:+1
172-
173-
# atom api
174-
func:120:CpIntAtom_Pack:int:null
175-
func:121:CpIntAtom_Unpack:PyObject*:+1
176-
func:122:CpFloatAtom_Pack:int:null
177-
func:123:CpFloatAtom_Unpack:PyObject*:+1
178-
func:124:CpBoolAtom_Pack:int:null
179-
func:125:CpBoolAtom_Unpack:PyObject*:+1
180-
func:126:CpCharAtom_Pack:int:null
181-
func:127:CpCharAtom_Unpack:PyObject*:+1
182-
func:128:CpPaddingAtom_Pack:int:null
183-
func:129:CpPaddingAtom_PackMany:int:null
184-
func:130:CpPaddingAtom_Unpack:PyObject*:+1
185-
func:131:CpPaddingAtom_UnpackMany:PyObject*:+1
186-
func:132:CpStringAtom_Pack:int:null
187-
func:133:CpStringAtom_Unpack:PyObject*:+1
188-
func:134:CpConstAtom_Pack:int:null
189-
func:135:CpConstAtom_Unpack:PyObject*:+1
190-
func:-:CpRepeatedAtom_New:CpRepeatedAtomObject*:+1
191-
func:136:CpRepeatedAtom_Pack:int:null
192-
func:137:CpRepeatedAtom_Unpack:PyObject*:+1
193-
func:138:CpRepeatedAtom_GetLength:PyObject*:+1
194-
func:-:CpConditionAtom_New:CpConditionAtomObject*:+1
195-
func:139:CpConditionAtom_Pack:int:null
196-
func:140:CpConditionAtom_Unpack:PyObject*:+1
197-
func:141:CpConditionAtom_IsEnabled:int:null
198-
func:-:CpSwitchAtom_New:CpSwitchAtomObject*:+1
199-
func:142:CpSwitchAtom_GetNext:PyObject*:+1
200-
func:143:CpSwitchAtom_Pack:int:null
201-
func:144:CpSwitchAtom_Unpack:PyObject*:+1
202-
func:-:CpOffsetAtom_FromSsize_t:CpOffsetAtomObject*:+1
203-
func:-:CpOffsetAtom_New:CpOffsetAtomObject*:+1
204-
func:145:CpOffsetAtom_Pack:int:null
205-
func:146:CpOffsetAtom_Unpack:PyObject*:+1
206-
func:147:CpOffsetAtom_GetOffset:PyObject*:+1
207-
func:-:CpBytesAtom_New:CpBytesAtomObject*:+1
208-
func:148:CpBytesAtom_GetLength:PyObject*:+1
209-
func:149:CpBytesAtom_Pack:int:null
210-
func:150:CpBytesAtom_Unpack:PyObject*:+1
211-
func:-:CpPStringAtom_New:CpPStringAtomObject*:+1
212-
func:152:CpPStringAtom_Pack:int:null
213-
func:153:CpPStringAtom_Unpack:PyObject*:+1
214-
func:-:CpEnumAtom_New:CpEnumAtomObject*:+1
215-
func:154:CpEnumAtom_Pack:int:null
216-
func:155:CpEnumAtom_Unpack:PyObject*:+1
217-
func:-:CpVarIntAtom_New:CpVarIntAtomObject*:+1
218-
func:156:CpVarIntAtom_Pack:int:null
219-
func:157:CpVarIntAtom_Unpack:PyObject*:+1
220-
func:158:CpVarIntAtom_BSwap:PyObject*:+1
221-
func:159:CpVarIntAtom_BSwapUnsignedLongLong:ulonglong:null
222-
func:160:CpVarIntAtom_BSwapLongLong:longlong:null
223-
func:161:CpVarIntAtom_BSwapSsize_t:Py_ssize_t:null
224-
func:-:CpComputedAtom_New:CpComputedAtomObject*:+1
225-
func:162:CpComputedAtom_Pack:int:null
226-
func:163:CpComputedAtom_Unpack:PyObject*:+1
227-
func:-:CpComputedAtom_Value:PyObject*:+1
228-
func:-:CpLazyAtom_New:CpLazyAtomObject*:+1
229-
func:164:CpLazyAtom_Pack:int:null
230-
func:165:CpLazyAtom_Unpack:PyObject*:+1
231-
func:-:CpLazyAtom_Atom:PyObject*:+1
232-
func:166:CpCStringAtom_Pack:int:null
233-
func:167:CpCStringAtom_Unpack:PyObject*:+1
33+
# CpArch API
34+
type:1:_archobj:CpArchObject:c_Arch
35+
func:-:CpArch_New:PyObject*:+1
36+
func:-:CpArch_GetName:PyObject*:+1
37+
func:-:CpArch_GetPtrSize:int:null
38+
39+
# CpEndian API
40+
type:2:_endianobj:CpEndianObject:c_Endian
41+
func:-:CpEndian_GetName:PyObject*:+1
42+
func:-:CpEndian_GetId:char:null
43+
func:3:CpEndian_IsLittleEndian:int:null

0 commit comments

Comments
 (0)