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
2d4e077f
Commit
2d4e077f
authored
Jun 11, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trimmed trailing whitespace.
parent
3023f788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/structmodule.c
Modules/structmodule.c
+3
-3
No files found.
Modules/structmodule.c
View file @
2d4e077f
...
...
@@ -46,7 +46,7 @@ static PyObject *StructError;
#ifdef __MWERKS__
/*
** XXXX We have a problem here. There are no unique alignment rules
** on the PowerPC mac.
** on the PowerPC mac.
*/
#ifdef __powerc
#pragma options align=mac68k
...
...
@@ -1112,7 +1112,7 @@ calcsize(const char *fmt, const formatdef *f)
}
else
num
=
1
;
e
=
getentry
(
c
,
f
);
if
(
e
==
NULL
)
return
-
1
;
...
...
@@ -1172,7 +1172,7 @@ struct_pack(PyObject *self, PyObject *args)
if
(
args
==
NULL
||
!
PyTuple_Check
(
args
)
||
(
n
=
PyTuple_Size
(
args
))
<
1
)
{
PyErr_SetString
(
PyExc_TypeError
,
PyErr_SetString
(
PyExc_TypeError
,
"struct.pack requires at least one argument"
);
return
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