int
defParserparse()
{
- register int defParserm, defParsern, defParserstate;
+ int defParserm, defParsern, defParserstate;
#if defParserDEBUG
- register char *defParsers;
+ char *defParsers;
if (defParsers = getenv("defParserDEBUG"))
{
defParser_DECL
{
- register defParser_state_type defParser_current_state;
- register defParser_CHAR *defParser_cp, *defParser_bp;
- register int defParser_act;
+ defParser_state_type defParser_current_state;
+ defParser_CHAR *defParser_cp, *defParser_bp;
+ int defParser_act;
defParser_match:
do
{
- register defParser_CHAR defParser_c = defParser_ec[*defParser_cp];
+ defParser_CHAR defParser_c = defParser_ec[*defParser_cp];
if ( defParser_accept[defParser_current_state] )
{
defParser_last_accepting_state = defParser_current_state;
static int defParser_get_next_buffer()
{
- register defParser_CHAR *dest = defParser_current_buffer->defParser_ch_buf;
- register defParser_CHAR *source = defParsertext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ defParser_CHAR *dest = defParser_current_buffer->defParser_ch_buf;
+ defParser_CHAR *source = defParsertext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( defParser_c_buf_p > &defParser_current_buffer->defParser_ch_buf[defParser_n_chars + 1] )
static defParser_state_type defParser_get_previous_state()
{
- register defParser_state_type defParser_current_state;
- register defParser_CHAR *defParser_cp;
+ defParser_state_type defParser_current_state;
+ defParser_CHAR *defParser_cp;
- register defParser_CHAR *defParser_bp = defParsertext;
+ defParser_CHAR *defParser_bp = defParsertext;
defParser_current_state = defParser_start;
if ( defParser_bp[-1] == '\n' )
for ( defParser_cp = defParsertext + defParser_MORE_ADJ; defParser_cp < defParser_c_buf_p; ++defParser_cp )
{
- register defParser_CHAR defParser_c = (*defParser_cp ? defParser_ec[*defParser_cp] : 1);
+ defParser_CHAR defParser_c = (*defParser_cp ? defParser_ec[*defParser_cp] : 1);
if ( defParser_accept[defParser_current_state] )
{
defParser_last_accepting_state = defParser_current_state;
*/
#ifdef defParser_USE_PROTOS
-static defParser_state_type defParser_try_NUL_trans( register defParser_state_type defParser_current_state )
+static defParser_state_type defParser_try_NUL_trans( defParser_state_type defParser_current_state )
#else
static defParser_state_type defParser_try_NUL_trans( defParser_current_state )
-register defParser_state_type defParser_current_state;
+defParser_state_type defParser_current_state;
#endif
{
- register int defParser_is_jam;
- register defParser_CHAR *defParser_cp = defParser_c_buf_p;
+ int defParser_is_jam;
+ defParser_CHAR *defParser_cp = defParser_c_buf_p;
- register defParser_CHAR defParser_c = 1;
+ defParser_CHAR defParser_c = 1;
if ( defParser_accept[defParser_current_state] )
{
defParser_last_accepting_state = defParser_current_state;
#if 0
#ifdef defParser_USE_PROTOS
-static void defParserunput( defParser_CHAR c, register defParser_CHAR *defParser_bp )
+static void defParserunput( defParser_CHAR c, defParser_CHAR *defParser_bp )
#else
static void defParserunput( c, defParser_bp )
defParser_CHAR c;
-register defParser_CHAR *defParser_bp;
+defParser_CHAR *defParser_bp;
#endif
{
- register defParser_CHAR *defParser_cp = defParser_c_buf_p;
+ defParser_CHAR *defParser_cp = defParser_c_buf_p;
/* undo effects of setting up defParsertext */
*defParser_cp = defParser_hold_char;
if ( defParser_cp < defParser_current_buffer->defParser_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = defParser_n_chars + 2; /* +2 for EOB chars */
- register defParser_CHAR *dest =
+ int number_to_move = defParser_n_chars + 2; /* +2 for EOB chars */
+ defParser_CHAR *dest =
&defParser_current_buffer->defParser_ch_buf[defParser_current_buffer->defParser_buf_size + 2];
- register defParser_CHAR *source =
+ defParser_CHAR *source =
&defParser_current_buffer->defParser_ch_buf[number_to_move];
while ( source > defParser_current_buffer->defParser_ch_buf )
int
styleparse()
{
- register int stylem, stylen, stylestate;
+ int stylem, stylen, stylestate;
#if styleDEBUG
- register char *styles;
+ char *styles;
if (styles = getenv("styleDEBUG"))
{
style_DECL
{
- register style_state_type style_current_state;
- register style_CHAR *style_cp, *style_bp;
- register int style_act;
+ style_state_type style_current_state;
+ style_CHAR *style_cp, *style_bp;
+ int style_act;
style_match:
do
{
- register style_CHAR style_c = style_ec[*style_cp];
+ style_CHAR style_c = style_ec[*style_cp];
if ( style_accept[style_current_state] )
{
style_last_accepting_state = style_current_state;
static int style_get_next_buffer()
{
- register style_CHAR *dest = style_current_buffer->style_ch_buf;
- register style_CHAR *source = styletext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ style_CHAR *dest = style_current_buffer->style_ch_buf;
+ style_CHAR *source = styletext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( style_c_buf_p > &style_current_buffer->style_ch_buf[style_n_chars + 1] )
static style_state_type style_get_previous_state()
{
- register style_state_type style_current_state;
- register style_CHAR *style_cp;
+ style_state_type style_current_state;
+ style_CHAR *style_cp;
- register style_CHAR *style_bp = styletext;
+ style_CHAR *style_bp = styletext;
style_current_state = style_start;
if ( style_bp[-1] == '\n' )
for ( style_cp = styletext + style_MORE_ADJ; style_cp < style_c_buf_p; ++style_cp )
{
- register style_CHAR style_c = (*style_cp ? style_ec[*style_cp] : 1);
+ style_CHAR style_c = (*style_cp ? style_ec[*style_cp] : 1);
if ( style_accept[style_current_state] )
{
style_last_accepting_state = style_current_state;
*/
#ifdef style_USE_PROTOS
-static style_state_type style_try_NUL_trans( register style_state_type style_current_state )
+static style_state_type style_try_NUL_trans( style_state_type style_current_state )
#else
static style_state_type style_try_NUL_trans( style_current_state )
-register style_state_type style_current_state;
+style_state_type style_current_state;
#endif
{
- register int style_is_jam;
- register style_CHAR *style_cp = style_c_buf_p;
+ int style_is_jam;
+ style_CHAR *style_cp = style_c_buf_p;
- register style_CHAR style_c = 1;
+ style_CHAR style_c = 1;
if ( style_accept[style_current_state] )
{
style_last_accepting_state = style_current_state;
#if 0
#ifdef style_USE_PROTOS
-static void styleunput( style_CHAR c, register style_CHAR *style_bp )
+static void styleunput( style_CHAR c, style_CHAR *style_bp )
#else
static void styleunput( c, style_bp )
style_CHAR c;
-register style_CHAR *style_bp;
+style_CHAR *style_bp;
#endif
{
- register style_CHAR *style_cp = style_c_buf_p;
+ style_CHAR *style_cp = style_c_buf_p;
/* undo effects of setting up styletext */
*style_cp = style_hold_char;
if ( style_cp < style_current_buffer->style_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = style_n_chars + 2; /* +2 for EOB chars */
- register style_CHAR *dest =
+ int number_to_move = style_n_chars + 2; /* +2 for EOB chars */
+ style_CHAR *dest =
&style_current_buffer->style_ch_buf[style_current_buffer->style_buf_size + 2];
- register style_CHAR *source =
+ style_CHAR *source =
&style_current_buffer->style_ch_buf[number_to_move];
while ( source > style_current_buffer->style_ch_buf )
int
__bt_dleaf(BTREE *t, PAGE *h, int index)
{
- register BLEAF *bl;
- register indx_t *ip, offset;
- register size_t nbytes;
- register int cnt;
+ BLEAF *bl;
+ indx_t *ip, offset;
+ size_t nbytes;
+ int cnt;
char *from;
void *to;
EPG *
__bt_first(BTREE *t, const DBT *key, int *exactp)
{
- register PAGE *h;
- register EPG *e;
+ PAGE *h;
+ EPG *e;
EPG save;
pgno_t cpgno, pg;
indx_t cindex;
EPG *
__bt_search(BTREE *t, const DBT *key, int *exactp)
{
- register indx_t index;
- register int base, cmp, lim;
- register PAGE *h;
+ indx_t index;
+ int base, cmp, lim;
+ PAGE *h;
pgno_t pg;
static EPG e;
int
__bt_ret(BTREE *t, EPG *e, DBT *key, DBT *data)
{
- register BLEAF *bl;
- register void *p;
+ BLEAF *bl;
+ void *p;
bl = GETBLEAF(e->page, e->index);
int
__bt_defcmp(const DBT *a, const DBT *b)
{
- register u_char *p1, *p2;
- register int diff, len;
+ u_char *p1, *p2;
+ int diff, len;
len = MIN(a->size, b->size);
for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2)
int
__bt_defpfx(const DBT *a, const DBT *b)
{
- register u_char *p1, *p2;
- register int len;
+ u_char *p1, *p2;
+ int len;
int cnt;
cnt = 1;
#endif
void *dst0;
const void *src0;
- register size_t length;
+ size_t length;
{
- register char *dst = dst0;
- register const char *src = src0;
- register size_t t;
+ char *dst = dst0;
+ const char *src = src0;
+ size_t t;
if (length == 0 || dst == src) /* nothing to do */
goto done;
}
static int
-_gettemp(char *path, register int *doopen)
+_gettemp(char *path, int *doopen)
{
- register char *start, *trv;
+ char *start, *trv;
struct stat sbuf;
u_int pid;
static BKT *
mpool_look(MPOOL *mp, pgno_t pgno)
{
- register BKT *b;
- register BKTHDR *tb;
+ BKT *b;
+ BKTHDR *tb;
/* XXX
* If find the buffer, put it first on the hash chain so can
ps_DECL
{
- register ps_state_type ps_current_state;
- register ps_CHAR *ps_cp, *ps_bp;
- register int ps_act;
+ ps_state_type ps_current_state;
+ ps_CHAR *ps_cp, *ps_bp;
+ int ps_act;
ps_match:
do
{
- register ps_CHAR ps_c = ps_ec[*ps_cp];
+ ps_CHAR ps_c = ps_ec[*ps_cp];
if ( ps_accept[ps_current_state] )
{
ps_last_accepting_state = ps_current_state;
static int ps_get_next_buffer()
{
- register ps_CHAR *dest = ps_current_buffer->ps_ch_buf;
- register ps_CHAR *source = pstext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ ps_CHAR *dest = ps_current_buffer->ps_ch_buf;
+ ps_CHAR *source = pstext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( ps_c_buf_p > &ps_current_buffer->ps_ch_buf[ps_n_chars + 1] )
static ps_state_type ps_get_previous_state()
{
- register ps_state_type ps_current_state;
- register ps_CHAR *ps_cp;
+ ps_state_type ps_current_state;
+ ps_CHAR *ps_cp;
ps_current_state = ps_start;
for ( ps_cp = pstext + ps_MORE_ADJ; ps_cp < ps_c_buf_p; ++ps_cp )
{
- register ps_CHAR ps_c = (*ps_cp ? ps_ec[*ps_cp] : 1);
+ ps_CHAR ps_c = (*ps_cp ? ps_ec[*ps_cp] : 1);
if ( ps_accept[ps_current_state] )
{
ps_last_accepting_state = ps_current_state;
*/
#ifdef ps_USE_PROTOS
-static ps_state_type ps_try_NUL_trans( register ps_state_type ps_current_state )
+static ps_state_type ps_try_NUL_trans( ps_state_type ps_current_state )
#else
static ps_state_type ps_try_NUL_trans( ps_current_state )
-register ps_state_type ps_current_state;
+ps_state_type ps_current_state;
#endif
{
- register int ps_is_jam;
- register ps_CHAR *ps_cp = ps_c_buf_p;
+ int ps_is_jam;
+ ps_CHAR *ps_cp = ps_c_buf_p;
- register ps_CHAR ps_c = 1;
+ ps_CHAR ps_c = 1;
if ( ps_accept[ps_current_state] )
{
ps_last_accepting_state = ps_current_state;
#if 0
#ifdef ps_USE_PROTOS
-static void psunput( ps_CHAR c, register ps_CHAR *ps_bp )
+static void psunput( ps_CHAR c, ps_CHAR *ps_bp )
#else
static void psunput( c, ps_bp )
ps_CHAR c;
-register ps_CHAR *ps_bp;
+ps_CHAR *ps_bp;
#endif
{
- register ps_CHAR *ps_cp = ps_c_buf_p;
+ ps_CHAR *ps_cp = ps_c_buf_p;
/* undo effects of setting up pstext */
*ps_cp = ps_hold_char;
if ( ps_cp < ps_current_buffer->ps_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = ps_n_chars + 2; /* +2 for EOB chars */
- register ps_CHAR *dest =
+ int number_to_move = ps_n_chars + 2; /* +2 for EOB chars */
+ ps_CHAR *dest =
&ps_current_buffer->ps_ch_buf[ps_current_buffer->ps_buf_size + 2];
- register ps_CHAR *source =
+ ps_CHAR *source =
&ps_current_buffer->ps_ch_buf[number_to_move];
while ( source > ps_current_buffer->ps_ch_buf )
sgml_DECL
{
- register sgml_state_type sgml_current_state;
- register sgml_CHAR *sgml_cp, *sgml_bp;
- register int sgml_act;
+ sgml_state_type sgml_current_state;
+ sgml_CHAR *sgml_cp, *sgml_bp;
+ int sgml_act;
sgml_match:
do
{
- register sgml_CHAR sgml_c = sgml_ec[*sgml_cp];
+ sgml_CHAR sgml_c = sgml_ec[*sgml_cp];
if ( sgml_accept[sgml_current_state] )
{
sgml_last_accepting_state = sgml_current_state;
static int sgml_get_next_buffer()
{
- register sgml_CHAR *dest = sgml_current_buffer->sgml_ch_buf;
- register sgml_CHAR *source = sgmltext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ sgml_CHAR *dest = sgml_current_buffer->sgml_ch_buf;
+ sgml_CHAR *source = sgmltext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( sgml_c_buf_p > &sgml_current_buffer->sgml_ch_buf[sgml_n_chars + 1] )
static sgml_state_type sgml_get_previous_state()
{
- register sgml_state_type sgml_current_state;
- register sgml_CHAR *sgml_cp;
+ sgml_state_type sgml_current_state;
+ sgml_CHAR *sgml_cp;
sgml_current_state = sgml_start;
for ( sgml_cp = sgmltext + sgml_MORE_ADJ; sgml_cp < sgml_c_buf_p; ++sgml_cp )
{
- register sgml_CHAR sgml_c = (*sgml_cp ? sgml_ec[*sgml_cp] : 1);
+ sgml_CHAR sgml_c = (*sgml_cp ? sgml_ec[*sgml_cp] : 1);
if ( sgml_accept[sgml_current_state] )
{
sgml_last_accepting_state = sgml_current_state;
*/
#ifdef sgml_USE_PROTOS
-static sgml_state_type sgml_try_NUL_trans( register sgml_state_type sgml_current_state )
+static sgml_state_type sgml_try_NUL_trans( sgml_state_type sgml_current_state )
#else
static sgml_state_type sgml_try_NUL_trans( sgml_current_state )
-register sgml_state_type sgml_current_state;
+sgml_state_type sgml_current_state;
#endif
{
- register int sgml_is_jam;
- register sgml_CHAR *sgml_cp = sgml_c_buf_p;
+ int sgml_is_jam;
+ sgml_CHAR *sgml_cp = sgml_c_buf_p;
- register sgml_CHAR sgml_c = 1;
+ sgml_CHAR sgml_c = 1;
if ( sgml_accept[sgml_current_state] )
{
sgml_last_accepting_state = sgml_current_state;
#if 0
#ifdef sgml_USE_PROTOS
-static void sgmlunput( sgml_CHAR c, register sgml_CHAR *sgml_bp )
+static void sgmlunput( sgml_CHAR c, sgml_CHAR *sgml_bp )
#else
static void sgmlunput( c, sgml_bp )
sgml_CHAR c;
-register sgml_CHAR *sgml_bp;
+sgml_CHAR *sgml_bp;
#endif
{
- register sgml_CHAR *sgml_cp = sgml_c_buf_p;
+ sgml_CHAR *sgml_cp = sgml_c_buf_p;
/* undo effects of setting up sgmltext */
*sgml_cp = sgml_hold_char;
if ( sgml_cp < sgml_current_buffer->sgml_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = sgml_n_chars + 2; /* +2 for EOB chars */
- register sgml_CHAR *dest =
+ int number_to_move = sgml_n_chars + 2; /* +2 for EOB chars */
+ sgml_CHAR *dest =
&sgml_current_buffer->sgml_ch_buf[sgml_current_buffer->sgml_buf_size + 2];
- register sgml_CHAR *source =
+ sgml_CHAR *source =
&sgml_current_buffer->sgml_ch_buf[number_to_move];
while ( source > sgml_current_buffer->sgml_ch_buf )
int
schemaparse()
{
- register int schemam, scheman, schemastate;
+ int schemam, scheman, schemastate;
#if schemaDEBUG
- register char * schemas;
+ char * schemas;
if ( schemas = getenv(" schemaDEBUG"))
{
schema_DECL
{
- register schema_state_type schema_current_state;
- register schema_CHAR * schema_cp, * schema_bp;
- register int schema_act;
+ schema_state_type schema_current_state;
+ schema_CHAR * schema_cp, * schema_bp;
+ int schema_act;
schema_match:
do
{
- register schema_CHAR schema_c = schema_ec[* schema_cp];
+ schema_CHAR schema_c = schema_ec[* schema_cp];
if ( schema_accept[ schema_current_state] )
{
schema_last_accepting_state = schema_current_state;
static int schema_get_next_buffer()
{
- register schema_CHAR *dest = schema_current_buffer-> schema_ch_buf;
- register schema_CHAR *source = schematext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ schema_CHAR *dest = schema_current_buffer-> schema_ch_buf;
+ schema_CHAR *source = schematext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( schema_c_buf_p > & schema_current_buffer-> schema_ch_buf[ schema_n_chars + 1] )
static schema_state_type schema_get_previous_state()
{
- register schema_state_type schema_current_state;
- register schema_CHAR * schema_cp;
+ schema_state_type schema_current_state;
+ schema_CHAR * schema_cp;
- register schema_CHAR * schema_bp = schematext;
+ schema_CHAR * schema_bp = schematext;
schema_current_state = schema_start;
if ( schema_bp[-1] == '\n' )
for ( schema_cp = schematext + schema_MORE_ADJ; schema_cp < schema_c_buf_p; ++ schema_cp )
{
- register schema_CHAR schema_c = (* schema_cp ? schema_ec[* schema_cp] : 1);
+ schema_CHAR schema_c = (* schema_cp ? schema_ec[* schema_cp] : 1);
if ( schema_accept[ schema_current_state] )
{
schema_last_accepting_state = schema_current_state;
*/
#ifdef schema_USE_PROTOS
-static schema_state_type schema_try_NUL_trans( register schema_state_type schema_current_state )
+static schema_state_type schema_try_NUL_trans( schema_state_type schema_current_state )
#else
static schema_state_type schema_try_NUL_trans( schema_current_state )
-register schema_state_type schema_current_state;
+ schema_state_type schema_current_state;
#endif
{
- register int schema_is_jam;
- register schema_CHAR * schema_cp = schema_c_buf_p;
+ int schema_is_jam;
+ schema_CHAR * schema_cp = schema_c_buf_p;
- register schema_CHAR schema_c = 1;
+ schema_CHAR schema_c = 1;
if ( schema_accept[ schema_current_state] )
{
schema_last_accepting_state = schema_current_state;
#if 0
#ifdef schema_USE_PROTOS
-static void schemaunput( schema_CHAR c, register schema_CHAR * schema_bp )
+static void schemaunput( schema_CHAR c, schema_CHAR * schema_bp )
#else
static void schemaunput( c, schema_bp )
schema_CHAR c;
-register schema_CHAR * schema_bp;
+ schema_CHAR * schema_bp;
#endif
{
- register schema_CHAR * schema_cp = schema_c_buf_p;
+ schema_CHAR * schema_cp = schema_c_buf_p;
/* undo effects of setting up schematext */
* schema_cp = schema_hold_char;
if ( schema_cp < schema_current_buffer-> schema_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = schema_n_chars + 2; /* +2 for EOB chars */
- register schema_CHAR *dest =
+ int number_to_move = schema_n_chars + 2; /* +2 for EOB chars */
+ schema_CHAR *dest =
& schema_current_buffer-> schema_ch_buf[ schema_current_buffer-> schema_buf_size + 2];
- register schema_CHAR *source =
+ schema_CHAR *source =
& schema_current_buffer-> schema_ch_buf[number_to_move];
while ( source > schema_current_buffer-> schema_ch_buf )
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))
int
HashBucket::find (FolioObject &element)
{
- register int i;
+ int i;
for (i = 0; i < f_length; i++)
{
void
HashBucket::remove (FolioObject &element)
{
- register int i;
+ int i;
for (i = 0; i < f_length; i++)
{
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)
{
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))
}
-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 -
}
-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;
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;
* *
*****************************************************************************/
-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
*****************************************************************************/
-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;
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) {
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) {
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;
}
-static Boolean ChangeSensitive(register Widget w)
+static Boolean ChangeSensitive(Widget w)
{
if (XtIsRealized(w)) {
if (XtIsSensitive(w))
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,
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);
/*
}
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) {
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;
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;
{
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;
ol_data_DECL
{
- register ol_data_state_type ol_data_current_state;
- register ol_data_CHAR *ol_data_cp, *ol_data_bp;
- register int ol_data_act;
+ ol_data_state_type ol_data_current_state;
+ ol_data_CHAR *ol_data_cp, *ol_data_bp;
+ int ol_data_act;
static int ol_data_get_next_buffer()
{
- register ol_data_CHAR *dest = ol_data_current_buffer->ol_data_ch_buf;
- register ol_data_CHAR *source = ol_datatext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ ol_data_CHAR *dest = ol_data_current_buffer->ol_data_ch_buf;
+ ol_data_CHAR *source = ol_datatext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( ol_data_c_buf_p > &ol_data_current_buffer->ol_data_ch_buf[ol_data_n_chars + 1] )
static ol_data_state_type ol_data_get_previous_state()
{
- register ol_data_state_type ol_data_current_state;
- register ol_data_CHAR *ol_data_cp;
+ ol_data_state_type ol_data_current_state;
+ ol_data_CHAR *ol_data_cp;
ol_data_current_state = ol_data_start;
*/
#ifdef ol_data_USE_PROTOS
-static ol_data_state_type ol_data_try_NUL_trans( register ol_data_state_type ol_data_current_state )
+static ol_data_state_type ol_data_try_NUL_trans( ol_data_state_type ol_data_current_state )
#else
static ol_data_state_type ol_data_try_NUL_trans( ol_data_current_state )
-register ol_data_state_type ol_data_current_state;
+ol_data_state_type ol_data_current_state;
#endif
{
- register int ol_data_is_jam;
- register ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
+ int ol_data_is_jam;
+ ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
ol_data_current_state = ol_data_NUL_trans[ol_data_current_state];
ol_data_is_jam = (ol_data_current_state == 0);
#if 0
#ifdef ol_data_USE_PROTOS
-static void ol_dataunput( ol_data_CHAR c, register ol_data_CHAR *ol_data_bp )
+static void ol_dataunput( ol_data_CHAR c, ol_data_CHAR *ol_data_bp )
#else
static void ol_dataunput( c, ol_data_bp )
ol_data_CHAR c;
-register ol_data_CHAR *ol_data_bp;
+ol_data_CHAR *ol_data_bp;
#endif
{
- register ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
+ ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
/* undo effects of setting up ol_datatext */
*ol_data_cp = ol_data_hold_char;
if ( ol_data_cp < ol_data_current_buffer->ol_data_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = ol_data_n_chars + 2; /* +2 for EOB chars */
- register ol_data_CHAR *dest =
+ int number_to_move = ol_data_n_chars + 2; /* +2 for EOB chars */
+ ol_data_CHAR *dest =
&ol_data_current_buffer->ol_data_ch_buf[ol_data_current_buffer->ol_data_buf_size + 2];
- register ol_data_CHAR *source =
+ ol_data_CHAR *source =
&ol_data_current_buffer->ol_data_ch_buf[number_to_move];
while ( source > ol_data_current_buffer->ol_data_ch_buf )
int
ol_dataparse()
{
- register int ol_datam, ol_datan, ol_datastate;
+ int ol_datam, ol_datan, ol_datastate;
#if ol_dataDEBUG
- register char *ol_datas;
+ char *ol_datas;
if ((ol_datas = getenv("ol_dataDEBUG")))
{
remote_DECL
{
- register remote_state_type remote_current_state;
- register remote_CHAR *remote_cp, *remote_bp;
- register int remote_act;
+ remote_state_type remote_current_state;
+ remote_CHAR *remote_cp, *remote_bp;
+ int remote_act;
static int remote_get_next_buffer()
{
- register remote_CHAR *dest = remote_current_buffer->remote_ch_buf;
- register remote_CHAR *source = remotetext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ remote_CHAR *dest = remote_current_buffer->remote_ch_buf;
+ remote_CHAR *source = remotetext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( remote_c_buf_p > &remote_current_buffer->remote_ch_buf[remote_n_chars + 1] )
static remote_state_type remote_get_previous_state()
{
- register remote_state_type remote_current_state;
- register remote_CHAR *remote_cp;
+ remote_state_type remote_current_state;
+ remote_CHAR *remote_cp;
remote_current_state = remote_start;
*/
#ifdef remote_USE_PROTOS
-static remote_state_type remote_try_NUL_trans( register remote_state_type remote_current_state )
+static remote_state_type remote_try_NUL_trans( remote_state_type remote_current_state )
#else
static remote_state_type remote_try_NUL_trans( remote_current_state )
-register remote_state_type remote_current_state;
+remote_state_type remote_current_state;
#endif
{
- register int remote_is_jam;
- register remote_CHAR *remote_cp = remote_c_buf_p;
+ int remote_is_jam;
+ remote_CHAR *remote_cp = remote_c_buf_p;
remote_current_state = remote_NUL_trans[remote_current_state];
remote_is_jam = (remote_current_state == 0);
#if 0
#ifdef remote_USE_PROTOS
-static void remoteunput( remote_CHAR c, register remote_CHAR *remote_bp )
+static void remoteunput( remote_CHAR c, remote_CHAR *remote_bp )
#else
static void remoteunput( c, remote_bp )
remote_CHAR c;
-register remote_CHAR *remote_bp;
+remote_CHAR *remote_bp;
#endif
{
- register remote_CHAR *remote_cp = remote_c_buf_p;
+ remote_CHAR *remote_cp = remote_c_buf_p;
/* undo effects of setting up remotetext */
*remote_cp = remote_hold_char;
if ( remote_cp < remote_current_buffer->remote_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = remote_n_chars + 2; /* +2 for EOB chars */
- register remote_CHAR *dest =
+ int number_to_move = remote_n_chars + 2; /* +2 for EOB chars */
+ remote_CHAR *dest =
&remote_current_buffer->remote_ch_buf[remote_current_buffer->remote_buf_size + 2];
- register remote_CHAR *source =
+ remote_CHAR *source =
&remote_current_buffer->remote_ch_buf[number_to_move];
while ( source > remote_current_buffer->remote_ch_buf )
nodedata_DECL
{
- register nodedata_state_type nodedata_current_state;
- register nodedata_CHAR *nodedata_cp, *nodedata_bp;
- register int nodedata_act;
+ nodedata_state_type nodedata_current_state;
+ nodedata_CHAR *nodedata_cp, *nodedata_bp;
+ int nodedata_act;
static int nodedata_get_next_buffer()
{
- register nodedata_CHAR *dest = nodedata_current_buffer->nodedata_ch_buf;
- register nodedata_CHAR *source = nodedatatext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ nodedata_CHAR *dest = nodedata_current_buffer->nodedata_ch_buf;
+ nodedata_CHAR *source = nodedatatext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( nodedata_c_buf_p > &nodedata_current_buffer->nodedata_ch_buf[nodedata_n_chars + 1] )
static nodedata_state_type nodedata_get_previous_state()
{
- register nodedata_state_type nodedata_current_state;
- register nodedata_CHAR *nodedata_cp;
+ nodedata_state_type nodedata_current_state;
+ nodedata_CHAR *nodedata_cp;
nodedata_current_state = nodedata_start;
*/
#ifdef nodedata_USE_PROTOS
-static nodedata_state_type nodedata_try_NUL_trans( register nodedata_state_type nodedata_current_state )
+static nodedata_state_type nodedata_try_NUL_trans( nodedata_state_type nodedata_current_state )
#else
static nodedata_state_type nodedata_try_NUL_trans( nodedata_current_state )
-register nodedata_state_type nodedata_current_state;
+nodedata_state_type nodedata_current_state;
#endif
{
- register int nodedata_is_jam;
- register nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
+ int nodedata_is_jam;
+ nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
nodedata_current_state = nodedata_NUL_trans[nodedata_current_state];
nodedata_is_jam = (nodedata_current_state == 0);
#if 0
#ifdef nodedata_USE_PROTOS
-static void nodedataunput( nodedata_CHAR c, register nodedata_CHAR *nodedata_bp )
+static void nodedataunput( nodedata_CHAR c, nodedata_CHAR *nodedata_bp )
#else
static void nodedataunput( c, nodedata_bp )
nodedata_CHAR c;
-register nodedata_CHAR *nodedata_bp;
+nodedata_CHAR *nodedata_bp;
#endif
{
- register nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
+ nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
/* undo effects of setting up nodedatatext */
*nodedata_cp = nodedata_hold_char;
if ( nodedata_cp < nodedata_current_buffer->nodedata_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = nodedata_n_chars + 2; /* +2 for EOB chars */
- register nodedata_CHAR *dest =
+ int number_to_move = nodedata_n_chars + 2; /* +2 for EOB chars */
+ nodedata_CHAR *dest =
&nodedata_current_buffer->nodedata_ch_buf[nodedata_current_buffer->nodedata_buf_size + 2];
- register nodedata_CHAR *source =
+ nodedata_CHAR *source =
&nodedata_current_buffer->nodedata_ch_buf[number_to_move];
while ( source > nodedata_current_buffer->nodedata_ch_buf )
*/
int
-strcasecmp(register const char *s1,
- register const char *s2)
+strcasecmp(const char *s1,
+ const char *s2)
{
- register int c1, c2;
+ int c1, c2;
while (*s1 && *s2) {
c1 = isupper(*s1) ? tolower(*s1) : *s1;
int
-strncasecmp(register const char *s1,
- register const char *s2,
- register size_t count)
+strncasecmp(const char *s1,
+ const char *s2,
+ size_t count)
{
- register int c1, c2;
+ int c1, c2;
if (!count)
return 0;
graphics_task_DECL
{
- register graphics_task_state_type graphics_task_current_state;
- register graphics_task_CHAR *graphics_task_cp, *graphics_task_bp;
- register int graphics_task_act;
+ graphics_task_state_type graphics_task_current_state;
+ graphics_task_CHAR *graphics_task_cp, *graphics_task_bp;
+ int graphics_task_act;
static int graphics_task_get_next_buffer()
{
- register graphics_task_CHAR *dest = graphics_task_current_buffer->graphics_task_ch_buf;
- register graphics_task_CHAR *source = graphics_tasktext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ graphics_task_CHAR *dest = graphics_task_current_buffer->graphics_task_ch_buf;
+ graphics_task_CHAR *source = graphics_tasktext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( graphics_task_c_buf_p > &graphics_task_current_buffer->graphics_task_ch_buf[graphics_task_n_chars + 1] )
static graphics_task_state_type graphics_task_get_previous_state()
{
- register graphics_task_state_type graphics_task_current_state;
- register graphics_task_CHAR *graphics_task_cp;
+ graphics_task_state_type graphics_task_current_state;
+ graphics_task_CHAR *graphics_task_cp;
- register graphics_task_CHAR *graphics_task_bp = graphics_tasktext;
+ graphics_task_CHAR *graphics_task_bp = graphics_tasktext;
graphics_task_current_state = graphics_task_start;
if ( graphics_task_bp[-1] == '\n' )
*/
#ifdef graphics_task_USE_PROTOS
-static graphics_task_state_type graphics_task_try_NUL_trans( register graphics_task_state_type graphics_task_current_state )
+static graphics_task_state_type graphics_task_try_NUL_trans( graphics_task_state_type graphics_task_current_state )
#else
static graphics_task_state_type graphics_task_try_NUL_trans( graphics_task_current_state )
-register graphics_task_state_type graphics_task_current_state;
+graphics_task_state_type graphics_task_current_state;
#endif
{
- register int graphics_task_is_jam;
- register graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
+ int graphics_task_is_jam;
+ graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
graphics_task_current_state = graphics_task_NUL_trans[graphics_task_current_state];
graphics_task_is_jam = (graphics_task_current_state == 0);
#if 0
#ifdef graphics_task_USE_PROTOS
-static void graphics_taskunput( graphics_task_CHAR c, register graphics_task_CHAR *graphics_task_bp )
+static void graphics_taskunput( graphics_task_CHAR c, graphics_task_CHAR *graphics_task_bp )
#else
static void graphics_taskunput( c, graphics_task_bp )
graphics_task_CHAR c;
-register graphics_task_CHAR *graphics_task_bp;
+graphics_task_CHAR *graphics_task_bp;
#endif
{
- register graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
+ graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
/* undo effects of setting up graphics_tasktext */
*graphics_task_cp = graphics_task_hold_char;
if ( graphics_task_cp < graphics_task_current_buffer->graphics_task_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = graphics_task_n_chars + 2; /* +2 for EOB chars */
- register graphics_task_CHAR *dest =
+ int number_to_move = graphics_task_n_chars + 2; /* +2 for EOB chars */
+ graphics_task_CHAR *dest =
&graphics_task_current_buffer->graphics_task_ch_buf[graphics_task_current_buffer->graphics_task_buf_size + 2];
- register graphics_task_CHAR *source =
+ graphics_task_CHAR *source =
&graphics_task_current_buffer->graphics_task_ch_buf[number_to_move];
while ( source > graphics_task_current_buffer->graphics_task_ch_buf )
YY_DECL
{
- register yy_state_type yy_current_state;
- register YY_CHAR *yy_cp, *yy_bp;
- register int yy_act;
+ yy_state_type yy_current_state;
+ YY_CHAR *yy_cp, *yy_bp;
+ int yy_act;
static int yy_get_next_buffer()
{
- register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
- register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
+ YY_CHAR *source = yytext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
static yy_state_type yy_get_previous_state()
{
- register yy_state_type yy_current_state;
- register YY_CHAR *yy_cp;
+ yy_state_type yy_current_state;
+ YY_CHAR *yy_cp;
- register YY_CHAR *yy_bp = yytext;
+ YY_CHAR *yy_bp = yytext;
yy_current_state = yy_start;
if ( yy_bp[-1] == '\n' )
*/
#ifdef YY_USE_PROTOS
-static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
+static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
-register yy_state_type yy_current_state;
+yy_state_type yy_current_state;
#endif
{
- register int yy_is_jam;
- register YY_CHAR *yy_cp = yy_c_buf_p;
+ int yy_is_jam;
+ YY_CHAR *yy_cp = yy_c_buf_p;
yy_current_state = yy_NUL_trans[yy_current_state];
yy_is_jam = (yy_current_state == 0);
#if 0
#ifdef YY_USE_PROTOS
-static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
+static void yyunput( YY_CHAR c, YY_CHAR *yy_bp )
#else
static void yyunput( c, yy_bp )
YY_CHAR c;
-register YY_CHAR *yy_bp;
+YY_CHAR *yy_bp;
#endif
{
- register YY_CHAR *yy_cp = yy_c_buf_p;
+ YY_CHAR *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
- register YY_CHAR *dest =
+ int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
+ YY_CHAR *dest =
&yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
- register YY_CHAR *source =
+ YY_CHAR *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
YY_DECL
{
- register yy_state_type yy_current_state;
- register YY_CHAR *yy_cp, *yy_bp;
- register int yy_act;
+ yy_state_type yy_current_state;
+ YY_CHAR *yy_cp, *yy_bp;
+ int yy_act;
yy_match:
do
{
- register YY_CHAR yy_c = yy_ec[*yy_cp];
+ YY_CHAR yy_c = yy_ec[*yy_cp];
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
static int yy_get_next_buffer()
{
- register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
- register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
- register int number_to_move, i;
+ YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
+ YY_CHAR *source = yytext - 1; /* copy prev. char, too */
+ int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
static yy_state_type yy_get_previous_state()
{
- register yy_state_type yy_current_state;
- register YY_CHAR *yy_cp;
+ yy_state_type yy_current_state;
+ YY_CHAR *yy_cp;
- register YY_CHAR *yy_bp = yytext;
+ YY_CHAR *yy_bp = yytext;
yy_current_state = yy_start;
if ( yy_bp[-1] == '\n' )
for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
*/
#ifdef YY_USE_PROTOS
-static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
+static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
-register yy_state_type yy_current_state;
+yy_state_type yy_current_state;
#endif
{
- register int yy_is_jam;
- register YY_CHAR *yy_cp = yy_c_buf_p;
+ int yy_is_jam;
+ YY_CHAR *yy_cp = yy_c_buf_p;
- register YY_CHAR yy_c = 1;
+ YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
#if 0
#ifdef YY_USE_PROTOS
-static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
+static void yyunput( YY_CHAR c, YY_CHAR *yy_bp )
#else
static void yyunput( c, yy_bp )
YY_CHAR c;
-register YY_CHAR *yy_bp;
+YY_CHAR *yy_bp;
#endif
{
- register YY_CHAR *yy_cp = yy_c_buf_p;
+ YY_CHAR *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
- register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
- register YY_CHAR *dest =
+ int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
+ YY_CHAR *dest =
&yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
- register YY_CHAR *source =
+ YY_CHAR *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )