mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
tt/lib: remove register keyword
This commit is contained in:
parent
904a48b822
commit
34436c7725
5 changed files with 28 additions and 28 deletions
|
@ -112,8 +112,8 @@ _tt_AuthFileName ()
|
||||||
if (!name)
|
if (!name)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
register char *ptr1;
|
char *ptr1;
|
||||||
register char *ptr2;
|
char *ptr2;
|
||||||
int len1 = 0, len2 = 0;
|
int len1 = 0, len2 = 0;
|
||||||
|
|
||||||
if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) {
|
if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) {
|
||||||
|
|
|
@ -427,7 +427,7 @@ int tt_trace_parse(void)
|
||||||
int tt_trace_parse()
|
int tt_trace_parse()
|
||||||
#endif
|
#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)
|
#if defined(__cplusplus) || defined(lint)
|
||||||
/*
|
/*
|
||||||
|
@ -466,10 +466,10 @@ int tt_trace_parse()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
register TT_TRACE_STYPE *tt_trace__pv; /* top of value stack */
|
TT_TRACE_STYPE *tt_trace__pv; /* top of value stack */
|
||||||
register int *tt_trace__ps; /* top of state stack */
|
int *tt_trace__ps; /* top of state stack */
|
||||||
register int tt_trace__state; /* current state */
|
int tt_trace__state; /* current state */
|
||||||
register int tt_trace__n; /* internal state number info */
|
int tt_trace__n; /* internal state number info */
|
||||||
goto tt_trace_stack; /* moved from 6 lines above to here to please C++ */
|
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 )
|
if ( tt_trace_debug )
|
||||||
{
|
{
|
||||||
register int tt_trace__i;
|
int tt_trace__i;
|
||||||
|
|
||||||
printf( "State %d, token ", tt_trace__state );
|
printf( "State %d, token ", tt_trace__state );
|
||||||
if ( tt_trace_char == 0 )
|
if ( tt_trace_char == 0 )
|
||||||
|
@ -591,7 +591,7 @@ int tt_trace_parse()
|
||||||
#if TT_TRACE_DEBUG
|
#if TT_TRACE_DEBUG
|
||||||
if ( tt_trace_debug && tt_trace_tmp )
|
if ( tt_trace_debug && tt_trace_tmp )
|
||||||
{
|
{
|
||||||
register int tt_trace__i;
|
int tt_trace__i;
|
||||||
|
|
||||||
printf( "Received token " );
|
printf( "Received token " );
|
||||||
if ( tt_trace_char == 0 )
|
if ( tt_trace_char == 0 )
|
||||||
|
@ -633,7 +633,7 @@ int tt_trace_parse()
|
||||||
#if TT_TRACE_DEBUG
|
#if TT_TRACE_DEBUG
|
||||||
if ( tt_trace_debug && tt_trace_tmp )
|
if ( tt_trace_debug && tt_trace_tmp )
|
||||||
{
|
{
|
||||||
register int tt_trace__i;
|
int tt_trace__i;
|
||||||
|
|
||||||
printf( "Received token " );
|
printf( "Received token " );
|
||||||
if ( tt_trace_char == 0 )
|
if ( tt_trace_char == 0 )
|
||||||
|
@ -660,7 +660,7 @@ int tt_trace_parse()
|
||||||
** look through exception table
|
** look through exception table
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
register int *tt_trace_xi = tt_trace_exca;
|
int *tt_trace_xi = tt_trace_exca;
|
||||||
|
|
||||||
while ( ( *tt_trace_xi != -1 ) ||
|
while ( ( *tt_trace_xi != -1 ) ||
|
||||||
( tt_trace_xi[1] != tt_trace__state ) )
|
( tt_trace_xi[1] != tt_trace__state ) )
|
||||||
|
@ -746,7 +746,7 @@ int tt_trace_parse()
|
||||||
*/
|
*/
|
||||||
if ( tt_trace_debug )
|
if ( tt_trace_debug )
|
||||||
{
|
{
|
||||||
register int tt_trace__i;
|
int tt_trace__i;
|
||||||
|
|
||||||
printf( "Error recovery discards " );
|
printf( "Error recovery discards " );
|
||||||
if ( tt_trace_char == 0 )
|
if ( tt_trace_char == 0 )
|
||||||
|
@ -806,7 +806,7 @@ int tt_trace_parse()
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
/* length of production doubled with extra bit */
|
/* 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 ) )
|
if ( !( tt_trace__len & 01 ) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -3993,8 +3993,8 @@ int tt_trace_look(void)
|
||||||
tt_trace_look()
|
tt_trace_look()
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
register struct tt_trace_svf *tt_trace_state, **lsp;
|
struct tt_trace_svf *tt_trace_state, **lsp;
|
||||||
register struct tt_trace_work *tt_trace_t;
|
struct tt_trace_work *tt_trace_t;
|
||||||
struct tt_trace_svf *tt_trace_z;
|
struct tt_trace_svf *tt_trace_z;
|
||||||
int tt_trace_ch, tt_trace_first;
|
int tt_trace_ch, tt_trace_first;
|
||||||
struct tt_trace_work *tt_trace_r;
|
struct tt_trace_work *tt_trace_r;
|
||||||
|
|
|
@ -609,7 +609,7 @@ _Tt_object_list_cursor& _Tt_object_list_cursor::
|
||||||
remove()
|
remove()
|
||||||
{
|
{
|
||||||
ASSERT(current,"No current element to delete");
|
ASSERT(current,"No current element to delete");
|
||||||
register _Tt_object_list_element *p = current;
|
_Tt_object_list_element *p = current;
|
||||||
listhdr->_count--;
|
listhdr->_count--;
|
||||||
if (p->next != 0)
|
if (p->next != 0)
|
||||||
p->next->prev = p->prev;
|
p->next->prev = p->prev;
|
||||||
|
|
|
@ -605,8 +605,8 @@ unquote_nulls() const
|
||||||
int l;
|
int l;
|
||||||
unsigned char *result;
|
unsigned char *result;
|
||||||
_Tt_string r;
|
_Tt_string r;
|
||||||
register unsigned char *p;
|
unsigned char *p;
|
||||||
register unsigned char *q;
|
unsigned char *q;
|
||||||
|
|
||||||
l = len();
|
l = len();
|
||||||
if (l==0) {
|
if (l==0) {
|
||||||
|
@ -746,9 +746,9 @@ replace(const char *old, const _Tt_string &with) const
|
||||||
int _Tt_string::
|
int _Tt_string::
|
||||||
cmp(const char *q, int qlen) const
|
cmp(const char *q, int qlen) const
|
||||||
{
|
{
|
||||||
register char *p = (*this)->content;
|
char *p = (*this)->content;
|
||||||
register int plen = len();
|
int plen = len();
|
||||||
register int pcmp;
|
int pcmp;
|
||||||
|
|
||||||
if (0==p && 0==q) return 0;
|
if (0==p && 0==q) return 0;
|
||||||
if (0==p) return -1;
|
if (0==p) return -1;
|
||||||
|
@ -769,9 +769,9 @@ cmp(const char *q, int qlen) const
|
||||||
/* XXX: old definition of cmp
|
/* XXX: old definition of cmp
|
||||||
* {
|
* {
|
||||||
*
|
*
|
||||||
* register char *p = (*this)->content;
|
* char *p = (*this)->content;
|
||||||
* register char *end;
|
* char *end;
|
||||||
* register int plen = len();
|
* int plen = len();
|
||||||
*
|
*
|
||||||
* // null pointers are treated as null strings, ignoring length.
|
* // null pointers are treated as null strings, ignoring length.
|
||||||
* if (0==p && 0==q) return 0;
|
* if (0==p && 0==q) return 0;
|
||||||
|
@ -815,8 +815,8 @@ index(char c) const
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
register char *p = (*this)->content;
|
char *p = (*this)->content;
|
||||||
register char *end = p+len();
|
char *end = p+len();
|
||||||
|
|
||||||
while (p<end && *p!=c) ++p;
|
while (p<end && *p!=c) ++p;
|
||||||
if (p==end) {
|
if (p==end) {
|
||||||
|
@ -873,8 +873,8 @@ rindex(char c) const
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
register char *beg = (*this)->content;
|
char *beg = (*this)->content;
|
||||||
register char *p = beg+len()-1;
|
char *p = beg+len()-1;
|
||||||
|
|
||||||
while (p>=beg && *p!=c) --p;
|
while (p>=beg && *p!=c) --p;
|
||||||
if (p<beg) {
|
if (p<beg) {
|
||||||
|
|
Loading…
Reference in a new issue