dtinfo: remove register keyword

This commit is contained in:
Jon Trulson
2018-06-27 16:57:54 -06:00
parent 7c0de21ad4
commit 556ce45298
31 changed files with 286 additions and 286 deletions

View File

@@ -82,7 +82,7 @@ public: // variables
Atomizer::Atomizer (const char *string)
{
// Try to find the string in the pool of strings
register unsigned int i;
unsigned int i;
for (i = 0; i < f_pool.length(); i++)
if (((PoolString *)f_pool[i])->equals (string))

View File

@@ -68,7 +68,7 @@ public: // functions
int
HashBucket::find (FolioObject &element)
{
register int i;
int i;
for (i = 0; i < f_length; i++)
{
@@ -87,7 +87,7 @@ HashBucket::find (FolioObject &element)
void
HashBucket::remove (FolioObject &element)
{
register int i;
int i;
for (i = 0; i < f_length; i++)
{

View File

@@ -188,7 +188,7 @@ int
List::find (FolioObject &element)
{
/* -------- Search through the list, looking for element. -------- */
register int i;
int i;
for (i = 0; i < f_length; i++)
if (f_list_element[i] == &element)

View File

@@ -76,8 +76,8 @@ string_hash (const char *key)
{
assert (key != NULL);
register u_int pos, sum = 0;
register char c;
u_int pos, sum = 0;
char c;
for (pos = 0; (c = *key++); pos++)
sum = (sum << 5) + (sum >> (sizeof(int) * 8 - 6))

View File

@@ -305,7 +305,7 @@ static void reset_xor_gc (PannerWidget pw) /* used when resources change */
}
static void check_knob (register PannerWidget pw, Boolean knob)
static void check_knob (PannerWidget pw, Boolean knob)
{
Position pad = pw->panner.internal_border * 2;
Position maxx = (((Position) pw->core.width) - pad -
@@ -335,14 +335,14 @@ static void check_knob (register PannerWidget pw, Boolean knob)
}
static void move_shadow (register PannerWidget pw)
static void move_shadow (PannerWidget pw)
{
if (pw->panner.shadow_thickness > 0) {
int lw = pw->panner.shadow_thickness + pw->panner.line_width * 2;
int pad = pw->panner.internal_border;
if ((int)pw->panner.knob_height > lw && (int)pw->panner.knob_width > lw) {
register XRectangle *r = pw->panner.shadow_rects;
XRectangle *r = pw->panner.shadow_rects;
r->x = (short) (pw->panner.knob_x + pad + pw->panner.knob_width);
r->y = (short) (pw->panner.knob_y + pad + lw);
r->width = pw->panner.shadow_thickness;
@@ -445,7 +445,7 @@ static Boolean get_event_xy (PannerWidget pw, XEvent *event, int *x, int *y)
return FALSE;
}
static int parse_page_string (register char *s, int pagesize, int canvassize, Boolean *relative)
static int parse_page_string (char *s, int pagesize, int canvassize, Boolean *relative)
{
char *cp;
double val = 1.0;

View File

@@ -166,10 +166,10 @@ WidgetClass portholeWidgetClass = (WidgetClass) &portholeClassRec;
* *
*****************************************************************************/
static Widget find_child (register PortholeWidget pw)
static Widget find_child (PortholeWidget pw)
{
register Widget *children;
register int i;
Widget *children;
int i;
/*
* Find the managed child on which we should operate. Ignore multiple
@@ -251,7 +251,7 @@ static void layout_child (PortholeWidget pw, Widget child,
*****************************************************************************/
static void Realize (register Widget gw, Mask *valueMask, XSetWindowAttributes *attributes)
static void Realize (Widget gw, Mask *valueMask, XSetWindowAttributes *attributes)
{
attributes->bit_gravity = NorthWestGravity;
*valueMask |= CWBitGravity;
@@ -286,7 +286,7 @@ static void Resize (Widget gw)
static XtGeometryResult QueryGeometry (Widget gw, XtWidgetGeometry *intended, XtWidgetGeometry *preferred)
{
register PortholeWidget pw = (PortholeWidget) gw;
PortholeWidget pw = (PortholeWidget) gw;
Widget child = find_child (pw);
if (child) {

View File

@@ -159,8 +159,8 @@ static void ClassInitialize(void)
static void ClassPartInitialize(WidgetClass class)
{
register SimpleWidgetClass c = (SimpleWidgetClass)class;
register SimpleWidgetClass super = (SimpleWidgetClass)
SimpleWidgetClass c = (SimpleWidgetClass)class;
SimpleWidgetClass super = (SimpleWidgetClass)
c->core_class.superclass;
if (c->simple_class.change_sensitive == NULL) {
@@ -177,7 +177,7 @@ static void ClassPartInitialize(WidgetClass class)
c->simple_class.change_sensitive = super->simple_class.change_sensitive;
}
static void Realize(register Widget w, Mask *valueMask, XSetWindowAttributes *attributes)
static void Realize(Widget w, Mask *valueMask, XSetWindowAttributes *attributes)
{
Pixmap border_pixmap = 0;
@@ -278,7 +278,7 @@ static Boolean SetValues(Widget current, Widget request, Widget new)
}
static Boolean ChangeSensitive(register Widget w)
static Boolean ChangeSensitive(Widget w)
{
if (XtIsRealized(w)) {
if (XtIsSensitive(w))

View File

@@ -212,8 +212,8 @@ WidgetClass treeWidgetClass = (WidgetClass) &treeClassRec;
static void initialize_dimensions (Dimension **listp, int *sizep, int n)
{
register int i;
register Dimension *l;
int i;
Dimension *l;
if (!*listp) {
*listp = (Dimension *) XtCalloc ((unsigned int) n,
@@ -579,7 +579,7 @@ static void Redisplay (TreeWidget tw, XEvent *event, Region region)
Window w = XtWindow (tw);
for (i = 0; i < tw->composite.num_children; i++) {
register Widget child = tw->composite.children[i];
Widget child = tw->composite.children[i];
TreeConstraints tc = TREE_CONSTRAINT(child);
/*
@@ -606,7 +606,7 @@ static void Redisplay (TreeWidget tw, XEvent *event, Region region)
}
for (j = 0; j < tc->tree.n_children; j++) {
register Widget k = tc->tree.children[j];
Widget k = tc->tree.children[j];
GC gc = (tc->tree.gc ? tc->tree.gc : tw->tree.gc);
switch (tw->tree.gravity) {
@@ -662,7 +662,7 @@ static void Redisplay (TreeWidget tw, XEvent *event, Region region)
static XtGeometryResult QueryGeometry (Widget w, XtWidgetGeometry *intended, XtWidgetGeometry *preferred)
{
register TreeWidget tw = (TreeWidget) w;
TreeWidget tw = (TreeWidget) w;
preferred->request_mode = (CWWidth | CWHeight);
preferred->width = tw->tree.maxwidth;
@@ -695,7 +695,7 @@ static XtGeometryResult QueryGeometry (Widget w, XtWidgetGeometry *intended, XtW
static void compute_bounding_box_subtree (TreeWidget tree, Widget w, int depth)
{
TreeConstraints tc = TREE_CONSTRAINT(w); /* info attached to all kids */
register int i;
int i;
Bool horiz = IsHorizontal (tree);
Dimension newwidth, newheight;
Dimension bw2 = w->core.border_width * 2;
@@ -804,7 +804,7 @@ static void arrange_subtree (TreeWidget tree, Widget w, int depth, Position x, P
{
TreeConstraints tc = TREE_CONSTRAINT(w); /* info attached to all kids */
TreeConstraints firstcc, lastcc;
register int i;
int i;
int newx, newy;
Bool horiz = IsHorizontal (tree);
Widget child = NULL;