summaryrefslogtreecommitdiffstats
path: root/generic/tkTextMark.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-02-22 13:56:32 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-02-22 13:56:32 (GMT)
commitdde89e53698859ca30c7ef441d2b64350d2a8187 (patch)
treed27aec929ff20b2ab6ba34faa14bd56439bf1d33 /generic/tkTextMark.c
parent18bcf9971777b9bf6d2eacd064c42f0f7e58ae47 (diff)
downloadtk-dde89e53698859ca30c7ef441d2b64350d2a8187.zip
tk-dde89e53698859ca30c7ef441d2b64350d2a8187.tar.gz
tk-dde89e53698859ca30c7ef441d2b64350d2a8187.tar.bz2
Less of that K&R or wrongly indented function header style!
Diffstat (limited to 'generic/tkTextMark.c')
-rw-r--r--generic/tkTextMark.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/generic/tkTextMark.c b/generic/tkTextMark.c
index e386c0a..d1b5b87 100644
--- a/generic/tkTextMark.c
+++ b/generic/tkTextMark.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: tkTextMark.c,v 1.17 2007/01/18 23:20:37 nijtmans Exp $
+ * RCS: @(#) $Id: tkTextMark.c,v 1.18 2007/02/22 13:56:33 dkf Exp $
*/
#include "tkInt.h"
@@ -47,10 +47,9 @@ static int MarkFindPrev(Tcl_Interp *interp,
/*
- * The following structures declare the "mark" segment types.
- * There are actually two types for marks, one with left gravity
- * and one with right gravity. They are identical except for
- * their gravity property.
+ * The following structures declare the "mark" segment types. There are
+ * actually two types for marks, one with left gravity and one with right
+ * gravity. They are identical except for their gravity property.
*/
const Tk_SegType tkTextRightMarkType = {
@@ -107,16 +106,13 @@ TkTextMarkCmd(
Tcl_HashSearch search;
TkTextIndex index;
const Tk_SegType *newTypePtr;
-
int optionIndex;
-
static const char *markOptionStrings[] = {
- "gravity", "names", "next", "previous", "set",
- "unset", NULL
+ "gravity", "names", "next", "previous", "set", "unset", NULL
};
enum markOptions {
- MARK_GRAVITY, MARK_NAMES, MARK_NEXT, MARK_PREVIOUS,
- MARK_SET, MARK_UNSET
+ MARK_GRAVITY, MARK_NAMES, MARK_NEXT, MARK_PREVIOUS, MARK_SET,
+ MARK_UNSET
};
if (objc < 3) {
@@ -128,7 +124,7 @@ TkTextMarkCmd(
return TCL_ERROR;
}
- switch ((enum markOptions)optionIndex) {
+ switch ((enum markOptions) optionIndex) {
case MARK_GRAVITY: {
char c;
int length;
@@ -267,8 +263,7 @@ TkTextSetMark(
Tcl_HashEntry *hPtr = NULL;
TkTextSegment *markPtr;
TkTextIndex insertIndex;
- int isNew;
- int widgetSpecific;
+ int isNew, widgetSpecific;
if (!strcmp(name, "insert")) {
widgetSpecific = 1;
@@ -506,7 +501,6 @@ MarkCleanupProc(
*--------------------------------------------------------------
*/
- /*ARGSUSED*/
static int
MarkLayoutProc(
TkText *textPtr, /* Text widget being layed out. */