mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +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;  | ||||
| 	time_t		time_value; | ||||
| 	char *		time_ptr; | ||||
| 	register Display *	dpy = XtDisplay (w); | ||||
| 	register Window		win = XtWindow (w); | ||||
| 	Display *	dpy = XtDisplay (w); | ||||
| 	Window		win = XtWindow (w); | ||||
| 
 | ||||
| 	if (id || !w->clock.interval_id) | ||||
| 		w->clock.interval_id = | ||||
|  | @ -508,8 +508,8 @@ DrawHand( | |||
|         Dimension width, | ||||
|         double fraction_of_a_circle ) | ||||
| { | ||||
| 	register double angle, cosangle, sinangle; | ||||
| 	register double ws, wc; | ||||
| 	double angle, cosangle, sinangle; | ||||
| 	double ws, wc; | ||||
| 	Position x, y, x1, y1, x2, y2; | ||||
| 	double cos (); | ||||
| 	double sin (); | ||||
|  | @ -593,8 +593,8 @@ DrawClockFace( | |||
| 	Boolean	draw_minute_ticks = | ||||
| 			 ((G_ClockWidth (g) > (Dimension) (2 * SIZE_DEFAULT)) && | ||||
| 			  (G_ClockHeight (g) > (Dimension) (2 * SIZE_DEFAULT))); | ||||
| 	register int i; | ||||
| 	register int delta = | ||||
| 	int i; | ||||
| 	int delta = | ||||
| 			(int)(g->clock.radius - g->clock.tick_spacing) / 3; | ||||
| 
 | ||||
| 	if (! XtIsManaged ((Widget)g)) | ||||
|  |  | |||
|  | @ -549,7 +549,7 @@ void | |||
| ProcessColormapList (WmScreenData *pSD, ClientData *pCD) | ||||
| 
 | ||||
| { | ||||
| 	register int i; | ||||
| 	int i; | ||||
| 	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) | ||||
| { | ||||
|     Arg           args[8]; | ||||
|     register int  n; | ||||
|     int  n; | ||||
|     int           x, y; | ||||
|     Dimension     width, height; | ||||
|     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) | ||||
| { | ||||
|     register int i; | ||||
|     int i; | ||||
| 
 | ||||
| 
 | ||||
|     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) | ||||
| { | ||||
|     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 x1, y1, len;		/* used to compute bevel parameters */ | ||||
|     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) | ||||
| { | ||||
|     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 x1, y1, len;		/* used to compute bevel parameters */ | ||||
|     int *piTop, *piBot; | ||||
|  |  | |||
|  | @ -908,7 +908,7 @@ _DtWmParseNextLine ( | |||
|  * | ||||
|  ***********************************************************************/ | ||||
| 
 | ||||
|     register unsigned char	*string; | ||||
|     unsigned char	*string; | ||||
|     int				len; | ||||
|     int   chlen; | ||||
|     wchar_t last; | ||||
|  |  | |||
|  | @ -1497,9 +1497,9 @@ unsigned char *NextToken (unsigned char *pchIn, int *pLen, | |||
| 	unsigned char **ppchNext) | ||||
| { | ||||
|     unsigned char *pchR = pchIn; | ||||
|     register int   i; | ||||
|     int   i; | ||||
| 
 | ||||
|     register int   chlen; | ||||
|     int   chlen; | ||||
| 
 | ||||
|     for (i = 0; | ||||
| 	 ((chlen = mblen((char *)pchIn, MB_CUR_MAX)) > 0) && (pchIn[0] != '\0'); | ||||
|  |  | |||
|  | @ -2440,7 +2440,7 @@ static MenuItem *ParseMenuItems (WmScreenData *pSD) | |||
|     MenuItem      *firstMenuItem; | ||||
|     MenuItem      *lastMenuItem; | ||||
|     MenuItem      *menuItem; | ||||
|     register int   ix; | ||||
|     int   ix; | ||||
|      | ||||
|     /*
 | ||||
|      * 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 *string; | ||||
|     register int  low, mid, high, cmp; | ||||
|     int  low, mid, high, cmp; | ||||
| 
 | ||||
|     /*
 | ||||
|      * 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) | ||||
| { | ||||
|     register int i; | ||||
|     int i; | ||||
| 
 | ||||
|     if (name != NULL) | ||||
|     { | ||||
|  | @ -4423,7 +4423,7 @@ static Boolean ParseEventType (unsigned char **linePP, EventTableEntry *table, | |||
|     unsigned char *lineP = *linePP; | ||||
|     unsigned char *startP = *linePP; | ||||
|     unsigned char eventTypeStr[MAX_EVENTTYPE_STRLEN+1]; | ||||
|     register int  len; | ||||
|     int  len; | ||||
| 
 | ||||
|     /* Parse out the event string */ | ||||
|     ScanAlphanumeric (&lineP); | ||||
|  |  | |||
|  | @ -5857,10 +5857,10 @@ XmColorData * _WmGetDefaultColors (Screen *screen, Colormap colormap, | |||
|     static int defaultCount[2] = {0, 0}; | ||||
|     static int defaultSize[2] = {0, 0}; | ||||
|     int setId; | ||||
|     register XmColorData *set; | ||||
|     register int count; | ||||
|     register int size; | ||||
|     register int i; | ||||
|     XmColorData *set; | ||||
|     int count; | ||||
|     int size; | ||||
|     int i; | ||||
|     Display *display = DisplayOfScreen (screen); | ||||
|     XColor colorDef; | ||||
| 
 | ||||
|  |  | |||
|  | @ -953,8 +953,8 @@ ProcessWmSaveHint (ClientData *pCD) | |||
| void  | ||||
| ProcessWmHints (ClientData *pCD, Boolean firstTime) | ||||
| { | ||||
|     register XWMHints *pXWMHints; | ||||
|     register long flags; | ||||
|     XWMHints *pXWMHints; | ||||
|     long flags; | ||||
|     Pixmap iconPixmap; | ||||
|     Pixmap iconMask; | ||||
|     WmWorkspaceData *pWsTmp; | ||||
|  | @ -1372,8 +1372,8 @@ ProcessWmHints (ClientData *pCD, Boolean firstTime) | |||
| void  | ||||
| ProcessWmNormalHints (ClientData *pCD, Boolean firstTime, long manageFlags) | ||||
| { | ||||
|     register SizeHints *pNormalHints; | ||||
|     register long       flags; | ||||
|     SizeHints *pNormalHints; | ||||
|     long       flags; | ||||
|     int                 diff; | ||||
|     unsigned long       decoration; | ||||
|     unsigned int        boxdim, tmpMin; | ||||
|  | @ -3162,7 +3162,7 @@ PlaceIconOnScreen (ClientData *pCD, int *pX, int *pY) | |||
| void  | ||||
| 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. | ||||
|  | @ -3225,8 +3225,8 @@ FixWindowConfiguration (ClientData *pCD, unsigned int *pWidth, unsigned int *pHe | |||
| void  | ||||
| FixWindowSize (ClientData *pCD, unsigned int *pWidth, unsigned int *pHeight, unsigned int widthInc, unsigned int heightInc) | ||||
| { | ||||
|     register int  deltaW; | ||||
|     register int  deltaH; | ||||
|     int  deltaW; | ||||
|     int  deltaH; | ||||
|     WmScreenData *pSD = pCD->pSD; | ||||
| 
 | ||||
|     /*
 | ||||
|  |  | |||
|  | @ -2624,7 +2624,7 @@ MakeTransientFamilyStackingList ( | |||
|     ClientData *pcdSub; | ||||
|     Window *nextWindow, wSave, wTemp, wTop; | ||||
|     int count = CountTransientChildren (pcdLeader); | ||||
|     register int i, j; | ||||
|     int i, j; | ||||
| 
 | ||||
|     /*
 | ||||
|      * Construct the transient stacking list according to | ||||
|  |  | |||
|  | @ -105,8 +105,8 @@ char **argv; | |||
|     Widget  top; | ||||
|     XtAppContext app_context; | ||||
|     Arg	args[10]; | ||||
|     register int n; | ||||
|     register int i; | ||||
|     int n; | ||||
|     int i; | ||||
| 
 | ||||
|     /*  
 | ||||
|      * initialize toolkit   | ||||
|  | @ -273,8 +273,8 @@ Widget top; | |||
| { | ||||
|     Window root; | ||||
|     Arg	args[10]; /*  arg list		*/ | ||||
|     register int n;	/*  arg count		*/ | ||||
|     register int i; | ||||
|     int n;	/*  arg count		*/ | ||||
|     int i; | ||||
|     DtWsmWorkspaceInfo *pWsInfo; | ||||
|     char *pchWs; | ||||
|     Widget left = None; | ||||
|  | @ -346,7 +346,7 @@ Widget top; | |||
| void ShowWorkspaceOccupancy () | ||||
| { | ||||
|     Arg	args[10]; /*  arg list		*/ | ||||
|     register int n;	/*  arg count		*/ | ||||
|     int n;	/*  arg count		*/ | ||||
|     int i,j; | ||||
|     Atom *paWsIn = NULL; | ||||
|     unsigned long numWsIn; | ||||
|  |  | |||
|  | @ -101,8 +101,8 @@ char **argv; | |||
|     Widget  top; | ||||
|     XtAppContext app_context; | ||||
|     Arg	args[10]; | ||||
|     register int n; | ||||
|     register int i; | ||||
|     int n; | ||||
|     int i; | ||||
|     XmString xms, xmsBlank; | ||||
| 
 | ||||
|     /*  
 | ||||
|  | @ -454,7 +454,7 @@ char **argv; | |||
| void ShowCurrentWorkspaceInfo () | ||||
| { | ||||
|     Arg	args[10]; /*  arg list		*/ | ||||
|     register int n;	/*  arg count		*/ | ||||
|     int n;	/*  arg count		*/ | ||||
|     Atom aWs; | ||||
|     int rval; | ||||
|     Display *dpy; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue