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 =
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 ();
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))
ProcessColormapList (WmScreenData *pSD, ClientData *pCD)
{
- register int i;
+ int i;
XEvent event;
void ConfirmAction (WmScreenData *pSD, int nbr)
{
Arg args[8];
- register int n;
+ int n;
int x, y;
Dimension width, height;
Widget dialogShellW = NULL;
Boolean F_Send_Msg (String args, ClientData *pCD, XEvent *event)
{
- register int i;
+ int i;
if (pCD && pCD->mwmMessagesCount)
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;
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;
*
***********************************************************************/
- register unsigned char *string;
+ unsigned char *string;
int len;
int chlen;
wchar_t last;
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');
MenuItem *firstMenuItem;
MenuItem *lastMenuItem;
MenuItem *menuItem;
- register int ix;
+ int ix;
/*
* Parse "label [mnemonic] [accelerator] function" or
{
unsigned char *lineP = *linePP;
unsigned char *string;
- register int low, mid, high, cmp;
+ int low, mid, high, cmp;
/*
* Skip leading white space.
static Boolean LookupModifier (unsigned char *name, unsigned int *valueP)
{
- register int i;
+ int i;
if (name != NULL)
{
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);
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;
void
ProcessWmHints (ClientData *pCD, Boolean firstTime)
{
- register XWMHints *pXWMHints;
- register long flags;
+ XWMHints *pXWMHints;
+ long flags;
Pixmap iconPixmap;
Pixmap iconMask;
WmWorkspaceData *pWsTmp;
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;
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.
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;
/*
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
Widget top;
XtAppContext app_context;
Arg args[10];
- register int n;
- register int i;
+ int n;
+ int i;
/*
* initialize toolkit
{
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;
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;
Widget top;
XtAppContext app_context;
Arg args[10];
- register int n;
- register int i;
+ int n;
+ int i;
XmString xms, xmsBlank;
/*
void ShowCurrentWorkspaceInfo ()
{
Arg args[10]; /* arg list */
- register int n; /* arg count */
+ int n; /* arg count */
Atom aWs;
int rval;
Display *dpy;