Commit 14ece169 authored by Sjoerd Mullender's avatar Sjoerd Mullender

Added some (method) casts.

parent 385e7c69
...@@ -1038,48 +1038,48 @@ PyCursesWindow_NoTimeout(self,arg) ...@@ -1038,48 +1038,48 @@ PyCursesWindow_NoTimeout(self,arg)
} }
static PyMethodDef PyCursesWindow_Methods[] = { static PyMethodDef PyCursesWindow_Methods[] = {
{"refresh", PyCursesWindow_Refresh}, {"refresh", (PyCFunction)PyCursesWindow_Refresh},
{"nooutrefresh", PyCursesWindow_NoOutRefresh}, {"nooutrefresh", (PyCFunction)PyCursesWindow_NoOutRefresh},
{"mvwin", PyCursesWindow_MoveWin}, {"mvwin", (PyCFunction)PyCursesWindow_MoveWin},
{"move", PyCursesWindow_Move}, {"move", (PyCFunction)PyCursesWindow_Move},
{"subwin", PyCursesWindow_SubWin}, {"subwin", (PyCFunction)PyCursesWindow_SubWin},
{"addch", PyCursesWindow_AddCh}, {"addch", (PyCFunction)PyCursesWindow_AddCh},
{"insch", PyCursesWindow_InsCh}, {"insch", (PyCFunction)PyCursesWindow_InsCh},
{"delch", PyCursesWindow_DelCh}, {"delch", (PyCFunction)PyCursesWindow_DelCh},
{"echochar", PyCursesWindow_EchoChar}, {"echochar", (PyCFunction)PyCursesWindow_EchoChar},
{"addstr", PyCursesWindow_AddStr}, {"addstr", (PyCFunction)PyCursesWindow_AddStr},
{"attron", PyCursesWindow_AttrOn}, {"attron", (PyCFunction)PyCursesWindow_AttrOn},
{"attroff", PyCursesWindow_AttrOff}, {"attroff", (PyCFunction)PyCursesWindow_AttrOff},
{"attrset", PyCursesWindow_AttrSet}, {"attrset", (PyCFunction)PyCursesWindow_AttrSet},
{"standend", PyCursesWindow_StandEnd}, {"standend", (PyCFunction)PyCursesWindow_StandEnd},
{"standout", PyCursesWindow_StandOut}, {"standout", (PyCFunction)PyCursesWindow_StandOut},
{"border", PyCursesWindow_Border, METH_VARARGS}, {"border", (PyCFunction)PyCursesWindow_Border, METH_VARARGS},
{"box", PyCursesWindow_Box}, {"box", (PyCFunction)PyCursesWindow_Box},
{"hline", PyCursesWindow_Hline}, {"hline", (PyCFunction)PyCursesWindow_Hline},
{"vline", PyCursesWindow_Vline}, {"vline", (PyCFunction)PyCursesWindow_Vline},
{"erase", PyCursesWindow_Erase}, {"erase", (PyCFunction)PyCursesWindow_Erase},
{"deleteln", PyCursesWindow_DeleteLine}, {"deleteln", (PyCFunction)PyCursesWindow_DeleteLine},
{"insertln", PyCursesWindow_InsertLine}, {"insertln", (PyCFunction)PyCursesWindow_InsertLine},
{"getyx", PyCursesWindow_GetYX}, {"getyx", (PyCFunction)PyCursesWindow_GetYX},
{"getbegyx", PyCursesWindow_GetBegYX}, {"getbegyx", (PyCFunction)PyCursesWindow_GetBegYX},
{"getmaxyx", PyCursesWindow_GetMaxYX}, {"getmaxyx", (PyCFunction)PyCursesWindow_GetMaxYX},
{"clear", PyCursesWindow_Clear}, {"clear", (PyCFunction)PyCursesWindow_Clear},
{"clrtobot", PyCursesWindow_ClearToBottom}, {"clrtobot", (PyCFunction)PyCursesWindow_ClearToBottom},
{"clrtoeol", PyCursesWindow_ClearToEOL}, {"clrtoeol", (PyCFunction)PyCursesWindow_ClearToEOL},
{"scroll", PyCursesWindow_Scroll}, {"scroll", (PyCFunction)PyCursesWindow_Scroll},
{"touchwin", PyCursesWindow_TouchWin}, {"touchwin", (PyCFunction)PyCursesWindow_TouchWin},
{"touchline", PyCursesWindow_TouchLine}, {"touchline", (PyCFunction)PyCursesWindow_TouchLine},
{"getch", PyCursesWindow_GetCh}, {"getch", (PyCFunction)PyCursesWindow_GetCh},
{"getstr", PyCursesWindow_GetStr}, {"getstr", (PyCFunction)PyCursesWindow_GetStr},
{"inch", PyCursesWindow_InCh}, {"inch", (PyCFunction)PyCursesWindow_InCh},
{"clearok", PyCursesWindow_ClearOk}, {"clearok", (PyCFunction)PyCursesWindow_ClearOk},
{"idlok", PyCursesWindow_IdlOk}, {"idlok", (PyCFunction)PyCursesWindow_IdlOk},
{"leaveok", PyCursesWindow_LeaveOk}, {"leaveok", (PyCFunction)PyCursesWindow_LeaveOk},
{"scrollok", PyCursesWindow_ScrollOk}, {"scrollok", (PyCFunction)PyCursesWindow_ScrollOk},
{"setscrreg", PyCursesWindow_SetScrollRegion}, {"setscrreg", (PyCFunction)PyCursesWindow_SetScrollRegion},
{"keypad", PyCursesWindow_KeyPad}, {"keypad", (PyCFunction)PyCursesWindow_KeyPad},
{"nodelay", PyCursesWindow_NoDelay}, {"nodelay", (PyCFunction)PyCursesWindow_NoDelay},
{"notimeout", PyCursesWindow_NoTimeout}, {"notimeout", (PyCFunction)PyCursesWindow_NoTimeout},
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
}; };
......
...@@ -315,19 +315,19 @@ sad_close(self, args) ...@@ -315,19 +315,19 @@ sad_close(self, args)
} }
static struct methodlist sad_methods[] = { static struct methodlist sad_methods[] = {
{ "read", sad_read }, { "read", (method)sad_read },
{ "write", sad_write }, { "write", (method)sad_write },
{ "ibufcount", sad_ibufcount }, { "ibufcount", (method)sad_ibufcount },
{ "obufcount", sad_obufcount }, { "obufcount", (method)sad_obufcount },
#define CTL_METHODS 4 #define CTL_METHODS 4
{ "getinfo", sad_getinfo }, { "getinfo", (method)sad_getinfo },
{ "setinfo", sad_setinfo }, { "setinfo", (method)sad_setinfo },
{ "drain", sad_drain }, { "drain", (method)sad_drain },
{ "flush", sad_flush }, { "flush", (method)sad_flush },
#ifdef SOLARIS #ifdef SOLARIS
{ "getdev", sad_getdev }, { "getdev", (method)sad_getdev },
#endif #endif
{ "close", sad_close }, { "close", (method)sad_close },
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
}; };
......
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