summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-07-29 08:25:09 +0000
committerGuido van Rossum <guido@python.org>1993-07-29 08:25:09 +0000
commit6598c579c79a74fc778c4bf1660dcc5af0c377f4 (patch)
tree18b28f3c2454a5b3508c4232c806cb7b57e0619e
parent7829d195d5a53618b0d8f0c19ebc669ab03831c4 (diff)
downloadcpython-6598c579c79a74fc778c4bf1660dcc5af0c377f4.tar.gz
Minor fixes / changes for Mac compatibility.
-rw-r--r--Modules/imageop.c4
-rw-r--r--Objects/dictobject.c4
-rw-r--r--Objects/listobject.c2
-rw-r--r--Objects/mappingobject.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/Modules/imageop.c b/Modules/imageop.c
index 67aa9fc748..40940cb7f9 100644
--- a/Modules/imageop.c
+++ b/Modules/imageop.c
@@ -156,7 +156,7 @@ imageop_tovideo(self, args)
ncp = (unsigned char *)getstringvalue(rv);
if ( width == 1 ) {
- bcopy(cp, ncp, maxx); /* Copy first line */
+ memcpy(ncp, cp, maxx); /* Copy first line */
ncp += maxx;
for (y=1; y<maxy; y++) { /* Interpolate other lines */
for(x=0; x<maxx; x++) {
@@ -165,7 +165,7 @@ imageop_tovideo(self, args)
}
}
} else {
- bcopy(cp, ncp, maxx*4); /* Copy first line */
+ memcpy(ncp, cp, maxx*4); /* Copy first line */
ncp += maxx*4;
for (y=1; y<maxy; y++) { /* Interpolate other lines */
for(x=0; x<maxx; x++) {
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index c50b35a335..527b062467 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -763,7 +763,7 @@ dictinsert(v, key, item)
last_name_object = newstringobject(key);
if (last_name_object == NULL) {
last_name_char = NULL;
- return NULL;
+ return -1;
}
last_name_char = key;
}
@@ -780,7 +780,7 @@ dictremove(v, key)
last_name_object = newstringobject(key);
if (last_name_object == NULL) {
last_name_char = NULL;
- return NULL;
+ return -1;
}
last_name_char = key;
}
diff --git a/Objects/listobject.c b/Objects/listobject.c
index b51e3d83df..38829e2d3f 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -442,7 +442,7 @@ setlistslice(a, ilow, ihigh, v)
{
if (!is_listobject(a)) {
err_badcall();
- return NULL;
+ return -1;
}
return list_ass_slice((listobject *)a, ilow, ihigh, v);
}
diff --git a/Objects/mappingobject.c b/Objects/mappingobject.c
index c50b35a335..527b062467 100644
--- a/Objects/mappingobject.c
+++ b/Objects/mappingobject.c
@@ -763,7 +763,7 @@ dictinsert(v, key, item)
last_name_object = newstringobject(key);
if (last_name_object == NULL) {
last_name_char = NULL;
- return NULL;
+ return -1;
}
last_name_char = key;
}
@@ -780,7 +780,7 @@ dictremove(v, key)
last_name_object = newstringobject(key);
if (last_name_object == NULL) {
last_name_char = NULL;
- return NULL;
+ return -1;
}
last_name_char = key;
}