Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
040b89f2
Commit
040b89f2
authored
Jun 15, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add required files for HeaPy support
parent
58da9e82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
gcoder_heapy_support.patch
printrun/gcoder_heapy_support.patch
+15
-0
gcoder_line_extra.h
printrun/gcoder_line_extra.h
+30
-0
No files found.
printrun/gcoder_heapy_support.patch
0 → 100644
View file @
040b89f2
--- printrun/gcoder_line.c 2013-06-15 16:08:53.260081109 +0200
+++ printrun/gcoder_line.c 2013-06-15 16:08:57.083439793 +0200
@@ -3945,2 +3945,4 @@ static int __Pyx_InitGlobals(void) {
+#include "gcoder_line_extra.h"
+
#if PY_MAJOR_VERSION < 3
@@ -4032,2 +4034,7 @@ PyMODINIT_FUNC PyInit_gcoder_line(void)
/*--- Execution code ---*/
+ nysets_heapdefs[0].type = &__pyx_type_8printrun_11gcoder_line_GLine;
+ if (PyDict_SetItemString(__pyx_d,
+ "_NyHeapDefs_",
+ PyCObject_FromVoidPtrAndDesc(&nysets_heapdefs, "NyHeapDef[] v1.0", 0)) < 0)
+{__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
printrun/gcoder_line_extra.h
0 → 100644
View file @
040b89f2
typedef
int
(
*
NyHeapDef_SizeGetter
)
(
PyObject
*
obj
);
typedef
struct
{
int
flags
;
/* As yet, only 0 */
PyTypeObject
*
type
;
/* The type it regards */
NyHeapDef_SizeGetter
size
;
void
*
traverse
;
void
*
relate
;
void
*
resv3
,
*
resv4
,
*
resv5
;
/* Reserved for future bin. comp. */
}
NyHeapDef
;
int
gline_size
(
struct
__pyx_obj_8printrun_11gcoder_line_GLine
*
gline
)
{
int
size
=
__pyx_type_8printrun_11gcoder_line_GLine
.
tp_basicsize
;
if
(
gline
->
_raw
!=
NULL
)
size
+=
strlen
(
gline
->
_raw
)
+
1
;
if
(
gline
->
_command
!=
NULL
)
size
+=
strlen
(
gline
->
_command
)
+
1
;
return
size
;
}
static
NyHeapDef
nysets_heapdefs
[]
=
{
{
0
,
0
,
(
NyHeapDef_SizeGetter
)
gline_size
},
};
/*
nysets_heapdefs[0].type = &__pyx_type_8printrun_11gcoder_line_GLine;
if (PyDict_SetItemString(__pyx_d,
"_NyHeapDefs_",
PyCObject_FromVoidPtrAndDesc(&nysets_heapdefs, "NyHeapDef[] v1.0", 0)) < 0)
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment