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
82d4cc27
Commit
82d4cc27
authored
Apr 28, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some warnings on Mac OS X 10.4
parent
dd28d1c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
21 deletions
+9
-21
Mac/Modules/file/_Filemodule.c
Mac/Modules/file/_Filemodule.c
+5
-4
Mac/Modules/mlte/_Mltemodule.c
Mac/Modules/mlte/_Mltemodule.c
+0
-17
Modules/_sqlite/cursor.c
Modules/_sqlite/cursor.c
+4
-0
No files found.
Mac/Modules/file/_Filemodule.c
View file @
82d4cc27
...
...
@@ -105,13 +105,14 @@ _PyMac_GetFullPathname(FSSpec *fss, char *path, int len)
FSSpec
fss2
;
int
tocopy
;
err
=
FSMakeFSSpec
(
fss
->
vRefNum
,
fss
->
parID
,
""
,
&
fss2
);
err
=
FSMakeFSSpec
(
fss
->
vRefNum
,
fss
->
parID
,
(
unsigned
char
*
)
""
,
&
fss2
);
if
(
err
)
return
err
;
err
=
FSpMakeFSRef
(
&
fss2
,
&
fsr
);
if
(
err
)
return
err
;
err
=
(
OSErr
)
FSRefMakePath
(
&
fsr
,
path
,
len
-
1
);
err
=
(
OSErr
)
FSRefMakePath
(
&
fsr
,
(
unsigned
char
*
)
path
,
len
-
1
);
if
(
err
)
return
err
;
/* This part is not 100% safe: we append the filename part, but
...
...
@@ -123,12 +124,12 @@ _PyMac_GetFullPathname(FSSpec *fss, char *path, int len)
if
((
strlen
(
path
)
+
tocopy
)
>=
len
)
tocopy
=
len
-
strlen
(
path
)
-
1
;
if
(
tocopy
>
0
)
strncat
(
path
,
fss
->
name
+
1
,
tocopy
);
strncat
(
path
,
(
char
*
)
fss
->
name
+
1
,
tocopy
);
}
else
{
if
(
err
)
return
err
;
err
=
(
OSErr
)
FSRefMakePath
(
&
fsr
,
path
,
len
);
err
=
(
OSErr
)
FSRefMakePath
(
&
fsr
,
(
unsigned
char
*
)
path
,
len
);
if
(
err
)
return
err
;
}
...
...
Mac/Modules/mlte/_Mltemodule.c
View file @
82d4cc27
...
...
@@ -48,23 +48,6 @@ OptFSSpecPtr_Convert(PyObject *v, FSSpec **p_itself)
return
PyMac_GetFSSpec
(
v
,
*
p_itself
);
}
/*
** Parse an optional rect
*/
static
int
OptRectPtr_Convert
(
PyObject
*
v
,
Rect
**
p_itself
)
{
static
Rect
r
;
if
(
v
==
Py_None
)
{
*
p_itself
=
NULL
;
return
1
;
}
*
p_itself
=
&
r
;
return
PyMac_GetRect
(
v
,
*
p_itself
);
}
/*
** Parse an optional GWorld
*/
...
...
Modules/_sqlite/cursor.c
View file @
82d4cc27
...
...
@@ -27,8 +27,12 @@
#include "sqlitecompat.h"
/* used to decide wether to call PyInt_FromLong or PyLong_FromLongLong */
#ifndef INT32_MIN
#define INT32_MIN (-2147483647 - 1)
#endif
#ifndef INT32_MAX
#define INT32_MAX 2147483647
#endif
PyObject
*
cursor_iternext
(
Cursor
*
self
);
...
...
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