mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtwm: remove register keyword
This commit is contained in:
parent
2d7c1db6fc
commit
c1227cc629
13 changed files with 38 additions and 38 deletions
|
@ -325,8 +325,8 @@ ClockTick(
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
time_t time_value;
|
time_t time_value;
|
||||||
char * time_ptr;
|
char * time_ptr;
|
||||||
register Display * dpy = XtDisplay (w);
|
Display * dpy = XtDisplay (w);
|
||||||
register Window win = XtWindow (w);
|
Window win = XtWindow (w);
|
||||||
|
|
||||||
if (id || !w->clock.interval_id)
|
if (id || !w->clock.interval_id)
|
||||||
w->clock.interval_id =
|
w->clock.interval_id =
|
||||||
|
@ -508,8 +508,8 @@ DrawHand(
|
||||||
Dimension width,
|
Dimension width,
|
||||||
double fraction_of_a_circle )
|
double fraction_of_a_circle )
|
||||||
{
|
{
|
||||||
register double angle, cosangle, sinangle;
|
double angle, cosangle, sinangle;
|
||||||
register double ws, wc;
|
double ws, wc;
|
||||||
Position x, y, x1, y1, x2, y2;
|
Position x, y, x1, y1, x2, y2;
|
||||||
double cos ();
|
double cos ();
|
||||||
double sin ();
|
double sin ();
|
||||||
|
@ -593,8 +593,8 @@ DrawClockFace(
|
||||||
Boolean draw_minute_ticks =
|
Boolean draw_minute_ticks =
|
||||||
((G_ClockWidth (g) > (Dimension) (2 * SIZE_DEFAULT)) &&
|
((G_ClockWidth (g) > (Dimension) (2 * SIZE_DEFAULT)) &&
|
||||||
(G_ClockHeight (g) > (Dimension) (2 * SIZE_DEFAULT)));
|
(G_ClockHeight (g) > (Dimension) (2 * SIZE_DEFAULT)));
|
||||||
register int i;
|
int i;
|
||||||
register int delta =
|
int delta =
|
||||||
(int)(g->clock.radius - g->clock.tick_spacing) / 3;
|
(int)(g->clock.radius - g->clock.tick_spacing) / 3;
|
||||||
|
|
||||||
if (! XtIsManaged ((Widget)g))
|
if (! XtIsManaged ((Widget)g))
|
||||||
|
|
|
@ -549,7 +549,7 @@ void
|
||||||
ProcessColormapList (WmScreenData *pSD, ClientData *pCD)
|
ProcessColormapList (WmScreenData *pSD, ClientData *pCD)
|
||||||
|
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
XEvent event;
|
XEvent event;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -724,7 +724,7 @@ static void CancelCB (Widget w, caddr_t client_data, caddr_t call_data)
|
||||||
void ConfirmAction (WmScreenData *pSD, int nbr)
|
void ConfirmAction (WmScreenData *pSD, int nbr)
|
||||||
{
|
{
|
||||||
Arg args[8];
|
Arg args[8];
|
||||||
register int n;
|
int n;
|
||||||
int x, y;
|
int x, y;
|
||||||
Dimension width, height;
|
Dimension width, height;
|
||||||
Widget dialogShellW = NULL;
|
Widget dialogShellW = NULL;
|
||||||
|
|
|
@ -3507,7 +3507,7 @@ F_Version (String args, ClientData *pCD, XEvent *event)
|
||||||
|
|
||||||
Boolean F_Send_Msg (String args, ClientData *pCD, XEvent *event)
|
Boolean F_Send_Msg (String args, ClientData *pCD, XEvent *event)
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
|
|
||||||
if (pCD && pCD->mwmMessagesCount)
|
if (pCD && pCD->mwmMessagesCount)
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
void BevelRectangle (RList *prTop, RList *prBot, int x, int y, unsigned int width, unsigned int height, unsigned int top_wid, unsigned int right_wid, unsigned int bot_wid, unsigned int left_wid)
|
void BevelRectangle (RList *prTop, RList *prBot, int x, int y, unsigned int width, unsigned int height, unsigned int top_wid, unsigned int right_wid, unsigned int bot_wid, unsigned int left_wid)
|
||||||
{
|
{
|
||||||
XRectangle *prect; /* pointer to "current" rectangle */
|
XRectangle *prect; /* pointer to "current" rectangle */
|
||||||
register int count; /* counter used for beveling operation */
|
int count; /* counter used for beveling operation */
|
||||||
int join1, join2; /* used to compute "good" bevel joints */
|
int join1, join2; /* used to compute "good" bevel joints */
|
||||||
int x1, y1, len; /* used to compute bevel parameters */
|
int x1, y1, len; /* used to compute bevel parameters */
|
||||||
int *piTop, *piBot;
|
int *piTop, *piBot;
|
||||||
|
@ -262,7 +262,7 @@ void BevelRectangle (RList *prTop, RList *prBot, int x, int y, unsigned int widt
|
||||||
void BevelDepressedRectangle (RList *prTop, RList *prBot, int x, int y, unsigned int width, unsigned int height, unsigned int top_wid, unsigned int right_wid, unsigned int bot_wid, unsigned int left_wid, unsigned int in_wid)
|
void BevelDepressedRectangle (RList *prTop, RList *prBot, int x, int y, unsigned int width, unsigned int height, unsigned int top_wid, unsigned int right_wid, unsigned int bot_wid, unsigned int left_wid, unsigned int in_wid)
|
||||||
{
|
{
|
||||||
XRectangle *prect; /* pointer to "current" rectangle */
|
XRectangle *prect; /* pointer to "current" rectangle */
|
||||||
register int count; /* counter used for beveling operation */
|
int count; /* counter used for beveling operation */
|
||||||
int join1, join2; /* used to compute "good" bevel joints */
|
int join1, join2; /* used to compute "good" bevel joints */
|
||||||
int x1, y1, len; /* used to compute bevel parameters */
|
int x1, y1, len; /* used to compute bevel parameters */
|
||||||
int *piTop, *piBot;
|
int *piTop, *piBot;
|
||||||
|
|
|
@ -908,7 +908,7 @@ _DtWmParseNextLine (
|
||||||
*
|
*
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
register unsigned char *string;
|
unsigned char *string;
|
||||||
int len;
|
int len;
|
||||||
int chlen;
|
int chlen;
|
||||||
wchar_t last;
|
wchar_t last;
|
||||||
|
|
|
@ -1497,9 +1497,9 @@ unsigned char *NextToken (unsigned char *pchIn, int *pLen,
|
||||||
unsigned char **ppchNext)
|
unsigned char **ppchNext)
|
||||||
{
|
{
|
||||||
unsigned char *pchR = pchIn;
|
unsigned char *pchR = pchIn;
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
register int chlen;
|
int chlen;
|
||||||
|
|
||||||
for (i = 0;
|
for (i = 0;
|
||||||
((chlen = mblen((char *)pchIn, MB_CUR_MAX)) > 0) && (pchIn[0] != '\0');
|
((chlen = mblen((char *)pchIn, MB_CUR_MAX)) > 0) && (pchIn[0] != '\0');
|
||||||
|
|
|
@ -2440,7 +2440,7 @@ static MenuItem *ParseMenuItems (WmScreenData *pSD)
|
||||||
MenuItem *firstMenuItem;
|
MenuItem *firstMenuItem;
|
||||||
MenuItem *lastMenuItem;
|
MenuItem *lastMenuItem;
|
||||||
MenuItem *menuItem;
|
MenuItem *menuItem;
|
||||||
register int ix;
|
int ix;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Parse "label [mnemonic] [accelerator] function" or
|
* Parse "label [mnemonic] [accelerator] function" or
|
||||||
|
@ -2836,7 +2836,7 @@ int ParseWmFunction (unsigned char **linePP, unsigned int res_spec,
|
||||||
{
|
{
|
||||||
unsigned char *lineP = *linePP;
|
unsigned char *lineP = *linePP;
|
||||||
unsigned char *string;
|
unsigned char *string;
|
||||||
register int low, mid, high, cmp;
|
int low, mid, high, cmp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Skip leading white space.
|
* Skip leading white space.
|
||||||
|
@ -4367,7 +4367,7 @@ static Boolean ParseModifiers(unsigned char **linePP, unsigned int *state)
|
||||||
|
|
||||||
static Boolean LookupModifier (unsigned char *name, unsigned int *valueP)
|
static Boolean LookupModifier (unsigned char *name, unsigned int *valueP)
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
if (name != NULL)
|
if (name != NULL)
|
||||||
{
|
{
|
||||||
|
@ -4423,7 +4423,7 @@ static Boolean ParseEventType (unsigned char **linePP, EventTableEntry *table,
|
||||||
unsigned char *lineP = *linePP;
|
unsigned char *lineP = *linePP;
|
||||||
unsigned char *startP = *linePP;
|
unsigned char *startP = *linePP;
|
||||||
unsigned char eventTypeStr[MAX_EVENTTYPE_STRLEN+1];
|
unsigned char eventTypeStr[MAX_EVENTTYPE_STRLEN+1];
|
||||||
register int len;
|
int len;
|
||||||
|
|
||||||
/* Parse out the event string */
|
/* Parse out the event string */
|
||||||
ScanAlphanumeric (&lineP);
|
ScanAlphanumeric (&lineP);
|
||||||
|
|
|
@ -5857,10 +5857,10 @@ XmColorData * _WmGetDefaultColors (Screen *screen, Colormap colormap,
|
||||||
static int defaultCount[2] = {0, 0};
|
static int defaultCount[2] = {0, 0};
|
||||||
static int defaultSize[2] = {0, 0};
|
static int defaultSize[2] = {0, 0};
|
||||||
int setId;
|
int setId;
|
||||||
register XmColorData *set;
|
XmColorData *set;
|
||||||
register int count;
|
int count;
|
||||||
register int size;
|
int size;
|
||||||
register int i;
|
int i;
|
||||||
Display *display = DisplayOfScreen (screen);
|
Display *display = DisplayOfScreen (screen);
|
||||||
XColor colorDef;
|
XColor colorDef;
|
||||||
|
|
||||||
|
|
|
@ -953,8 +953,8 @@ ProcessWmSaveHint (ClientData *pCD)
|
||||||
void
|
void
|
||||||
ProcessWmHints (ClientData *pCD, Boolean firstTime)
|
ProcessWmHints (ClientData *pCD, Boolean firstTime)
|
||||||
{
|
{
|
||||||
register XWMHints *pXWMHints;
|
XWMHints *pXWMHints;
|
||||||
register long flags;
|
long flags;
|
||||||
Pixmap iconPixmap;
|
Pixmap iconPixmap;
|
||||||
Pixmap iconMask;
|
Pixmap iconMask;
|
||||||
WmWorkspaceData *pWsTmp;
|
WmWorkspaceData *pWsTmp;
|
||||||
|
@ -1372,8 +1372,8 @@ ProcessWmHints (ClientData *pCD, Boolean firstTime)
|
||||||
void
|
void
|
||||||
ProcessWmNormalHints (ClientData *pCD, Boolean firstTime, long manageFlags)
|
ProcessWmNormalHints (ClientData *pCD, Boolean firstTime, long manageFlags)
|
||||||
{
|
{
|
||||||
register SizeHints *pNormalHints;
|
SizeHints *pNormalHints;
|
||||||
register long flags;
|
long flags;
|
||||||
int diff;
|
int diff;
|
||||||
unsigned long decoration;
|
unsigned long decoration;
|
||||||
unsigned int boxdim, tmpMin;
|
unsigned int boxdim, tmpMin;
|
||||||
|
@ -3162,7 +3162,7 @@ PlaceIconOnScreen (ClientData *pCD, int *pX, int *pY)
|
||||||
void
|
void
|
||||||
FixWindowConfiguration (ClientData *pCD, unsigned int *pWidth, unsigned int *pHeight, unsigned int widthInc, unsigned int heightInc)
|
FixWindowConfiguration (ClientData *pCD, unsigned int *pWidth, unsigned int *pHeight, unsigned int widthInc, unsigned int heightInc)
|
||||||
{
|
{
|
||||||
register int delta;
|
int delta;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make sure we're on width/height increment boundaries.
|
* Make sure we're on width/height increment boundaries.
|
||||||
|
@ -3225,8 +3225,8 @@ FixWindowConfiguration (ClientData *pCD, unsigned int *pWidth, unsigned int *pHe
|
||||||
void
|
void
|
||||||
FixWindowSize (ClientData *pCD, unsigned int *pWidth, unsigned int *pHeight, unsigned int widthInc, unsigned int heightInc)
|
FixWindowSize (ClientData *pCD, unsigned int *pWidth, unsigned int *pHeight, unsigned int widthInc, unsigned int heightInc)
|
||||||
{
|
{
|
||||||
register int deltaW;
|
int deltaW;
|
||||||
register int deltaH;
|
int deltaH;
|
||||||
WmScreenData *pSD = pCD->pSD;
|
WmScreenData *pSD = pCD->pSD;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2624,7 +2624,7 @@ MakeTransientFamilyStackingList (
|
||||||
ClientData *pcdSub;
|
ClientData *pcdSub;
|
||||||
Window *nextWindow, wSave, wTemp, wTop;
|
Window *nextWindow, wSave, wTemp, wTop;
|
||||||
int count = CountTransientChildren (pcdLeader);
|
int count = CountTransientChildren (pcdLeader);
|
||||||
register int i, j;
|
int i, j;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Construct the transient stacking list according to
|
* Construct the transient stacking list according to
|
||||||
|
|
|
@ -105,8 +105,8 @@ char **argv;
|
||||||
Widget top;
|
Widget top;
|
||||||
XtAppContext app_context;
|
XtAppContext app_context;
|
||||||
Arg args[10];
|
Arg args[10];
|
||||||
register int n;
|
int n;
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize toolkit
|
* initialize toolkit
|
||||||
|
@ -273,8 +273,8 @@ Widget top;
|
||||||
{
|
{
|
||||||
Window root;
|
Window root;
|
||||||
Arg args[10]; /* arg list */
|
Arg args[10]; /* arg list */
|
||||||
register int n; /* arg count */
|
int n; /* arg count */
|
||||||
register int i;
|
int i;
|
||||||
DtWsmWorkspaceInfo *pWsInfo;
|
DtWsmWorkspaceInfo *pWsInfo;
|
||||||
char *pchWs;
|
char *pchWs;
|
||||||
Widget left = None;
|
Widget left = None;
|
||||||
|
@ -346,7 +346,7 @@ Widget top;
|
||||||
void ShowWorkspaceOccupancy ()
|
void ShowWorkspaceOccupancy ()
|
||||||
{
|
{
|
||||||
Arg args[10]; /* arg list */
|
Arg args[10]; /* arg list */
|
||||||
register int n; /* arg count */
|
int n; /* arg count */
|
||||||
int i,j;
|
int i,j;
|
||||||
Atom *paWsIn = NULL;
|
Atom *paWsIn = NULL;
|
||||||
unsigned long numWsIn;
|
unsigned long numWsIn;
|
||||||
|
|
|
@ -101,8 +101,8 @@ char **argv;
|
||||||
Widget top;
|
Widget top;
|
||||||
XtAppContext app_context;
|
XtAppContext app_context;
|
||||||
Arg args[10];
|
Arg args[10];
|
||||||
register int n;
|
int n;
|
||||||
register int i;
|
int i;
|
||||||
XmString xms, xmsBlank;
|
XmString xms, xmsBlank;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -454,7 +454,7 @@ char **argv;
|
||||||
void ShowCurrentWorkspaceInfo ()
|
void ShowCurrentWorkspaceInfo ()
|
||||||
{
|
{
|
||||||
Arg args[10]; /* arg list */
|
Arg args[10]; /* arg list */
|
||||||
register int n; /* arg count */
|
int n; /* arg count */
|
||||||
Atom aWs;
|
Atom aWs;
|
||||||
int rval;
|
int rval;
|
||||||
Display *dpy;
|
Display *dpy;
|
||||||
|
|
Loading…
Reference in a new issue