summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-14 16:33:16 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-14 16:33:16 -0400
commitd9ff063428adeb7139ee2eb1a96c8fb6263bac12 (patch)
treea2fb49e8b92b85213d6d0dd5de4321f0a8f507af /src
parent04bb8d633f922e12f76b17de5b876320b0fe3b69 (diff)
remove the ARGUSED lines, which confuse GNU indent, ditto for LINTLIBRARY
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-rw-r--r--src/ActionHook.c2
-rw-r--r--src/Callback.c1
-rw-r--r--src/Composite.c1
-rw-r--r--src/Convert.c2
-rw-r--r--src/Core.c4
-rw-r--r--src/Create.c1
-rw-r--r--src/Event.c2
-rw-r--r--src/TMaction.c3
-rw-r--r--src/TMparse.c10
-rw-r--r--src/TMprint.c4
-rw-r--r--src/TMstate.c30
11 files changed, 16 insertions, 44 deletions
diff --git a/src/ActionHook.c b/src/ActionHook.c
index bb81929..45e4cfb 100644
--- a/src/ActionHook.c
+++ b/src/ActionHook.c
@@ -1,4 +1,3 @@
- /*LINTLIBRARY*/
/***********************************************************
Copyright (c) 1993, Oracle and/or its affiliates. All rights reserved.
@@ -75,7 +74,6 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "IntrinsicI.h"
-/*ARGSUSED*/
static void
FreeActionHookList(Widget widget _X_UNUSED,
XtPointer closure, /* ActionHook* */
diff --git a/src/Callback.c b/src/Callback.c
index b1c9d7f..bd384d9 100644
--- a/src/Callback.c
+++ b/src/Callback.c
@@ -195,7 +195,6 @@ XtAddCallback(Widget widget,
UNLOCK_APP(app);
} /* XtAddCallback */
-/* ARGSUSED */
static void
AddCallbacks(Widget widget _X_UNUSED,
InternalCallbackList * callbacks,
diff --git a/src/Composite.c b/src/Composite.c
index 5f4274a..5f1c345 100644
--- a/src/Composite.c
+++ b/src/Composite.c
@@ -287,7 +287,6 @@ CompositeDeleteChild(Widget w)
}
}
-/* ARGSUSED */
static void
CompositeInitialize(Widget requested_widget _X_UNUSED,
Widget new_widget,
diff --git a/src/Convert.c b/src/Convert.c
index 2647434..e95ccb0 100644
--- a/src/Convert.c
+++ b/src/Convert.c
@@ -1103,7 +1103,6 @@ XtAppReleaseCacheRefs(XtAppContext app, XtCacheRef * refs)
UNLOCK_APP(app);
}
-/* ARGSUSED */
void
XtCallbackReleaseCacheRefList(Widget widget,
XtPointer closure,
@@ -1114,7 +1113,6 @@ XtCallbackReleaseCacheRefList(Widget widget,
XtFree(closure);
}
-/* ARGSUSED */
void
XtCallbackReleaseCacheRef(Widget widget,
XtPointer closure,
diff --git a/src/Core.c b/src/Core.c
index 201a601..bdbd2c8 100644
--- a/src/Core.c
+++ b/src/Core.c
@@ -223,7 +223,6 @@ WidgetClass widgetClass = &widgetClassRec;
externaldef(WidgetClass)
WidgetClass coreWidgetClass = &widgetClassRec;
-/*ARGSUSED*/
static void
XtCopyScreen(Widget widget, int offset _X_UNUSED, XrmValue *value)
{
@@ -282,7 +281,6 @@ CoreClassPartInitialize(register WidgetClass wc)
UNLOCK_PROCESS;
}
-/* ARGSUSED */
static void
CoreInitialize(Widget requested_widget _X_UNUSED,
register Widget new_widget,
@@ -329,7 +327,6 @@ CoreDestroy(Widget widget)
} /* CoreDestroy */
-/* ARGSUSED */
static Boolean
CoreSetValues(Widget old,
Widget reference _X_UNUSED,
@@ -414,7 +411,6 @@ CoreSetValues(Widget old,
return redisplay;
} /* CoreSetValues */
-/*ARGSUSED*/
static void
CoreSetValuesAlmost(Widget old _X_UNUSED,
Widget new _X_UNUSED,
diff --git a/src/Create.c b/src/Create.c
index b5d909a..952c1d5 100644
--- a/src/Create.c
+++ b/src/Create.c
@@ -741,7 +741,6 @@ XtAppCreateShell(_Xconst char *name,
return retval;
}
-/* ARGSUSED */
Widget
XtCreateApplicationShell(_Xconst char *name _X_UNUSED,
WidgetClass widget_class,
diff --git a/src/Event.c b/src/Event.c
index ea1ab40..2c3b73c 100644
--- a/src/Event.c
+++ b/src/Event.c
@@ -1165,7 +1165,6 @@ SendExposureEvent(XEvent *event, Widget widget, XtPerDisplay pd)
* and GraphicsExpose.
*/
-/* ARGSUSED */
static Bool
CheckExposureEvent(Display *disp _X_UNUSED, XEvent *event, char *arg)
{
@@ -1505,7 +1504,6 @@ XtDispatchEvent(XEvent *event)
return was_dispatched;
}
-/* ARGSUSED */
static void
GrabDestroyCallback(Widget widget,
XtPointer closure _X_UNUSED,
diff --git a/src/TMaction.c b/src/TMaction.c
index b4c522b..8b0b750 100644
--- a/src/TMaction.c
+++ b/src/TMaction.c
@@ -521,7 +521,6 @@ RemoveFromBindCache(Widget w, XtActionProc * procs)
UNLOCK_PROCESS;
}
-/* ARGSUSED */
static void
RemoveAccelerators(Widget widget, XtPointer closure, XtPointer data _X_UNUSED)
{
@@ -854,7 +853,7 @@ XtMenuPopupAction(Widget widget,
UNLOCK_APP(app);
}
- /*ARGSUSED*/ static void
+static void
_XtMenuPopdownAction(Widget widget,
XEvent *event _X_UNUSED,
String * params,
diff --git a/src/TMparse.c b/src/TMparse.c
index a3b32fd..02642bc 100644
--- a/src/TMparse.c
+++ b/src/TMparse.c
@@ -900,7 +900,6 @@ StringToKeySym(String str, Boolean * error)
return NoSymbol;
}
-/* ARGSUSED */
static void
ParseModImmed(Value value,
LateBindingsPtr * lateBindings _X_UNUSED,
@@ -936,7 +935,6 @@ static String stupid_optimizer_kludge;
#define BROKEN_OPTIMIZER_HACK(val) val
#endif
-/* ARGSUSED */
static String
ParseImmed(register String str,
register Opaque closure,
@@ -949,7 +947,6 @@ ParseImmed(register String str,
return BROKEN_OPTIMIZER_HACK(str);
}
-/* ARGSUSED */
static String
ParseAddModifier(register String str,
register Opaque closure,
@@ -985,7 +982,6 @@ ParseKeyAndModifiers(String str,
return str;
}
-/*ARGSUSED*/
static String
ParseKeySym(register String str,
Opaque closure _X_UNUSED,
@@ -1087,7 +1083,7 @@ ParseTable(register String str, Opaque closure, EventPtr event, Boolean * error)
return PanicModeRecovery(str);
}
- /*ARGSUSED*/ static String
+static String
ParseNone(String str,
Opaque closure _X_UNUSED,
EventPtr event,
@@ -1099,7 +1095,7 @@ ParseNone(String str,
return BROKEN_OPTIMIZER_HACK(str);
}
- /*ARGSUSED*/ static String
+static String
ParseAtom(String str, Opaque closure _X_UNUSED, EventPtr event, Boolean * error)
{
ScanWhitespace(str);
@@ -2022,7 +2018,6 @@ ParseTranslationTable(String source,
/*** public procedures ***/
-/*ARGSUSED*/
Boolean
XtCvtStringToAcceleratorTable(Display *dpy,
XrmValuePtr args _X_UNUSED,
@@ -2076,7 +2071,6 @@ XtCvtStringToAcceleratorTable(Display *dpy,
return (error != TRUE);
}
-/*ARGSUSED*/
Boolean
XtCvtStringToTranslationTable(Display *dpy,
XrmValuePtr args _X_UNUSED,
diff --git a/src/TMprint.c b/src/TMprint.c
index 0fba0e4..53a5ca0 100644
--- a/src/TMprint.c
+++ b/src/TMprint.c
@@ -68,7 +68,6 @@ in this Software without prior written authorization from The Open Group.
*/
-/*LINTLIBRARY*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -725,7 +724,6 @@ _XtPrintXlations(Widget w,
}
#ifndef NO_MIT_HACKS
-/*ARGSUSED*/
void
_XtDisplayTranslations(Widget widget,
XEvent *event _X_UNUSED,
@@ -742,7 +740,6 @@ _XtDisplayTranslations(Widget widget,
}
}
-/*ARGSUSED*/
void
_XtDisplayAccelerators(Widget widget,
XEvent *event _X_UNUSED,
@@ -758,7 +755,6 @@ _XtDisplayAccelerators(Widget widget,
}
}
-/*ARGSUSED*/
void
_XtDisplayInstalledAccelerators(Widget widget,
XEvent *event,
diff --git a/src/TMstate.c b/src/TMstate.c
index c9871c5..7133c61 100644
--- a/src/TMstate.c
+++ b/src/TMstate.c
@@ -71,7 +71,6 @@ in this Software without prior written authorization from The Open Group.
/* TMstate.c -- maintains the state table of actions for the translation
* manager.
*/
- /*LINTLIBRARY*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -215,7 +214,7 @@ _XtGetQuarkIndex(TMParseStateTree parseTree, XrmQuark quark)
* Get an entry from the parseTrees complex branchHead tbl. If there's none
* there then allocate one
*/
- /*ARGSUSED*/ static TMShortCard
+static TMShortCard
GetComplexBranchIndex(TMParseStateTree parseTree,
TMShortCard typeIndex _X_UNUSED,
TMShortCard modIndex _X_UNUSED)
@@ -469,7 +468,6 @@ _XtRegularMatch(TMTypeMatch typeMatch,
(eventSeq->event.modifiers & computedMask));
}
-/*ARGSUSED*/
Boolean
_XtMatchAtom(TMTypeMatch typeMatch,
TMModifierMatch modMatch _X_UNUSED,
@@ -1080,7 +1078,7 @@ _XtTranslateEvent(Widget w, XEvent *event)
HandleComplexState(w, tmRecPtr, &curEvent);
}
- /*ARGSUSED*/ static StatePtr
+static StatePtr
NewState(TMParseStateTree stateTree _X_UNUSED,
TMShortCard typeIndex,
TMShortCard modIndex)
@@ -1186,7 +1184,7 @@ EventToMask(TMTypeMatch typeMatch, TMModifierMatch modMatch)
return returnMask;
}
- /*ARGSUSED*/ static void
+static void
DispatchMappingNotify(Widget widget _X_UNUSED, /* will be NULL from _RefreshMapping */
XtPointer closure, /* real Widget */
XtPointer call_data) /* XEvent* */
@@ -1194,7 +1192,7 @@ DispatchMappingNotify(Widget widget _X_UNUSED, /* will be NULL from _RefreshMap
_XtTranslateEvent((Widget) closure, (XEvent *) call_data);
}
- /*ARGSUSED*/ static void
+static void
RemoveFromMappingCallbacks(Widget widget,
XtPointer closure, /* target widget */
XtPointer call_data _X_UNUSED)
@@ -1469,7 +1467,7 @@ FreeActions(ActionPtr actions)
}
}
- /*ARGSUSED*/ static void
+static void
AmbigActions(EventSeqPtr initialEvent,
StatePtr * state,
TMParseStateTree stateTree)
@@ -1596,14 +1594,13 @@ _XtAddEventSeqToStateTree(EventSeqPtr eventSeq, TMParseStateTree stateTree)
/*
* Internal Converter for merging. Old and New must both be valid xlations
*/
-
- /*ARGSUSED*/
- Boolean _XtCvtMergeTranslations(Display *dpy _X_UNUSED,
- XrmValuePtr args _X_UNUSED,
- Cardinal * num_args,
- XrmValuePtr from,
- XrmValuePtr to,
- XtPointer * closure_ret _X_UNUSED)
+Boolean
+_XtCvtMergeTranslations(Display *dpy _X_UNUSED,
+ XrmValuePtr args _X_UNUSED,
+ Cardinal * num_args,
+ XrmValuePtr from,
+ XrmValuePtr to,
+ XtPointer * closure_ret _X_UNUSED)
{
XtTranslations first, second, xlations;
TMStateTree *stateTrees, stackStateTrees[16];
@@ -2083,7 +2080,7 @@ _XtGetTranslationValue(Widget w)
}
}
- /*ARGSUSED*/ static void
+static void
RemoveStateTree(TMStateTree tree _X_UNUSED)
{
#ifdef REFCNT_TRANSLATIONS
@@ -2130,7 +2127,6 @@ _XtRemoveStateTreeByIndex(XtTranslations xlations, TMShortCard i)
}
}
-/* ARGSUSED */
void
_XtFreeTranslations(XtAppContext app,
XrmValuePtr toVal,