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
c69bac53
Commit
c69bac53
authored
Jul 07, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix benign problems found by a picky SGI compiler (unreachable break
after a return).
parent
eaa1ed6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
Modules/pcremodule.c
Modules/pcremodule.c
+0
-9
Modules/zlibmodule.c
Modules/zlibmodule.c
+0
-11
No files found.
Modules/pcremodule.c
View file @
c69bac53
...
...
@@ -257,35 +257,27 @@ PyPcre_expand_escape(pattern, pattern_len, indexptr, typeptr)
case
(
't'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
(
char
)
9
);
break
;
case
(
'n'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
(
char
)
10
);
break
;
case
(
'v'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
(
char
)
11
);
break
;
case
(
'r'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
(
char
)
13
);
break
;
case
(
'f'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
(
char
)
12
);
break
;
case
(
'a'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
(
char
)
7
);
break
;
case
(
'b'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
(
char
)
8
);
break
;
case
(
'\\'
):
*
indexptr
=
index
;
return
Py_BuildValue
(
"c"
,
'\\'
);
break
;
case
(
'x'
):
{
...
...
@@ -468,7 +460,6 @@ PyPcre_expand_escape(pattern, pattern_len, indexptr, typeptr)
*
typeptr
=
STRING
;
*
indexptr
=
index
;
return
Py_BuildValue
(
"s#"
,
pattern
+
index
-
2
,
2
);
break
;
}
}
...
...
Modules/zlibmodule.c
View file @
c69bac53
...
...
@@ -95,13 +95,11 @@ PyZlib_compress(self, args)
"Out of memory while compressing data"
);
free
(
output
);
return
NULL
;
break
;
case
(
Z_STREAM_ERROR
):
PyErr_SetString
(
ZlibError
,
"Bad compression level"
);
free
(
output
);
return
NULL
;
break
;
default:
{
if
(
zst
.
msg
==
Z_NULL
)
...
...
@@ -114,7 +112,6 @@ PyZlib_compress(self, args)
free
(
output
);
return
NULL
;
}
break
;
}
err
=
deflate
(
&
zst
,
Z_FINISH
);
...
...
@@ -290,17 +287,14 @@ PyZlib_compressobj(selfptr, args)
{
case
(
Z_OK
):
return
(
PyObject
*
)
self
;
break
;
case
(
Z_MEM_ERROR
):
PyErr_SetString
(
PyExc_MemoryError
,
"Can't allocate memory for compression object"
);
return
NULL
;
break
;
case
(
Z_STREAM_ERROR
):
PyErr_SetString
(
PyExc_ValueError
,
"Invalid initialization option"
);
return
NULL
;
break
;
default:
{
if
(
self
->
zst
.
msg
==
Z_NULL
)
...
...
@@ -312,7 +306,6 @@ PyZlib_compressobj(selfptr, args)
"Error %i while creating compression object: %.200s"
,
err
,
self
->
zst
.
msg
);
return
NULL
;
break
;
}
}
}
...
...
@@ -337,17 +330,14 @@ PyZlib_decompressobj(selfptr, args)
{
case
(
Z_OK
):
return
(
PyObject
*
)
self
;
break
;
case
(
Z_STREAM_ERROR
):
PyErr_SetString
(
PyExc_ValueError
,
"Invalid initialization option"
);
return
NULL
;
break
;
case
(
Z_MEM_ERROR
):
PyErr_SetString
(
PyExc_MemoryError
,
"Can't allocate memory for decompression object"
);
return
NULL
;
break
;
default:
{
if
(
self
->
zst
.
msg
==
Z_NULL
)
...
...
@@ -359,7 +349,6 @@ PyZlib_decompressobj(selfptr, args)
"Error %i while creating decompression object: %.200s"
,
err
,
self
->
zst
.
msg
);
return
NULL
;
break
;
}
}
}
...
...
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