C formatting using astyle --style=allman
This commit is contained in:
parent
d038fcd217
commit
656bb9ebad
@ -107,7 +107,8 @@ static char bitmaps_module_documentation[] =
|
||||
;
|
||||
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"bitmaps",
|
||||
bitmaps_module_documentation,
|
||||
|
@ -50,7 +50,8 @@ box_create(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef box_methods[] = {
|
||||
static struct PyMethodDef box_methods[] =
|
||||
{
|
||||
{"create", box_create, 1, box_create__doc__},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
@ -63,7 +64,8 @@ static char box_module_documentation[] =
|
||||
;
|
||||
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"box", /* m_name */
|
||||
box_module_documentation, /* m_doc */
|
||||
|
@ -427,7 +427,8 @@ browser_set_specialkey(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef browser_methods[] = {
|
||||
static struct PyMethodDef browser_methods[] =
|
||||
{
|
||||
{"create", browser_create, 1, browser_create__doc__},
|
||||
{"add_line", browser_add_line, 1, browser_add_line__doc__},
|
||||
{"addto", browser_addto, 1, browser_addto__doc__},
|
||||
@ -460,7 +461,8 @@ static char browser_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"browser", /* m_name */
|
||||
browser_module_documentation, /* m_doc */
|
||||
|
@ -316,7 +316,8 @@ button_create_generic(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef button_methods[] = {
|
||||
static struct PyMethodDef button_methods[] =
|
||||
{
|
||||
{"create", button_create, 1, button_create__doc__},
|
||||
{"create_round", button_create_round, 1, button_create_round__doc__},
|
||||
{"create_light", button_create_light, 1, button_create_light__doc__},
|
||||
@ -344,7 +345,8 @@ static char button_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"button", /* m_name */
|
||||
button_module_documentation, /* m_doc */
|
||||
|
@ -293,7 +293,8 @@ choice_set_item_shortcut(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef choice_methods[] = {
|
||||
static struct PyMethodDef choice_methods[] =
|
||||
{
|
||||
{"create", choice_create, 1, choice_create__doc__},
|
||||
{"clear", choice_clear, 1, choice_clear__doc__},
|
||||
{"addto", choice_addto, 1, choice_addto__doc__},
|
||||
@ -320,7 +321,8 @@ static char choice_module_documentation[] =
|
||||
;
|
||||
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"choice", /* m_name */
|
||||
choice_module_documentation, /* m_doc */
|
||||
|
@ -66,7 +66,8 @@ clock_get(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef clock_methods[] = {
|
||||
static struct PyMethodDef clock_methods[] =
|
||||
{
|
||||
{"create", clock_create, 1, clock_create__doc__},
|
||||
{"get", clock_get, 1, clock_get__doc__},
|
||||
|
||||
@ -80,7 +81,8 @@ static char clock_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"clock", /* m_name */
|
||||
clock_module_documentation, /* m_doc */
|
||||
|
@ -161,7 +161,8 @@ counter_set_return(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef counter_methods[] = {
|
||||
static struct PyMethodDef counter_methods[] =
|
||||
{
|
||||
{"create", counter_create, 1, counter_create__doc__},
|
||||
{"set_value", counter_set_value, 1, counter_set_value__doc__},
|
||||
{"set_bounds", counter_set_bounds, 1, counter_set_bounds__doc__},
|
||||
@ -179,7 +180,8 @@ static struct PyMethodDef counter_methods[] = {
|
||||
static char counter_module_documentation[] =
|
||||
""
|
||||
;
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"counter", /* m_name */
|
||||
counter_module_documentation, /* m_doc */
|
||||
|
@ -160,7 +160,8 @@ dial_set_return(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef dial_methods[] = {
|
||||
static struct PyMethodDef dial_methods[] =
|
||||
{
|
||||
{"create", dial_create, 1, dial_create__doc__},
|
||||
{"set_value", dial_set_value, 1, dial_set_value__doc__},
|
||||
{"get_value", dial_get_value, 1, dial_get_value__doc__},
|
||||
@ -179,7 +180,8 @@ static char dial_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"dial", /* m_name */
|
||||
dial_module_documentation, /* m_doc */
|
||||
|
@ -620,7 +620,8 @@ PyObject *args;
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef forms_methods[] = {
|
||||
static struct PyMethodDef forms_methods[] =
|
||||
{
|
||||
{ "create", forms_create, 1, forms_create__doc__ },
|
||||
{ "freeze", forms_freeze, 1, forms_freeze__doc__ },
|
||||
{ "unfreeze", forms_unfreeze, 1, forms_unfreeze__doc__ },
|
||||
@ -666,7 +667,8 @@ static char forms_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"forms", /* m_name */
|
||||
forms_module_documentation, /* m_doc */
|
||||
|
@ -48,7 +48,8 @@ frame_create(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef frame_methods[] = {
|
||||
static struct PyMethodDef frame_methods[] =
|
||||
{
|
||||
{"create", frame_create, 1, frame_create__doc__},
|
||||
|
||||
{NULL, NULL} /* sentinel */
|
||||
@ -61,7 +62,8 @@ static char frame_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"frame", /* m_name */
|
||||
frame_module_documentation, /* m_doc */
|
||||
|
@ -437,7 +437,8 @@ goodies_hide_fselector(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef goodies_methods[] = {
|
||||
static struct PyMethodDef goodies_methods[] =
|
||||
{
|
||||
{"set_font", goodies_set_font, 1, goodies_set_font__doc__},
|
||||
{"show_message", goodies_show_message, 1, goodies_show_message__doc__},
|
||||
{"show_alert", goodies_show_alert, 1, goodies_show_alert__doc__},
|
||||
@ -473,7 +474,8 @@ static struct PyMethodDef goodies_methods[] = {
|
||||
static char goodies_module_documentation[] =
|
||||
""
|
||||
;
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"goodies", /* m_name */
|
||||
goodies_module_documentation, /* m_doc */
|
||||
|
@ -199,7 +199,8 @@ input_set_selected_range(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef input_methods[] = {
|
||||
static struct PyMethodDef input_methods[] =
|
||||
{
|
||||
{"create", input_create, 1, input_create__doc__},
|
||||
{"set", input_set, 1, input_set__doc__},
|
||||
{"set_color", input_set_color, 1, input_set_color__doc__},
|
||||
@ -220,7 +221,8 @@ static char input_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"input", /* m_name */
|
||||
input_module_documentation, /* m_doc */
|
||||
|
@ -256,7 +256,8 @@ menu_get_text(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef menu_methods[] = {
|
||||
static struct PyMethodDef menu_methods[] =
|
||||
{
|
||||
{"create", menu_create, 1, menu_create__doc__},
|
||||
{"clear", menu_clear, 1, menu_clear__doc__},
|
||||
{"set", menu_set, 1, menu_set__doc__},
|
||||
@ -280,7 +281,8 @@ static char menu_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"menu", /* m_name */
|
||||
menu_module_documentation, /* m_doc */
|
||||
|
@ -452,7 +452,8 @@ obj_get_geometry(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef obj_methods[] = {
|
||||
static struct PyMethodDef obj_methods[] =
|
||||
{
|
||||
{"set_boxtype", obj_set_boxtype, 1, obj_set_boxtype__doc__},
|
||||
{"set_bw", obj_set_bw, 1, obj_set_bw__doc__},
|
||||
{"set_resize", obj_set_resize, 1, obj_set_resize__doc__},
|
||||
@ -487,7 +488,8 @@ static struct PyMethodDef obj_methods[] = {
|
||||
static char objects_module_documentation[] =
|
||||
""
|
||||
;
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"objects", /* m_name */
|
||||
objects_module_documentation, /* m_doc */
|
||||
|
@ -89,7 +89,8 @@ pmp_set_file(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef pmp_methods[] = {
|
||||
static struct PyMethodDef pmp_methods[] =
|
||||
{
|
||||
{"create", pmp_create, 1, pmp_create__doc__},
|
||||
{"set_data", pmp_set_data, 1, pmp_set_data__doc__},
|
||||
{"set_file", pmp_set_file, 1, pmp_set_file__doc__},
|
||||
@ -104,7 +105,8 @@ static char pixmaps_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"pixmaps", /* m_name */
|
||||
pixmaps_module_documentation, /* m_doc */
|
||||
|
@ -318,7 +318,8 @@ pup_set_submenu(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef pup_methods[] = {
|
||||
static struct PyMethodDef pup_methods[] =
|
||||
{
|
||||
{"new", pup_new, 1, pup_new__doc__},
|
||||
{"def", pup_def, 1, pup_def__doc__},
|
||||
{"addto", pup_addto, 1, pup_addto__doc__},
|
||||
@ -347,7 +348,8 @@ static struct PyMethodDef pup_methods[] = {
|
||||
static char popups_module_documentation[] =
|
||||
""
|
||||
;
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"popups", /* m_name */
|
||||
popups_module_documentation, /* m_doc */
|
||||
|
@ -256,7 +256,8 @@ posit_set_return(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef posit_methods[] = {
|
||||
static struct PyMethodDef posit_methods[] =
|
||||
{
|
||||
{"create", posit_create, 1, posit_create__doc__},
|
||||
{"set_xvalue", posit_set_xvalue, 1, posit_set_xvalue__doc__},
|
||||
{"get_xvalue", posit_get_xvalue, 1, posit_get_xvalue__doc__},
|
||||
@ -279,7 +280,8 @@ static struct PyMethodDef posit_methods[] = {
|
||||
static char positioner_module_documentation[] =
|
||||
""
|
||||
;
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"positioner", /* m_name */
|
||||
positioner_module_documentation, /* m_doc */
|
||||
|
@ -219,7 +219,8 @@ slider_set_precision(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef slider_methods[] = {
|
||||
static struct PyMethodDef slider_methods[] =
|
||||
{
|
||||
{"create", slider_create, 1, slider_create__doc__},
|
||||
{"create_val", slider_create_val, 1, slider_create_val__doc__},
|
||||
{"set_value", slider_set_value, 1, slider_set_value__doc__},
|
||||
@ -240,7 +241,8 @@ static struct PyMethodDef slider_methods[] = {
|
||||
static char slider_module_documentation[] =
|
||||
""
|
||||
;
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"slider", /* m_name */
|
||||
slider_module_documentation, /* m_doc */
|
||||
|
@ -46,7 +46,8 @@ text_create(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef text_methods[] = {
|
||||
static struct PyMethodDef text_methods[] =
|
||||
{
|
||||
{"create", text_create, 1, text_create__doc__},
|
||||
|
||||
{NULL, NULL} /* sentinel */
|
||||
@ -59,7 +60,8 @@ static char text_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"text", /* m_name */
|
||||
text_module_documentation, /* m_doc */
|
||||
|
@ -85,7 +85,8 @@ timer_get(self, args)
|
||||
|
||||
/* List of methods defined in the module */
|
||||
|
||||
static struct PyMethodDef timer_methods[] = {
|
||||
static struct PyMethodDef timer_methods[] =
|
||||
{
|
||||
{"create", fl_timer_create, 1, timer_create__doc__},
|
||||
{"set", timer_set, 1, timer_set__doc__},
|
||||
{"get", timer_get, 1, timer_get__doc__},
|
||||
@ -100,7 +101,8 @@ static char timer_module_documentation[] =
|
||||
""
|
||||
;
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"timer", /* m_name */
|
||||
timer_module_documentation, /* m_doc */
|
||||
|
@ -58,7 +58,8 @@ pyxforms_do_forms(self,args)
|
||||
return Py_BuildValue("l",(long)obj);
|
||||
}
|
||||
|
||||
static PyMethodDef xformsMethods [] ={
|
||||
static PyMethodDef xformsMethods [] =
|
||||
{
|
||||
|
||||
/* XForms specifics */
|
||||
{"init",pyxforms_init,1},
|
||||
@ -68,7 +69,8 @@ static PyMethodDef xformsMethods [] ={
|
||||
};
|
||||
|
||||
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"xforms", /* m_name */
|
||||
"", /* m_doc */
|
||||
|
@ -417,7 +417,8 @@ static struct PyMethodDef xyplot_methods[] =
|
||||
static char xyplot_module_documentation[] =
|
||||
""
|
||||
;
|
||||
static struct PyModuleDef moduledef = {
|
||||
static struct PyModuleDef moduledef =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"xyplot", /* m_name */
|
||||
xyplot_module_documentation, /* m_doc */
|
||||
|
Loading…
x
Reference in New Issue
Block a user