Commit d6f85423 authored by Victor Stinner's avatar Victor Stinner

Untabify Modules/posixmodule.c

Run Antoine Pitrou "untabify" script + manual editions (OS/2 and some
continuation lines).
parent f4f0bf85
......@@ -470,6 +470,10 @@ convertenviron(void)
{
PyObject *d;
char **e;
#if defined(PYOS_OS2)
APIRET rc;
char buffer[1024]; /* OS/2 Provides a Documented Max of 1024 Chars */
#endif
d = PyDict_New();
if (d == NULL)
return NULL;
......@@ -505,10 +509,6 @@ convertenviron(void)
Py_DECREF(v);
}
#if defined(PYOS_OS2)
{
APIRET rc;
char buffer[1024]; /* OS/2 Provides a Documented Max of 1024 Chars */
rc = DosQueryExtLIBPATH(buffer, BEGIN_LIBPATH);
if (rc == NO_ERROR) { /* (not a type, envname is NOT 'BEGIN_LIBPATH') */
PyObject *v = PyString_FromString(buffer);
......@@ -521,7 +521,6 @@ convertenviron(void)
PyDict_SetItemString(d, "ENDLIBPATH", v);
Py_DECREF(v);
}
}
#endif
return d;
}
......@@ -607,7 +606,7 @@ convert_to_unicode(PyObject **param)
/**********************************************************************
* Helper Function to Trim and Format OS/2 Messages
**********************************************************************/
static void
static void
os2_formatmsg(char *msgbuf, int msglen, char *reason)
{
msgbuf[msglen] = '\0'; /* OS/2 Doesn't Guarantee a Terminator */
......@@ -637,7 +636,7 @@ os2_formatmsg(char *msgbuf, int msglen, char *reason)
* the file OSO001.MSG in the \OS2 directory hierarchy.
*
**********************************************************************/
static char *
static char *
os2_strerror(char *msgbuf, int msgbuflen, int errorcode, char *reason)
{
APIRET rc;
......@@ -662,7 +661,8 @@ os2_strerror(char *msgbuf, int msgbuflen, int errorcode, char *reason)
errors are not in a global variable e.g. 'errno' nor are
they congruent with posix error numbers. */
static PyObject * os2_error(int code)
static PyObject *
os2_error(int code)
{
char text[1024];
PyObject *v;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment