]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Changed the m# format for PyArg_ParseTuple back to s#
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 7 May 1997 15:46:31 +0000 (15:46 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 7 May 1997 15:46:31 +0000 (15:46 +0000)
- c2pstr has moved to a different include file

Mac/Modules/ctbmodule.c
Mac/Modules/macfsmodule.c
Mac/Modules/macmodule.c
Mac/Modules/macosmodule.c
Mac/Modules/macspeechmodule.c

index 6f0923b516c92b230798fe814163295df48ebd4c..907b7bb7c6a85288be8151eb728208a4f37f218d 100644 (file)
@@ -298,7 +298,7 @@ ctbcm_write(self, args)
        char *buf;
        ConnectionCompletionUPP cb_upp = NewConnectionCompletionProc(ctbcm_ctbcallback);
        
-       if (!PyArg_Parse(args, "(m#ili)", &buf, &ilen, &chan, &timeout, &flags))
+       if (!PyArg_Parse(args, "(s#ili)", &buf, &ilen, &chan, &timeout, &flags))
                return NULL;
        len = ilen;
        if ((err=CMWrite(self->hdl, (Ptr)buf, &len, (CMChannel)chan,
index 1a43d1677406111b779a600429d026d3937dc230..5bd2ce590e28feb8e5205f70a6ef13d7ec76e5a0 100644 (file)
@@ -824,7 +824,7 @@ mfs_RawFSSpec(self, args)
        FSSpec *fssp;
        int size;
 
-       if (!PyArg_ParseTuple(args, "m#", &fssp, &size))
+       if (!PyArg_ParseTuple(args, "s#", &fssp, &size))
                return NULL;
        if ( size != sizeof(FSSpec) ) {
                PyErr_SetString(PyExc_TypeError, "Incorrect size for FSSpec record");
@@ -842,7 +842,7 @@ mfs_RawAlias(self, args)
        Handle h;
        int size;
 
-       if (!PyArg_ParseTuple(args, "m#", &dataptr, &size))
+       if (!PyArg_ParseTuple(args, "s#", &dataptr, &size))
                return NULL;
        h = NewHandle(size);
        if ( h == NULL ) {
index 8de3c91e1e43b15dc6e8ed53fda549ee433fef91..49c0f8b34ef5e12530fa318ed747b3ce67334cb9 100644 (file)
@@ -567,7 +567,7 @@ mac_write(self, args)
 {
        int fd, size;
        char *buffer;
-       if (!PyArg_Parse(args, "(im#)", &fd, &buffer, &size))
+       if (!PyArg_Parse(args, "(is#)", &fd, &buffer, &size))
                return NULL;
        Py_BEGIN_ALLOW_THREADS
        size = write(fd, buffer, size);
index 90be55d1bbe97e8025d9fbf4d0ba1ff8a4b7af0e..3cf11a0bec6d78dbdc5e5414f89bcec08584a256 100644 (file)
@@ -117,7 +117,7 @@ rf_write(self, args)
                PyErr_SetString(PyExc_ValueError, "Operation on closed file");
                return NULL;
        }
-       if (!PyArg_ParseTuple(args, "m#", &buffer, &size))
+       if (!PyArg_ParseTuple(args, "s#", &buffer, &size))
                return NULL;
        err = FSWrite(self->fRefNum, &size, buffer);
        if (err) {
index 6bcc730a7ecd28e2cea7098a378e91feed897f5e..22fe99a6a22fc737833d77af4183e0bf425a8ccc 100644 (file)
@@ -29,7 +29,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include "Speech.h"
 
 #ifdef __MWERKS__
-#include <Strings.h>
+#include <TextUtils.h>
 #define c2pstr C2PStr
 #define p2cstr P2CStr
 #else
@@ -150,7 +150,7 @@ sc_SpeakText(self, args)
        char *str;
        int len;
        
-       if (!PyArg_Parse(args, "m#", &str, &len))
+       if (!PyArg_Parse(args, "s#", &str, &len))
                return NULL;
        if ( self->curtext ) {
                StopSpeech(self->chan);