summaryrefslogtreecommitdiffstats
path: root/Modules/tkappinit.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-01-14 17:36:36 (GMT)
committerBarry Warsaw <barry@python.org>1997-01-14 17:36:36 (GMT)
commit845a4c6bb7b1ffd5f98c473914cb558e9795d3cb (patch)
treebc128c2621a66eadca7126dc51c10b2064cc1b0c /Modules/tkappinit.c
parent41317d120dacd2e02789fab4ff0d3d968a4e2f8c (diff)
downloadcpython-845a4c6bb7b1ffd5f98c473914cb558e9795d3cb.zip
cpython-845a4c6bb7b1ffd5f98c473914cb558e9795d3cb.tar.gz
cpython-845a4c6bb7b1ffd5f98c473914cb558e9795d3cb.tar.bz2
Formatting.
Diffstat (limited to 'Modules/tkappinit.c')
-rw-r--r--Modules/tkappinit.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/Modules/tkappinit.c b/Modules/tkappinit.c
index daff9e5..0821760 100644
--- a/Modules/tkappinit.c
+++ b/Modules/tkappinit.c
@@ -5,32 +5,31 @@
int
Tcl_AppInit (interp)
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
{
- Tk_Window main;
+ Tk_Window main;
- main = Tk_MainWindow(interp);
+ main = Tk_MainWindow(interp);
- if (Tcl_Init (interp) == TCL_ERROR)
- return TCL_ERROR;
- if (Tk_Init (interp) == TCL_ERROR)
- return TCL_ERROR;
+ if (Tcl_Init (interp) == TCL_ERROR)
+ return TCL_ERROR;
+ if (Tk_Init (interp) == TCL_ERROR)
+ return TCL_ERROR;
#ifdef WITH_MOREBUTTONS
- {
- extern Tcl_CmdProc studButtonCmd;
- extern Tcl_CmdProc triButtonCmd;
-
- Tcl_CreateCommand(interp, "studbutton", studButtonCmd,
- (ClientData) main, NULL);
- Tcl_CreateCommand(interp, "tributton", triButtonCmd,
- (ClientData) main, NULL);
- }
+ {
+ extern Tcl_CmdProc studButtonCmd;
+ extern Tcl_CmdProc triButtonCmd;
+
+ Tcl_CreateCommand(interp, "studbutton", studButtonCmd,
+ (ClientData) main, NULL);
+ Tcl_CreateCommand(interp, "tributton", triButtonCmd,
+ (ClientData) main, NULL);
+ }
#endif
#ifdef WITH_XXX
#endif
-
- return TCL_OK;
+ return TCL_OK;
}