Commit c83ea137 authored by Antoine Pitrou's avatar Antoine Pitrou

Untabify C files. Will watch buildbots.

parent 368ede83
...@@ -103,7 +103,7 @@ bytes(cdata) ...@@ -103,7 +103,7 @@ bytes(cdata)
* PyCField_Type * PyCField_Type
* *
*/ */
#define PY_SSIZE_T_CLEAN #define PY_SSIZE_T_CLEAN
#include "Python.h" #include "Python.h"
...@@ -140,7 +140,7 @@ static PyObject *_unpickle; ...@@ -140,7 +140,7 @@ static PyObject *_unpickle;
char *_ctypes_conversion_encoding = NULL; char *_ctypes_conversion_encoding = NULL;
char *_ctypes_conversion_errors = NULL; char *_ctypes_conversion_errors = NULL;
/****************************************************************/ /****************************************************************/
#if (PY_VERSION_HEX < 0x02040000) #if (PY_VERSION_HEX < 0x02040000)
...@@ -825,7 +825,7 @@ static PyTypeObject UnionType_Type = { ...@@ -825,7 +825,7 @@ static PyTypeObject UnionType_Type = {
0, /* tp_free */ 0, /* tp_free */
}; };
/******************************************************************/ /******************************************************************/
/* /*
...@@ -1061,7 +1061,7 @@ PyTypeObject PyCPointerType_Type = { ...@@ -1061,7 +1061,7 @@ PyTypeObject PyCPointerType_Type = {
0, /* tp_free */ 0, /* tp_free */
}; };
/******************************************************************/ /******************************************************************/
/* /*
PyCArrayType_Type PyCArrayType_Type
...@@ -1475,7 +1475,7 @@ PyTypeObject PyCArrayType_Type = { ...@@ -1475,7 +1475,7 @@ PyTypeObject PyCArrayType_Type = {
0, /* tp_free */ 0, /* tp_free */
}; };
/******************************************************************/ /******************************************************************/
/* /*
PyCSimpleType_Type PyCSimpleType_Type
...@@ -2379,7 +2379,7 @@ PyTypeObject PyCFuncPtrType_Type = { ...@@ -2379,7 +2379,7 @@ PyTypeObject PyCFuncPtrType_Type = {
0, /* tp_free */ 0, /* tp_free */
}; };
/***************************************************************** /*****************************************************************
* Code to keep needed objects alive * Code to keep needed objects alive
*/ */
...@@ -2944,7 +2944,7 @@ PyCData_set(PyObject *dst, PyObject *type, SETFUNC setfunc, PyObject *value, ...@@ -2944,7 +2944,7 @@ PyCData_set(PyObject *dst, PyObject *type, SETFUNC setfunc, PyObject *value,
return KeepRef(mem, index, result); return KeepRef(mem, index, result);
} }
/******************************************************************/ /******************************************************************/
static PyObject * static PyObject *
GenericPyCData_new(PyTypeObject *type, PyObject *args, PyObject *kwds) GenericPyCData_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
...@@ -4027,7 +4027,7 @@ PyTypeObject PyCFuncPtr_Type = { ...@@ -4027,7 +4027,7 @@ PyTypeObject PyCFuncPtr_Type = {
PyCFuncPtr_new, /* tp_new */ PyCFuncPtr_new, /* tp_new */
0, /* tp_free */ 0, /* tp_free */
}; };
/*****************************************************************/ /*****************************************************************/
/* /*
Struct_Type Struct_Type
...@@ -4217,7 +4217,7 @@ static PyTypeObject Union_Type = { ...@@ -4217,7 +4217,7 @@ static PyTypeObject Union_Type = {
0, /* tp_free */ 0, /* tp_free */
}; };
/******************************************************************/ /******************************************************************/
/* /*
PyCArray_Type PyCArray_Type
...@@ -4681,7 +4681,7 @@ PyCArrayType_from_ctype(PyObject *itemtype, Py_ssize_t length) ...@@ -4681,7 +4681,7 @@ PyCArrayType_from_ctype(PyObject *itemtype, Py_ssize_t length)
return result; return result;
} }
/******************************************************************/ /******************************************************************/
/* /*
Simple_Type Simple_Type
...@@ -4850,7 +4850,7 @@ static PyTypeObject Simple_Type = { ...@@ -4850,7 +4850,7 @@ static PyTypeObject Simple_Type = {
GenericPyCData_new, /* tp_new */ GenericPyCData_new, /* tp_new */
0, /* tp_free */ 0, /* tp_free */
}; };
/******************************************************************/ /******************************************************************/
/* /*
PyCPointer_Type PyCPointer_Type
...@@ -5271,7 +5271,7 @@ PyTypeObject PyCPointer_Type = { ...@@ -5271,7 +5271,7 @@ PyTypeObject PyCPointer_Type = {
0, /* tp_free */ 0, /* tp_free */
}; };
/******************************************************************/ /******************************************************************/
/* /*
* Module initialization. * Module initialization.
......
...@@ -339,7 +339,7 @@ PyTypeObject PyCField_Type = { ...@@ -339,7 +339,7 @@ PyTypeObject PyCField_Type = {
0, /* tp_free */ 0, /* tp_free */
}; };
/******************************************************************/ /******************************************************************/
/* /*
Accessor functions Accessor functions
......
...@@ -270,7 +270,7 @@ typedef struct { ...@@ -270,7 +270,7 @@ typedef struct {
(void *) v, Py_REFCNT(v))) (void *) v, Py_REFCNT(v)))
/**** Error Handling ****/ /**** Error Handling ****/
static PyObject *Tkinter_TclError; static PyObject *Tkinter_TclError;
...@@ -284,7 +284,7 @@ static PyObject *trbInCmd; ...@@ -284,7 +284,7 @@ static PyObject *trbInCmd;
static int tk_load_failed; static int tk_load_failed;
#endif #endif
static PyObject * static PyObject *
Tkinter_Error(PyObject *v) Tkinter_Error(PyObject *v)
{ {
...@@ -293,7 +293,7 @@ Tkinter_Error(PyObject *v) ...@@ -293,7 +293,7 @@ Tkinter_Error(PyObject *v)
} }
/**** Utils ****/ /**** Utils ****/
static int Tkinter_busywaitinterval = 20; static int Tkinter_busywaitinterval = 20;
...@@ -334,7 +334,7 @@ WaitForMainloop(TkappObject* self) ...@@ -334,7 +334,7 @@ WaitForMainloop(TkappObject* self)
} }
#endif /* WITH_THREAD */ #endif /* WITH_THREAD */
static char * static char *
AsString(PyObject *value, PyObject *tmp) AsString(PyObject *value, PyObject *tmp)
{ {
...@@ -367,7 +367,7 @@ AsString(PyObject *value, PyObject *tmp) ...@@ -367,7 +367,7 @@ AsString(PyObject *value, PyObject *tmp)
} }
#define ARGSZ 64 #define ARGSZ 64
static char * static char *
...@@ -447,7 +447,7 @@ Merge(PyObject *args) ...@@ -447,7 +447,7 @@ Merge(PyObject *args)
} }
static PyObject * static PyObject *
Split(char *list) Split(char *list)
{ {
...@@ -551,7 +551,7 @@ SplitObj(PyObject *arg) ...@@ -551,7 +551,7 @@ SplitObj(PyObject *arg)
return arg; return arg;
} }
/**** Tkapp Object ****/ /**** Tkapp Object ****/
#ifndef WITH_APPINIT #ifndef WITH_APPINIT
...@@ -592,7 +592,7 @@ Tcl_AppInit(Tcl_Interp *interp) ...@@ -592,7 +592,7 @@ Tcl_AppInit(Tcl_Interp *interp)
#endif /* !WITH_APPINIT */ #endif /* !WITH_APPINIT */
/* Initialize the Tk application; see the `main' function in /* Initialize the Tk application; see the `main' function in
* `tkMain.c'. * `tkMain.c'.
...@@ -749,7 +749,7 @@ Tkapp_ThreadSend(TkappObject *self, Tcl_Event *ev, ...@@ -749,7 +749,7 @@ Tkapp_ThreadSend(TkappObject *self, Tcl_Event *ev,
} }
#endif #endif
/** Tcl Eval **/ /** Tcl Eval **/
typedef struct { typedef struct {
...@@ -1535,7 +1535,7 @@ Tkapp_AddErrorInfo(PyObject *self, PyObject *args) ...@@ -1535,7 +1535,7 @@ Tkapp_AddErrorInfo(PyObject *self, PyObject *args)
} }
/** Tcl Variable **/ /** Tcl Variable **/
typedef PyObject* (*EventFunc)(PyObject*, PyObject *args, int flags); typedef PyObject* (*EventFunc)(PyObject*, PyObject *args, int flags);
...@@ -1709,7 +1709,7 @@ Tkapp_GlobalSetVar(PyObject *self, PyObject *args) ...@@ -1709,7 +1709,7 @@ Tkapp_GlobalSetVar(PyObject *self, PyObject *args)
} }
static PyObject * static PyObject *
GetVar(PyObject *self, PyObject *args, int flags) GetVar(PyObject *self, PyObject *args, int flags)
{ {
...@@ -1751,7 +1751,7 @@ Tkapp_GlobalGetVar(PyObject *self, PyObject *args) ...@@ -1751,7 +1751,7 @@ Tkapp_GlobalGetVar(PyObject *self, PyObject *args)
} }
static PyObject * static PyObject *
UnsetVar(PyObject *self, PyObject *args, int flags) UnsetVar(PyObject *self, PyObject *args, int flags)
{ {
...@@ -1788,7 +1788,7 @@ Tkapp_GlobalUnsetVar(PyObject *self, PyObject *args) ...@@ -1788,7 +1788,7 @@ Tkapp_GlobalUnsetVar(PyObject *self, PyObject *args)
} }
/** Tcl to Python **/ /** Tcl to Python **/
static PyObject * static PyObject *
...@@ -1945,7 +1945,7 @@ Tkapp_ExprBoolean(PyObject *self, PyObject *args) ...@@ -1945,7 +1945,7 @@ Tkapp_ExprBoolean(PyObject *self, PyObject *args)
} }
static PyObject * static PyObject *
Tkapp_SplitList(PyObject *self, PyObject *args) Tkapp_SplitList(PyObject *self, PyObject *args)
{ {
...@@ -2024,7 +2024,7 @@ Tkapp_Merge(PyObject *self, PyObject *args) ...@@ -2024,7 +2024,7 @@ Tkapp_Merge(PyObject *self, PyObject *args)
} }
/** Tcl Command **/ /** Tcl Command **/
/* Client data struct */ /* Client data struct */
...@@ -2107,7 +2107,7 @@ PythonCmdDelete(ClientData clientData) ...@@ -2107,7 +2107,7 @@ PythonCmdDelete(ClientData clientData)
} }
#ifdef WITH_THREAD #ifdef WITH_THREAD
TCL_DECLARE_MUTEX(command_mutex) TCL_DECLARE_MUTEX(command_mutex)
...@@ -2202,7 +2202,7 @@ Tkapp_CreateCommand(PyObject *selfptr, PyObject *args) ...@@ -2202,7 +2202,7 @@ Tkapp_CreateCommand(PyObject *selfptr, PyObject *args)
} }
static PyObject * static PyObject *
Tkapp_DeleteCommand(PyObject *selfptr, PyObject *args) Tkapp_DeleteCommand(PyObject *selfptr, PyObject *args)
{ {
...@@ -2244,7 +2244,7 @@ Tkapp_DeleteCommand(PyObject *selfptr, PyObject *args) ...@@ -2244,7 +2244,7 @@ Tkapp_DeleteCommand(PyObject *selfptr, PyObject *args)
} }
#ifdef HAVE_CREATEFILEHANDLER #ifdef HAVE_CREATEFILEHANDLER
/** File Handler **/ /** File Handler **/
...@@ -2410,7 +2410,7 @@ Tkapp_DeleteFileHandler(PyObject *self, PyObject *args) ...@@ -2410,7 +2410,7 @@ Tkapp_DeleteFileHandler(PyObject *self, PyObject *args)
} }
#endif /* HAVE_CREATEFILEHANDLER */ #endif /* HAVE_CREATEFILEHANDLER */
/**** Tktt Object (timer token) ****/ /**** Tktt Object (timer token) ****/
static PyTypeObject Tktt_Type; static PyTypeObject Tktt_Type;
...@@ -2513,7 +2513,7 @@ static PyTypeObject Tktt_Type = ...@@ -2513,7 +2513,7 @@ static PyTypeObject Tktt_Type =
}; };
/** Timer Handler **/ /** Timer Handler **/
static void static void
...@@ -2588,7 +2588,7 @@ Tkapp_CreateTimerHandler(PyObject *self, PyObject *args) ...@@ -2588,7 +2588,7 @@ Tkapp_CreateTimerHandler(PyObject *self, PyObject *args)
return (PyObject *) v; return (PyObject *) v;
} }
/** Event Loop **/ /** Event Loop **/
static PyObject * static PyObject *
...@@ -2797,7 +2797,7 @@ Tkapp_WillDispatch(PyObject *self, PyObject *args) ...@@ -2797,7 +2797,7 @@ Tkapp_WillDispatch(PyObject *self, PyObject *args)
return Py_None; return Py_None;
} }
/**** Tkapp Method List ****/ /**** Tkapp Method List ****/
static PyMethodDef Tkapp_methods[] = static PyMethodDef Tkapp_methods[] =
...@@ -2843,7 +2843,7 @@ static PyMethodDef Tkapp_methods[] = ...@@ -2843,7 +2843,7 @@ static PyMethodDef Tkapp_methods[] =
}; };
/**** Tkapp Type Methods ****/ /**** Tkapp Type Methods ****/
static void static void
...@@ -2882,7 +2882,7 @@ static PyTypeObject Tkapp_Type = ...@@ -2882,7 +2882,7 @@ static PyTypeObject Tkapp_Type =
}; };
/**** Tkinter Module ****/ /**** Tkinter Module ****/
typedef struct { typedef struct {
......
This diff is collapsed.
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