Commit fffdfe7e authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Merged revisions 81073 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81073 | andrew.kuchling | 2010-05-10 19:27:01 -0400 (Mon, 10 May 2010) | 1 line

  Use ';' after initialization macros to avoid confusing re-indenters
........
parent 8d047ee8
...@@ -1748,8 +1748,8 @@ PyCurses_Color_Content(PyObject *self, PyObject *args) ...@@ -1748,8 +1748,8 @@ PyCurses_Color_Content(PyObject *self, PyObject *args)
{ {
short color,r,g,b; short color,r,g,b;
PyCursesInitialised PyCursesInitialised;
PyCursesInitialisedColor PyCursesInitialisedColor;
if (!PyArg_ParseTuple(args, "h:color_content", &color)) return NULL; if (!PyArg_ParseTuple(args, "h:color_content", &color)) return NULL;
...@@ -1767,8 +1767,8 @@ PyCurses_color_pair(PyObject *self, PyObject *args) ...@@ -1767,8 +1767,8 @@ PyCurses_color_pair(PyObject *self, PyObject *args)
{ {
int n; int n;
PyCursesInitialised PyCursesInitialised;
PyCursesInitialisedColor PyCursesInitialisedColor;
if (!PyArg_ParseTuple(args, "i:color_pair", &n)) return NULL; if (!PyArg_ParseTuple(args, "i:color_pair", &n)) return NULL;
return PyLong_FromLong((long) (n << 8)); return PyLong_FromLong((long) (n << 8));
...@@ -1779,7 +1779,7 @@ PyCurses_Curs_Set(PyObject *self, PyObject *args) ...@@ -1779,7 +1779,7 @@ PyCurses_Curs_Set(PyObject *self, PyObject *args)
{ {
int vis,erg; int vis,erg;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args, "i:curs_set", &vis)) return NULL; if (!PyArg_ParseTuple(args, "i:curs_set", &vis)) return NULL;
...@@ -1794,7 +1794,7 @@ PyCurses_Delay_Output(PyObject *self, PyObject *args) ...@@ -1794,7 +1794,7 @@ PyCurses_Delay_Output(PyObject *self, PyObject *args)
{ {
int ms; int ms;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args, "i:delay_output", &ms)) return NULL; if (!PyArg_ParseTuple(args, "i:delay_output", &ms)) return NULL;
...@@ -1806,7 +1806,7 @@ PyCurses_EraseChar(PyObject *self) ...@@ -1806,7 +1806,7 @@ PyCurses_EraseChar(PyObject *self)
{ {
char ch; char ch;
PyCursesInitialised PyCursesInitialised;
ch = erasechar(); ch = erasechar();
...@@ -1819,7 +1819,7 @@ PyCurses_getsyx(PyObject *self) ...@@ -1819,7 +1819,7 @@ PyCurses_getsyx(PyObject *self)
int x = 0; int x = 0;
int y = 0; int y = 0;
PyCursesInitialised PyCursesInitialised;
getsyx(y, x); getsyx(y, x);
...@@ -1833,7 +1833,7 @@ PyCurses_GetMouse(PyObject *self) ...@@ -1833,7 +1833,7 @@ PyCurses_GetMouse(PyObject *self)
int rtn; int rtn;
MEVENT event; MEVENT event;
PyCursesInitialised PyCursesInitialised;
rtn = getmouse( &event ); rtn = getmouse( &event );
if (rtn == ERR) { if (rtn == ERR) {
...@@ -1851,7 +1851,7 @@ PyCurses_UngetMouse(PyObject *self, PyObject *args) ...@@ -1851,7 +1851,7 @@ PyCurses_UngetMouse(PyObject *self, PyObject *args)
{ {
MEVENT event; MEVENT event;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args, "hiiil", if (!PyArg_ParseTuple(args, "hiiil",
&event.id, &event.id,
&event.x, &event.y, &event.z, &event.x, &event.y, &event.z,
...@@ -1872,7 +1872,7 @@ PyCurses_GetWin(PyCursesWindowObject *self, PyObject *stream) ...@@ -1872,7 +1872,7 @@ PyCurses_GetWin(PyCursesWindowObject *self, PyObject *stream)
size_t datalen; size_t datalen;
WINDOW *win; WINDOW *win;
PyCursesInitialised PyCursesInitialised;
strcpy(fn, "/tmp/py.curses.getwin.XXXXXX"); strcpy(fn, "/tmp/py.curses.getwin.XXXXXX");
fd = mkstemp(fn); fd = mkstemp(fn);
...@@ -1923,7 +1923,7 @@ PyCurses_HalfDelay(PyObject *self, PyObject *args) ...@@ -1923,7 +1923,7 @@ PyCurses_HalfDelay(PyObject *self, PyObject *args)
{ {
unsigned char tenths; unsigned char tenths;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args, "b:halfdelay", &tenths)) return NULL; if (!PyArg_ParseTuple(args, "b:halfdelay", &tenths)) return NULL;
...@@ -1936,7 +1936,7 @@ static PyObject * PyCurses_has_key(PyObject *self, PyObject *args) ...@@ -1936,7 +1936,7 @@ static PyObject * PyCurses_has_key(PyObject *self, PyObject *args)
{ {
int ch; int ch;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"i",&ch)) return NULL; if (!PyArg_ParseTuple(args,"i",&ch)) return NULL;
...@@ -1954,8 +1954,8 @@ PyCurses_Init_Color(PyObject *self, PyObject *args) ...@@ -1954,8 +1954,8 @@ PyCurses_Init_Color(PyObject *self, PyObject *args)
{ {
short color, r, g, b; short color, r, g, b;
PyCursesInitialised PyCursesInitialised;
PyCursesInitialisedColor PyCursesInitialisedColor;
switch(PyTuple_Size(args)) { switch(PyTuple_Size(args)) {
case 4: case 4:
...@@ -1974,8 +1974,8 @@ PyCurses_Init_Pair(PyObject *self, PyObject *args) ...@@ -1974,8 +1974,8 @@ PyCurses_Init_Pair(PyObject *self, PyObject *args)
{ {
short pair, f, b; short pair, f, b;
PyCursesInitialised PyCursesInitialised;
PyCursesInitialisedColor PyCursesInitialisedColor;
if (PyTuple_Size(args) != 3) { if (PyTuple_Size(args) != 3) {
PyErr_SetString(PyExc_TypeError, "init_pair requires 3 arguments"); PyErr_SetString(PyExc_TypeError, "init_pair requires 3 arguments");
...@@ -2148,7 +2148,7 @@ PyCurses_IntrFlush(PyObject *self, PyObject *args) ...@@ -2148,7 +2148,7 @@ PyCurses_IntrFlush(PyObject *self, PyObject *args)
{ {
int ch; int ch;
PyCursesInitialised PyCursesInitialised;
switch(PyTuple_Size(args)) { switch(PyTuple_Size(args)) {
case 1: case 1:
...@@ -2170,7 +2170,7 @@ PyCurses_Is_Term_Resized(PyObject *self, PyObject *args) ...@@ -2170,7 +2170,7 @@ PyCurses_Is_Term_Resized(PyObject *self, PyObject *args)
int columns; int columns;
int result; int result;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"ii:is_term_resized", &lines, &columns)) if (!PyArg_ParseTuple(args,"ii:is_term_resized", &lines, &columns))
return NULL; return NULL;
...@@ -2192,7 +2192,7 @@ PyCurses_KeyName(PyObject *self, PyObject *args) ...@@ -2192,7 +2192,7 @@ PyCurses_KeyName(PyObject *self, PyObject *args)
const char *knp; const char *knp;
int ch; int ch;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"i",&ch)) return NULL; if (!PyArg_ParseTuple(args,"i",&ch)) return NULL;
...@@ -2221,7 +2221,7 @@ PyCurses_Meta(PyObject *self, PyObject *args) ...@@ -2221,7 +2221,7 @@ PyCurses_Meta(PyObject *self, PyObject *args)
{ {
int ch; int ch;
PyCursesInitialised PyCursesInitialised;
switch(PyTuple_Size(args)) { switch(PyTuple_Size(args)) {
case 1: case 1:
...@@ -2240,7 +2240,7 @@ static PyObject * ...@@ -2240,7 +2240,7 @@ static PyObject *
PyCurses_MouseInterval(PyObject *self, PyObject *args) PyCurses_MouseInterval(PyObject *self, PyObject *args)
{ {
int interval; int interval;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"i;interval",&interval)) if (!PyArg_ParseTuple(args,"i;interval",&interval))
return NULL; return NULL;
...@@ -2253,7 +2253,7 @@ PyCurses_MouseMask(PyObject *self, PyObject *args) ...@@ -2253,7 +2253,7 @@ PyCurses_MouseMask(PyObject *self, PyObject *args)
int newmask; int newmask;
mmask_t oldmask, availmask; mmask_t oldmask, availmask;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"i;mousemask",&newmask)) if (!PyArg_ParseTuple(args,"i;mousemask",&newmask))
return NULL; return NULL;
availmask = mousemask(newmask, &oldmask); availmask = mousemask(newmask, &oldmask);
...@@ -2266,7 +2266,7 @@ PyCurses_Napms(PyObject *self, PyObject *args) ...@@ -2266,7 +2266,7 @@ PyCurses_Napms(PyObject *self, PyObject *args)
{ {
int ms; int ms;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args, "i;ms", &ms)) return NULL; if (!PyArg_ParseTuple(args, "i;ms", &ms)) return NULL;
return Py_BuildValue("i", napms(ms)); return Py_BuildValue("i", napms(ms));
...@@ -2279,7 +2279,7 @@ PyCurses_NewPad(PyObject *self, PyObject *args) ...@@ -2279,7 +2279,7 @@ PyCurses_NewPad(PyObject *self, PyObject *args)
WINDOW *win; WINDOW *win;
int nlines, ncols; int nlines, ncols;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"ii;nlines,ncols",&nlines,&ncols)) return NULL; if (!PyArg_ParseTuple(args,"ii;nlines,ncols",&nlines,&ncols)) return NULL;
...@@ -2299,7 +2299,7 @@ PyCurses_NewWindow(PyObject *self, PyObject *args) ...@@ -2299,7 +2299,7 @@ PyCurses_NewWindow(PyObject *self, PyObject *args)
WINDOW *win; WINDOW *win;
int nlines, ncols, begin_y=0, begin_x=0; int nlines, ncols, begin_y=0, begin_x=0;
PyCursesInitialised PyCursesInitialised;
switch (PyTuple_Size(args)) { switch (PyTuple_Size(args)) {
case 2: case 2:
...@@ -2330,8 +2330,8 @@ PyCurses_Pair_Content(PyObject *self, PyObject *args) ...@@ -2330,8 +2330,8 @@ PyCurses_Pair_Content(PyObject *self, PyObject *args)
{ {
short pair,f,b; short pair,f,b;
PyCursesInitialised PyCursesInitialised;
PyCursesInitialisedColor PyCursesInitialisedColor;
switch(PyTuple_Size(args)) { switch(PyTuple_Size(args)) {
case 1: case 1:
...@@ -2356,8 +2356,8 @@ PyCurses_pair_number(PyObject *self, PyObject *args) ...@@ -2356,8 +2356,8 @@ PyCurses_pair_number(PyObject *self, PyObject *args)
{ {
int n; int n;
PyCursesInitialised PyCursesInitialised;
PyCursesInitialisedColor PyCursesInitialisedColor;
switch(PyTuple_Size(args)) { switch(PyTuple_Size(args)) {
case 1: case 1:
...@@ -2386,7 +2386,7 @@ PyCurses_QiFlush(PyObject *self, PyObject *args) ...@@ -2386,7 +2386,7 @@ PyCurses_QiFlush(PyObject *self, PyObject *args)
{ {
int flag = 0; int flag = 0;
PyCursesInitialised PyCursesInitialised;
switch(PyTuple_Size(args)) { switch(PyTuple_Size(args)) {
case 0: case 0:
...@@ -2462,7 +2462,7 @@ PyCurses_ResizeTerm(PyObject *self, PyObject *args) ...@@ -2462,7 +2462,7 @@ PyCurses_ResizeTerm(PyObject *self, PyObject *args)
int columns; int columns;
PyObject *result; PyObject *result;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"ii:resizeterm", &lines, &columns)) if (!PyArg_ParseTuple(args,"ii:resizeterm", &lines, &columns))
return NULL; return NULL;
...@@ -2486,7 +2486,7 @@ PyCurses_Resize_Term(PyObject *self, PyObject *args) ...@@ -2486,7 +2486,7 @@ PyCurses_Resize_Term(PyObject *self, PyObject *args)
PyObject *result; PyObject *result;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"ii:resize_term", &lines, &columns)) if (!PyArg_ParseTuple(args,"ii:resize_term", &lines, &columns))
return NULL; return NULL;
...@@ -2505,7 +2505,7 @@ PyCurses_setsyx(PyObject *self, PyObject *args) ...@@ -2505,7 +2505,7 @@ PyCurses_setsyx(PyObject *self, PyObject *args)
{ {
int y,x; int y,x;
PyCursesInitialised PyCursesInitialised;
if (PyTuple_Size(args)!=2) { if (PyTuple_Size(args)!=2) {
PyErr_SetString(PyExc_TypeError, "setsyx requires 2 arguments"); PyErr_SetString(PyExc_TypeError, "setsyx requires 2 arguments");
...@@ -2526,7 +2526,7 @@ PyCurses_Start_Color(PyObject *self) ...@@ -2526,7 +2526,7 @@ PyCurses_Start_Color(PyObject *self)
int code; int code;
PyObject *c, *cp; PyObject *c, *cp;
PyCursesInitialised PyCursesInitialised;
code = start_color(); code = start_color();
if (code != ERR) { if (code != ERR) {
...@@ -2618,7 +2618,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args) ...@@ -2618,7 +2618,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args)
{ {
int fd; int fd;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL; if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
...@@ -2631,7 +2631,7 @@ PyCurses_UnCtrl(PyObject *self, PyObject *args) ...@@ -2631,7 +2631,7 @@ PyCurses_UnCtrl(PyObject *self, PyObject *args)
PyObject *temp; PyObject *temp;
chtype ch; chtype ch;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"O;ch or int",&temp)) return NULL; if (!PyArg_ParseTuple(args,"O;ch or int",&temp)) return NULL;
...@@ -2649,7 +2649,7 @@ PyCurses_UngetCh(PyObject *self, PyObject *args) ...@@ -2649,7 +2649,7 @@ PyCurses_UngetCh(PyObject *self, PyObject *args)
PyObject *temp; PyObject *temp;
chtype ch; chtype ch;
PyCursesInitialised PyCursesInitialised;
if (!PyArg_ParseTuple(args,"O;ch or int",&temp)) return NULL; if (!PyArg_ParseTuple(args,"O;ch or int",&temp)) return NULL;
...@@ -2686,8 +2686,8 @@ PyCurses_Use_Default_Colors(PyObject *self) ...@@ -2686,8 +2686,8 @@ PyCurses_Use_Default_Colors(PyObject *self)
{ {
int code; int code;
PyCursesInitialised PyCursesInitialised;
PyCursesInitialisedColor PyCursesInitialisedColor;
code = use_default_colors(); code = use_default_colors();
if (code != ERR) { if (code != ERR) {
......
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