From: Jon Trulson Date: Wed, 27 Jun 2018 21:53:46 +0000 (-0600) Subject: tt/lib: remove register keyword X-Git-Tag: 2.3.0a~320 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=34436c7725e9b1afd4bd62876658f94d605f118f;p=oweals%2Fcde.git tt/lib: remove register keyword --- diff --git a/cde/lib/tt/lib/mp/mp_auth_functions.C b/cde/lib/tt/lib/mp/mp_auth_functions.C index 9e4d177b..5ddd9af9 100644 --- a/cde/lib/tt/lib/mp/mp_auth_functions.C +++ b/cde/lib/tt/lib/mp/mp_auth_functions.C @@ -112,8 +112,8 @@ _tt_AuthFileName () if (!name) { #ifdef WIN32 - register char *ptr1; - register char *ptr2; + char *ptr1; + char *ptr2; int len1 = 0, len2 = 0; if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) { diff --git a/cde/lib/tt/lib/util/frozen.tt_trace_gram.c b/cde/lib/tt/lib/util/frozen.tt_trace_gram.c index 473be14a..d9abaffc 100644 --- a/cde/lib/tt/lib/util/frozen.tt_trace_gram.c +++ b/cde/lib/tt/lib/util/frozen.tt_trace_gram.c @@ -427,7 +427,7 @@ int tt_trace_parse(void) int tt_trace_parse() #endif { - register TT_TRACE_STYPE *tt_trace_pvt; /* top of value stack for $vars */ + TT_TRACE_STYPE *tt_trace_pvt; /* top of value stack for $vars */ #if defined(__cplusplus) || defined(lint) /* @@ -466,10 +466,10 @@ int tt_trace_parse() #endif { - register TT_TRACE_STYPE *tt_trace__pv; /* top of value stack */ - register int *tt_trace__ps; /* top of state stack */ - register int tt_trace__state; /* current state */ - register int tt_trace__n; /* internal state number info */ + TT_TRACE_STYPE *tt_trace__pv; /* top of value stack */ + int *tt_trace__ps; /* top of state stack */ + int tt_trace__state; /* current state */ + int tt_trace__n; /* internal state number info */ goto tt_trace_stack; /* moved from 6 lines above to here to please C++ */ /* @@ -507,7 +507,7 @@ int tt_trace_parse() */ if ( tt_trace_debug ) { - register int tt_trace__i; + int tt_trace__i; printf( "State %d, token ", tt_trace__state ); if ( tt_trace_char == 0 ) @@ -591,7 +591,7 @@ int tt_trace_parse() #if TT_TRACE_DEBUG if ( tt_trace_debug && tt_trace_tmp ) { - register int tt_trace__i; + int tt_trace__i; printf( "Received token " ); if ( tt_trace_char == 0 ) @@ -633,7 +633,7 @@ int tt_trace_parse() #if TT_TRACE_DEBUG if ( tt_trace_debug && tt_trace_tmp ) { - register int tt_trace__i; + int tt_trace__i; printf( "Received token " ); if ( tt_trace_char == 0 ) @@ -660,7 +660,7 @@ int tt_trace_parse() ** look through exception table */ { - register int *tt_trace_xi = tt_trace_exca; + int *tt_trace_xi = tt_trace_exca; while ( ( *tt_trace_xi != -1 ) || ( tt_trace_xi[1] != tt_trace__state ) ) @@ -746,7 +746,7 @@ int tt_trace_parse() */ if ( tt_trace_debug ) { - register int tt_trace__i; + int tt_trace__i; printf( "Error recovery discards " ); if ( tt_trace_char == 0 ) @@ -806,7 +806,7 @@ int tt_trace_parse() */ { /* length of production doubled with extra bit */ - register int tt_trace__len = tt_trace_r2[ tt_trace__n ]; + int tt_trace__len = tt_trace_r2[ tt_trace__n ]; if ( !( tt_trace__len & 01 ) ) { diff --git a/cde/lib/tt/lib/util/frozen.tt_trace_parse.c b/cde/lib/tt/lib/util/frozen.tt_trace_parse.c index 53d8fb65..d1037c3a 100644 --- a/cde/lib/tt/lib/util/frozen.tt_trace_parse.c +++ b/cde/lib/tt/lib/util/frozen.tt_trace_parse.c @@ -3993,8 +3993,8 @@ int tt_trace_look(void) tt_trace_look() #endif { - register struct tt_trace_svf *tt_trace_state, **lsp; - register struct tt_trace_work *tt_trace_t; + struct tt_trace_svf *tt_trace_state, **lsp; + struct tt_trace_work *tt_trace_t; struct tt_trace_svf *tt_trace_z; int tt_trace_ch, tt_trace_first; struct tt_trace_work *tt_trace_r; diff --git a/cde/lib/tt/lib/util/tt_object_list.C b/cde/lib/tt/lib/util/tt_object_list.C index 883522d4..7e94902e 100644 --- a/cde/lib/tt/lib/util/tt_object_list.C +++ b/cde/lib/tt/lib/util/tt_object_list.C @@ -609,7 +609,7 @@ _Tt_object_list_cursor& _Tt_object_list_cursor:: remove() { ASSERT(current,"No current element to delete"); - register _Tt_object_list_element *p = current; + _Tt_object_list_element *p = current; listhdr->_count--; if (p->next != 0) p->next->prev = p->prev; diff --git a/cde/lib/tt/lib/util/tt_string.C b/cde/lib/tt/lib/util/tt_string.C index 23113d47..cf372075 100644 --- a/cde/lib/tt/lib/util/tt_string.C +++ b/cde/lib/tt/lib/util/tt_string.C @@ -605,8 +605,8 @@ unquote_nulls() const int l; unsigned char *result; _Tt_string r; - register unsigned char *p; - register unsigned char *q; + unsigned char *p; + unsigned char *q; l = len(); if (l==0) { @@ -746,9 +746,9 @@ replace(const char *old, const _Tt_string &with) const int _Tt_string:: cmp(const char *q, int qlen) const { - register char *p = (*this)->content; - register int plen = len(); - register int pcmp; + char *p = (*this)->content; + int plen = len(); + int pcmp; if (0==p && 0==q) return 0; if (0==p) return -1; @@ -769,9 +769,9 @@ cmp(const char *q, int qlen) const /* XXX: old definition of cmp * { * - * register char *p = (*this)->content; - * register char *end; - * register int plen = len(); + * char *p = (*this)->content; + * char *end; + * int plen = len(); * * // null pointers are treated as null strings, ignoring length. * if (0==p && 0==q) return 0; @@ -815,8 +815,8 @@ index(char c) const return -1; } - register char *p = (*this)->content; - register char *end = p+len(); + char *p = (*this)->content; + char *end = p+len(); while (pcontent; - register char *p = beg+len()-1; + char *beg = (*this)->content; + char *p = beg+len()-1; while (p>=beg && *p!=c) --p; if (p