Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
d6407a02
Commit
d6407a02
authored
May 18, 2015
by
Vincent Castellano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More WIP work
parent
0a746219
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Makefile.in
Makefile.in
+1
-1
python-tg.c
python-tg.c
+7
-0
No files found.
Makefile.in
View file @
d6407a02
...
...
@@ -4,7 +4,7 @@ CFLAGS=@CFLAGS@
LDFLAGS
=
@LDFLAGS@ @OPENSSL_LDFLAGS@
CPPFLAGS
=
@CPPFLAGS@ @OPENSSL_INCLUDES@
DEFS
=
@DEFS@
COMPILE_FLAGS
=
${
CFLAGS
}
${
CPFLAGS
}
${
CPPFLAGS
}
${
DEFS
}
-Wall
-Werror
-Wextra
-Wno-deprecated-declarations
-fno-strict-aliasing
-fno-omit-frame-pointer
-ggdb
-Wno-unused-parameter
-fPIC
COMPILE_FLAGS
=
${
CFLAGS
}
${
CPFLAGS
}
${
CPPFLAGS
}
${
DEFS
}
-Wall
-Werror
-Wextra
-Wno-
missing-field-initializers
-Wno-
deprecated-declarations
-fno-strict-aliasing
-fno-omit-frame-pointer
-ggdb
-Wno-unused-parameter
-fPIC
EXTRA_LIBS
=
@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@
LOCAL_LDFLAGS
=
-rdynamic
-ggdb
-levent
${
EXTRA_LIBS
}
LINK_FLAGS
=
${
LDFLAGS
}
${
LOCAL_LDFLAGS
}
...
...
python-tg.c
View file @
d6407a02
...
...
@@ -24,6 +24,7 @@
#ifdef USE_PYTHON
#include "python-tg.h"
#include "python-types.h"
#endif
#include <string.h>
...
...
@@ -1286,6 +1287,12 @@ MOD_INIT(tgl)
if
(
m
==
NULL
)
return
MOD_ERROR_VAL
;
if
(
PyType_Ready
(
&
tgl_PeerType
)
<
0
)
return
MOD_ERROR_VAL
;
Py_INCREF
(
&
tgl_PeerType
);
PyModule_AddObject
(
m
,
"Peer"
,
(
PyObject
*
)
&
tgl_PeerType
);
return
MOD_SUCCESS_VAL
(
m
);
}
...
...
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