tt/lib: remove register keyword
authorJon Trulson <jon@radscan.com>
Wed, 27 Jun 2018 21:53:46 +0000 (15:53 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 28 Jun 2018 04:00:56 +0000 (22:00 -0600)
cde/lib/tt/lib/mp/mp_auth_functions.C
cde/lib/tt/lib/util/frozen.tt_trace_gram.c
cde/lib/tt/lib/util/frozen.tt_trace_parse.c
cde/lib/tt/lib/util/tt_object_list.C
cde/lib/tt/lib/util/tt_string.C

index 9e4d177b22cc540d959e8a8533f8d2759f35faf1..5ddd9af9a48b36bda6691ebaf48806790c7e2c0d 100644 (file)
@@ -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"))) {
index 473be14aa5382d858d9664a7eb893d85bd39c181..d9abaffc08e265377dc1ae4ed59223e5ede642d5 100644 (file)
@@ -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 ) )
                        {
index 53d8fb65eb26ca9ad115e067822e1ab10720f078..d1037c3a4ed8115128d5ba8400b4abfb44585633 100644 (file)
@@ -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;
index 883522d497629acb8372faea00cec3034f02762c..7e94902eff4bd699ef29f5a3d012b8f4efdd8499 100644 (file)
@@ -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;
index 23113d47a13b35fbac1c4bc81c3823ccb55be000..cf372075f96500bc34da405f43b8634aa0ae87ac 100644 (file)
@@ -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 (p<end && *p!=c) ++p;
        if (p==end) {
@@ -873,8 +873,8 @@ rindex(char c) const
                return -1;
        }
 
-       register char *beg = (*this)->content;
-       register char *p = beg+len()-1;
+       char *beg = (*this)->content;
+       char *p = beg+len()-1;
 
        while (p>=beg && *p!=c) --p;
        if (p<beg) {