summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 19:25:51 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-22 19:25:51 (GMT)
commit7889010731eec703eda68fb32b6805c65e3f1cbf (patch)
tree2ef252eeade1d3aae02fc8b881c9e6a0c5bb1e42 /Objects
parent23c9e0024af99379ae517b016b874d57127e9a97 (diff)
downloadcpython-7889010731eec703eda68fb32b6805c65e3f1cbf.zip
cpython-7889010731eec703eda68fb32b6805c65e3f1cbf.tar.gz
cpython-7889010731eec703eda68fb32b6805c65e3f1cbf.tar.bz2
Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
char**) and return an int even on PC platforms. If not, please fix PC/utils/makesrc.c ;-P
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c2
-rw-r--r--Objects/unicodeobject.c24
2 files changed, 5 insertions, 21 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 819fadd..4fafb8a 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -92,7 +92,7 @@ typedef struct {
} dictobject;
PyObject *
-PyDict_New()
+PyDict_New(void)
{
register dictobject *mp;
if (dummy == NULL) { /* Auto-initialize dummy */
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index c904710..359a987 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -554,7 +554,7 @@ int PyUnicode_GetSize(PyObject *unicode)
return -1;
}
-const char *PyUnicode_GetDefaultEncoding()
+const char *PyUnicode_GetDefaultEncoding(void)
{
return unicode_default_encoding;
}
@@ -4530,10 +4530,7 @@ unicode_buffer_getcharbuf(PyUnicodeObject *self,
/* Helpers for PyUnicode_Format() */
static PyObject *
-getnextarg(args, arglen, p_argidx)
- PyObject *args;
-int arglen;
-int *p_argidx;
+getnextarg(PyObject *args, int arglen, int *p_argidx)
{
int argidx = *p_argidx;
if (argidx < arglen) {
@@ -4555,26 +4552,13 @@ int *p_argidx;
#define F_ZERO (1<<4)
static
-#ifdef HAVE_STDARG_PROTOTYPES
int usprintf(register Py_UNICODE *buffer, char *format, ...)
-#else
-int usprintf(va_alist) va_dcl
-#endif
{
register int i;
int len;
va_list va;
char *charbuffer;
-#ifdef HAVE_STDARG_PROTOTYPES
va_start(va, format);
-#else
- Py_UNICODE *args;
- char *format;
-
- va_start(va);
- buffer = va_arg(va, Py_UNICODE *);
- format = va_arg(va, char *);
-#endif
/* First, format the string as char array, then expand to Py_UNICODE
array. */
@@ -5121,7 +5105,7 @@ PyTypeObject PyUnicode_Type = {
/* Initialize the Unicode implementation */
-void _PyUnicode_Init()
+void _PyUnicode_Init(void)
{
/* Doublecheck the configuration... */
if (sizeof(Py_UNICODE) != 2)
@@ -5138,7 +5122,7 @@ void _PyUnicode_Init()
/* Finalize the Unicode implementation */
void
-_PyUnicode_Fini()
+_PyUnicode_Fini(void)
{
PyUnicodeObject *u = unicode_freelist;