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
2977e5d6
Commit
2977e5d6
authored
Aug 19, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare a bunch of internal routines as returning void.
parent
17202303
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
Modules/rgbimgmodule.c
Modules/rgbimgmodule.c
+13
-13
No files found.
Modules/rgbimgmodule.c
View file @
2977e5d6
...
...
@@ -83,12 +83,12 @@ typedef struct {
#define CHANOFFSET(z) (3-(z))
/* this is byte order dependent */
static
expandrow
PROTO
((
unsigned
char
*
,
unsigned
char
*
,
int
));
static
setalpha
PROTO
((
unsigned
char
*
,
int
));
static
copybw
PROTO
((
long
*
,
int
));
static
interleaverow
PROTO
((
unsigned
char
*
,
unsigned
char
*
,
int
,
int
));
static
void
expandrow
PROTO
((
unsigned
char
*
,
unsigned
char
*
,
int
));
static
void
setalpha
PROTO
((
unsigned
char
*
,
int
));
static
void
copybw
PROTO
((
long
*
,
int
));
static
void
interleaverow
PROTO
((
unsigned
char
*
,
unsigned
char
*
,
int
,
int
));
static
int
compressrow
PROTO
((
unsigned
char
*
,
unsigned
char
*
,
int
,
int
));
static
lumrow
PROTO
((
unsigned
char
*
,
unsigned
char
*
,
int
));
static
void
lumrow
PROTO
((
unsigned
char
*
,
unsigned
char
*
,
int
));
#ifdef ADD_TAGS
#define TAGLEN (5)
...
...
@@ -141,7 +141,7 @@ FILE *inf;
return
(
buf
[
0
]
<<
24
)
+
(
buf
[
1
]
<<
16
)
+
(
buf
[
2
]
<<
8
)
+
(
buf
[
3
]
<<
0
);
}
static
putshort
(
outf
,
val
)
static
void
putshort
(
outf
,
val
)
FILE
*
outf
;
unsigned
short
val
;
{
...
...
@@ -165,7 +165,7 @@ unsigned long val;
return
fwrite
(
buf
,
4
,
1
,
outf
);
}
static
readheader
(
inf
,
image
)
static
void
readheader
(
inf
,
image
)
FILE
*
inf
;
IMAGE
*
image
;
{
...
...
@@ -213,7 +213,7 @@ int len;
return
r
;
}
static
readtab
(
inf
,
tab
,
len
)
static
void
readtab
(
inf
,
tab
,
len
)
FILE
*
inf
;
/*unsigned*/
long
*
tab
;
int
len
;
...
...
@@ -435,7 +435,7 @@ longimagedata(self, args)
/* static utility functions for longimagedata */
static
interleaverow
(
lptr
,
cptr
,
z
,
n
)
static
void
interleaverow
(
lptr
,
cptr
,
z
,
n
)
unsigned
char
*
lptr
,
*
cptr
;
int
z
,
n
;
{
...
...
@@ -446,7 +446,7 @@ int z, n;
}
}
static
copybw
(
lptr
,
n
)
static
void
copybw
(
lptr
,
n
)
long
*
lptr
;
int
n
;
{
...
...
@@ -468,7 +468,7 @@ int n;
}
}
static
setalpha
(
lptr
,
n
)
static
void
setalpha
(
lptr
,
n
)
unsigned
char
*
lptr
;
{
while
(
n
>=
8
)
{
...
...
@@ -489,7 +489,7 @@ unsigned char *lptr;
}
}
static
expandrow
(
optr
,
iptr
,
z
)
static
void
expandrow
(
optr
,
iptr
,
z
)
unsigned
char
*
optr
,
*
iptr
;
int
z
;
{
...
...
@@ -647,7 +647,7 @@ longstoimage(self, args)
/* static utility functions for longstoimage */
static
lumrow
(
rgbptr
,
lumptr
,
n
)
static
void
lumrow
(
rgbptr
,
lumptr
,
n
)
unsigned
char
*
rgbptr
,
*
lumptr
;
int
n
;
{
...
...
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