Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2e07810e
Commit
2e07810e
authored
Jan 17, 2007
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace C++ comments with C comments.
parent
7d106efe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
Modules/_ctypes/_ctypes_test.c
Modules/_ctypes/_ctypes_test.c
+12
-8
No files found.
Modules/_ctypes/_ctypes_test.c
View file @
2e07810e
...
...
@@ -68,22 +68,25 @@ EXPORT(void) _testfunc_v(int a, int b, int *presult)
EXPORT
(
int
)
_testfunc_i_bhilfd
(
signed
char
b
,
short
h
,
int
i
,
long
l
,
float
f
,
double
d
)
{
// printf("_testfunc_i_bhilfd got %d %d %d %ld %f %f\n",
// b, h, i, l, f, d);
/* printf("_testfunc_i_bhilfd got %d %d %d %ld %f %f\n",
b, h, i, l, f, d);
*/
return
(
int
)(
b
+
h
+
i
+
l
+
f
+
d
);
}
EXPORT
(
float
)
_testfunc_f_bhilfd
(
signed
char
b
,
short
h
,
int
i
,
long
l
,
float
f
,
double
d
)
{
// printf("_testfunc_f_bhilfd got %d %d %d %ld %f %f\n",
// b, h, i, l, f, d);
/* printf("_testfunc_f_bhilfd got %d %d %d %ld %f %f\n",
b, h, i, l, f, d);
*/
return
(
float
)(
b
+
h
+
i
+
l
+
f
+
d
);
}
EXPORT
(
double
)
_testfunc_d_bhilfd
(
signed
char
b
,
short
h
,
int
i
,
long
l
,
float
f
,
double
d
)
{
// printf("_testfunc_d_bhilfd got %d %d %d %ld %f %f\n",
// b, h, i, l, f, d);
/* printf("_testfunc_d_bhilfd got %d %d %d %ld %f %f\n",
b, h, i, l, f, d);
*/
return
(
double
)(
b
+
h
+
i
+
l
+
f
+
d
);
}
...
...
@@ -378,8 +381,9 @@ DL_EXPORT(int) unpack_bitfields(struct BITS *bits, char name)
}
PyMethodDef
module_methods
[]
=
{
// {"get_last_tf_arg_s", get_last_tf_arg_s, METH_NOARGS},
// {"get_last_tf_arg_u", get_last_tf_arg_u, METH_NOARGS},
/* {"get_last_tf_arg_s", get_last_tf_arg_s, METH_NOARGS},
{"get_last_tf_arg_u", get_last_tf_arg_u, METH_NOARGS},
*/
{
"func_si"
,
py_func_si
,
METH_VARARGS
},
{
"func"
,
py_func
,
METH_NOARGS
},
{
NULL
,
NULL
,
0
,
NULL
},
...
...
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