summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-04-17 20:40:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-04-17 20:40:07 (GMT)
commitecc6635ae444440049172829a4f7590acf58725a (patch)
tree1e6924447082357b93634bf362c1d7fa804edaa2 /Mac/Modules
parent269b2a6797a11958929a5c1102dd1dd67d29e411 (diff)
downloadcpython-ecc6635ae444440049172829a4f7590acf58725a.zip
cpython-ecc6635ae444440049172829a4f7590acf58725a.tar.gz
cpython-ecc6635ae444440049172829a4f7590acf58725a.tar.bz2
Converted manually written code to the new K format specifier.
Untested, but at least it still compiles.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/Nav.c10
-rw-r--r--Mac/Modules/scrap/_Scrapmodule.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c
index 9fbd2b0..81d00b2 100644
--- a/Mac/Modules/Nav.c
+++ b/Mac/Modules/Nav.c
@@ -167,10 +167,10 @@ filldialogoptions(PyObject *d,
}
*defaultLocationP = defaultLocation_storage;
} else if( strcmp(keystr, "version") == 0 ) {
- if ( !PyArg_Parse(value, "h", &opt->version) )
+ if ( !PyArg_Parse(value, "H", &opt->version) )
return 0;
} else if( strcmp(keystr, "dialogOptionFlags") == 0 ) {
- if ( !PyArg_Parse(value, "l", &opt->dialogOptionFlags) )
+ if ( !PyArg_Parse(value, "K", &opt->dialogOptionFlags) )
return 0;
} else if( strcmp(keystr, "location") == 0 ) {
if ( !PyArg_Parse(value, "O&", PyMac_GetPoint, &opt->location) )
@@ -247,7 +247,7 @@ nav_NavTranslateFile(navrrobject *self, PyObject *args)
NavTranslationOptions howToTranslate;
OSErr err;
- if (!PyArg_ParseTuple(args, "l", &howToTranslate))
+ if (!PyArg_ParseTuple(args, "K", &howToTranslate))
return NULL;
err = NavTranslateFile(&self->itself, howToTranslate);
if ( err ) {
@@ -268,7 +268,7 @@ nav_NavCompleteSave(navrrobject *self, PyObject *args)
NavTranslationOptions howToTranslate;
OSErr err;
- if (!PyArg_ParseTuple(args, "l", &howToTranslate))
+ if (!PyArg_ParseTuple(args, "K", &howToTranslate))
return NULL;
err = NavCompleteSave(&self->itself, howToTranslate);
if ( err ) {
@@ -528,7 +528,7 @@ nav_NavAskSaveChanges(PyObject *self, PyObject *args, PyObject *kw)
OSErr err;
if ( kw && PyObject_IsTrue(kw) ) {
- if (!PyArg_ParseTuple(args, "l", &action))
+ if (!PyArg_ParseTuple(args, "K", &action))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "lO!", &action, &PyDict_Type, &dict))
diff --git a/Mac/Modules/scrap/_Scrapmodule.c b/Mac/Modules/scrap/_Scrapmodule.c
index 58e565f..288c65a 100644
--- a/Mac/Modules/scrap/_Scrapmodule.c
+++ b/Mac/Modules/scrap/_Scrapmodule.c
@@ -138,7 +138,7 @@ static PyObject *ScrapObj_PutScrapFlavor(ScrapObject *_self, PyObject *_args)
ScrapFlavorFlags flavorFlags;
char *flavorData__in__;
int flavorData__in_len__;
- if (!PyArg_ParseTuple(_args, "O&ls#",
+ if (!PyArg_ParseTuple(_args, "O&Ks#",
PyMac_GetOSType, &flavorType,
&flavorFlags,
&flavorData__in__, &flavorData__in_len__))