summaryrefslogtreecommitdiffstats
path: root/generic/tkGeometry.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-02-12 21:57:44 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-02-12 21:57:44 (GMT)
commitb0f0d7b1e5ffca657a24ab32367ec9553ae2c505 (patch)
tree10e9422c7c74475303cc2dffa6e3bc21e0e60232 /generic/tkGeometry.c
parent080368e301144ffcfbf9aedc32149a0d340a3ad9 (diff)
downloadtk-b0f0d7b1e5ffca657a24ab32367ec9553ae2c505.zip
tk-b0f0d7b1e5ffca657a24ab32367ec9553ae2c505.tar.gz
tk-b0f0d7b1e5ffca657a24ab32367ec9553ae2c505.tar.bz2
Fix minor K&R-ism
Diffstat (limited to 'generic/tkGeometry.c')
-rw-r--r--generic/tkGeometry.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/generic/tkGeometry.c b/generic/tkGeometry.c
index 3f42def..f7e42c3 100644
--- a/generic/tkGeometry.c
+++ b/generic/tkGeometry.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkGeometry.c,v 1.9 2007/01/19 00:36:45 das Exp $
+ * RCS: @(#) $Id: tkGeometry.c,v 1.10 2007/02/12 21:57:44 dkf Exp $
*/
#include "tkPort.h"
@@ -84,13 +84,13 @@ static void MaintainSlaveProc(ClientData clientData,
*/
void
-Tk_ManageGeometry(tkwin, mgrPtr, clientData)
- Tk_Window tkwin; /* Window whose geometry is to be managed by
+Tk_ManageGeometry(
+ Tk_Window tkwin, /* Window whose geometry is to be managed by
* proc. */
- CONST Tk_GeomMgr *mgrPtr; /* Static structure describing the geometry
+ CONST Tk_GeomMgr *mgrPtr, /* Static structure describing the geometry
* manager. This structure must never go
* away. */
- ClientData clientData; /* Arbitrary one-word argument to pass to
+ ClientData clientData) /* Arbitrary one-word argument to pass to
* geometry manager procedures. */
{
register TkWindow *winPtr = (TkWindow *) tkwin;
@@ -129,10 +129,10 @@ Tk_ManageGeometry(tkwin, mgrPtr, clientData)
*/
void
-Tk_GeometryRequest(tkwin, reqWidth, reqHeight)
- Tk_Window tkwin; /* Window that geometry information pertains
+Tk_GeometryRequest(
+ Tk_Window tkwin, /* Window that geometry information pertains
* to. */
- int reqWidth, reqHeight; /* Minimum desired dimensions for window, in
+ int reqWidth, int reqHeight)/* Minimum desired dimensions for window, in
* pixels. */
{
register TkWindow *winPtr = (TkWindow *) tkwin;
@@ -180,10 +180,10 @@ Tk_GeometryRequest(tkwin, reqWidth, reqHeight)
*/
void
-Tk_SetInternalBorderEx(tkwin, left, right, top, bottom)
- Tk_Window tkwin; /* Window that will have internal border. */
- int left, right; /* Width of internal border, in pixels. */
- int top, bottom;
+Tk_SetInternalBorderEx(
+ Tk_Window tkwin, /* Window that will have internal border. */
+ int left, int right, /* Width of internal border, in pixels. */
+ int top, int bottom)
{
register TkWindow *winPtr = (TkWindow *) tkwin;
register int changed = 0;
@@ -253,9 +253,9 @@ Tk_SetInternalBorderEx(tkwin, left, right, top, bottom)
*/
void
-Tk_SetInternalBorder(tkwin, width)
- Tk_Window tkwin; /* Window that will have internal border. */
- int width; /* Width of internal border, in pixels. */
+Tk_SetInternalBorder(
+ Tk_Window tkwin, /* Window that will have internal border. */
+ int width) /* Width of internal border, in pixels. */
{
Tk_SetInternalBorderEx(tkwin, width, width, width, width);
}
@@ -279,9 +279,9 @@ Tk_SetInternalBorder(tkwin, width)
*/
void
-Tk_SetMinimumRequestSize(tkwin, minWidth, minHeight)
- Tk_Window tkwin; /* Window that will have internal border. */
- int minWidth, minHeight; /* Minimum requested size, in pixels. */
+Tk_SetMinimumRequestSize(
+ Tk_Window tkwin, /* Window that will have internal border. */
+ int minWidth, int minHeight)/* Minimum requested size, in pixels. */
{
register TkWindow *winPtr = (TkWindow *) tkwin;
@@ -332,12 +332,12 @@ Tk_SetMinimumRequestSize(tkwin, minWidth, minHeight)
*/
void
-Tk_MaintainGeometry(slave, master, x, y, width, height)
- Tk_Window slave; /* Slave for geometry management. */
- Tk_Window master; /* Master for slave; must be a descendant of
+Tk_MaintainGeometry(
+ Tk_Window slave, /* Slave for geometry management. */
+ Tk_Window master, /* Master for slave; must be a descendant of
* slave's parent. */
- int x, y; /* Desired position of slave within master. */
- int width, height; /* Desired dimensions for slave. */
+ int x, int y, /* Desired position of slave within master. */
+ int width, int height) /* Desired dimensions for slave. */
{
Tcl_HashEntry *hPtr;
MaintainMaster *masterPtr;
@@ -480,9 +480,9 @@ Tk_MaintainGeometry(slave, master, x, y, width, height)
*/
void
-Tk_UnmaintainGeometry(slave, master)
- Tk_Window slave; /* Slave for geometry management. */
- Tk_Window master; /* Master for slave; must be a descendant of
+Tk_UnmaintainGeometry(
+ Tk_Window slave, /* Slave for geometry management. */
+ Tk_Window master) /* Master for slave; must be a descendant of
* slave's parent. */
{
Tcl_HashEntry *hPtr;
@@ -571,10 +571,10 @@ Tk_UnmaintainGeometry(slave, master)
*/
static void
-MaintainMasterProc(clientData, eventPtr)
- ClientData clientData; /* Pointer to MaintainMaster structure for the
+MaintainMasterProc(
+ ClientData clientData, /* Pointer to MaintainMaster structure for the
* master window. */
- XEvent *eventPtr; /* Describes what just happened. */
+ XEvent *eventPtr) /* Describes what just happened. */
{
MaintainMaster *masterPtr = (MaintainMaster *) clientData;
MaintainSlave *slavePtr;
@@ -625,10 +625,10 @@ MaintainMasterProc(clientData, eventPtr)
*/
static void
-MaintainSlaveProc(clientData, eventPtr)
- ClientData clientData; /* Pointer to MaintainSlave structure for
+MaintainSlaveProc(
+ ClientData clientData, /* Pointer to MaintainSlave structure for
* master-slave pair. */
- XEvent *eventPtr; /* Describes what just happened. */
+ XEvent *eventPtr) /* Describes what just happened. */
{
MaintainSlave *slavePtr = (MaintainSlave *) clientData;
@@ -658,8 +658,8 @@ MaintainSlaveProc(clientData, eventPtr)
*/
static void
-MaintainCheckProc(clientData)
- ClientData clientData; /* Pointer to MaintainMaster structure for the
+MaintainCheckProc(
+ ClientData clientData) /* Pointer to MaintainMaster structure for the
* master window. */
{
MaintainMaster *masterPtr = (MaintainMaster *) clientData;