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)
/*
#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++ */
/*
*/
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 )
#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 )
#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 )
** 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 ) )
*/
if ( tt_trace_debug )
{
- register int tt_trace__i;
+ int tt_trace__i;
printf( "Error recovery discards " );
if ( tt_trace_char == 0 )
*/
{
/* 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 ) )
{
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;
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) {
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;
/* 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;
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) {
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) {