int _Tt_types_table::yyparse()
#endif
{
- register YYSTYPE *yypvt; /* top of value stack for $vars */
+ YYSTYPE *yypvt; /* top of value stack for $vars */
#if defined(__cplusplus) || defined(lint)
/*
#endif
{
- register YYSTYPE *yy_pv; /* top of value stack */
- register int *yy_ps; /* top of state stack */
- register int yy_state; /* current state */
- register int yy_n; /* internal state number info */
+ YYSTYPE *yy_pv; /* top of value stack */
+ int *yy_ps; /* top of state stack */
+ int yy_state; /* current state */
+ int yy_n; /* internal state number info */
goto yystack; /* moved from 6 lines above to here to please C++ */
/*
*/
if ( yydebug )
{
- register int yy_i;
+ int yy_i;
printf( "State %d, token ", yy_state );
if ( yychar == 0 )
#if YYDEBUG
if ( yydebug && yytmp )
{
- register int yy_i;
+ int yy_i;
printf( "Received token " );
if ( yychar == 0 )
#if YYDEBUG
if ( yydebug && yytmp )
{
- register int yy_i;
+ int yy_i;
printf( "Received token " );
if ( yychar == 0 )
** look through exception table
*/
{
- register int *yyxi = yyexca;
+ int *yyxi = yyexca;
while ( ( *yyxi != -1 ) ||
( yyxi[1] != yy_state ) )
*/
if ( yydebug )
{
- register int yy_i;
+ int yy_i;
printf( "Error recovery discards " );
if ( yychar == 0 )
/*
** Look in goto table for next state
** Sorry about using yy_state here as temporary
- ** register variable, but why not, if it works...
+ ** variable, but why not, if it works...
** If yyr2[ yy_n ] doesn't have the low order bit
** set, then there is no action to be done for
** this reduction. So, no saving & unsaving of
*/
{
/* length of production doubled with extra bit */
- register int yy_len = yyr2[ yy_n ];
+ int yy_len = yyr2[ yy_n ];
if ( !( yy_len & 01 ) )
{
GET_DUMPFILE_NAME(dumpfilename);
pfp_r = fopen(dumpfilename, "a");
- const time_t clockTime = (const time_t) time((time_t *)0);
+ const time_t clockTime = (const time_t) time(NULL);
memset((void*) &ctime_buf, 0, sizeof(_Xctimeparams));
fprintf(pfp_r, "--------------------- pid=%ld %s",
(long)getpid(), _XCtime(&clockTime, ctime_buf));
mailboxAccessHide("append");
else
{
- time_t now = time((time_t) NULL);
+ time_t now = time(NULL);
mailboxAccessShow(now, "append");
}
if (sysinfo(SI_HW_SERIAL, (char *)hwserialbuf, sizeof(hwserialbuf)-1) == -1)
#endif
strcpy(hwserialbuf, "dtmail");
- (void) sprintf(theId, "%08ld%08ld%s\0", (long)getpid(), (long)time((time_t *)0), hwserialbuf);
+ (void) sprintf(theId, "%08ld%08ld%s\0", (long)getpid(), (long)time(NULL), hwserialbuf);
assert(strlen(theId)<sizeof(theId));
return(strdup(theId));
}
DTM_FALSE, NULL, tempLockFileName, error.errnoMessage());
break;
}
- return(time(0));
+ return(time(NULL));
}
// Get creation time of temporary file *on remote system*
error.vSetError(DTME_CannotCreateMailboxLockFile,
DTM_FALSE, NULL, tempLockFileName, error.errnoMessage());
(void) SafeClose(lock_fd);
- return(time(0));
+ return(time(NULL));
}
// Write proper contents to lock file:
error.vSetError(DTME_CannotCreateMailboxLockFile,
DTM_FALSE, NULL, tempLockFileName, error.errnoMessage());
(void) SafeClose(lock_fd);
- return(time(0));
+ return(time(NULL));
}
// sync up the lock file with the ultimate storage device
error.vSetError(DTME_CannotCreateMailboxLockFile,
DTM_FALSE, NULL, tempLockFileName, error.errnoMessage());
(void) SafeClose(lock_fd);
- return(time(0));
+ return(time(NULL));
}
// close the file
tempLockFileName, errno);
error.vSetError(DTME_CannotCreateMailboxLockFile,
DTM_FALSE, NULL, tempLockFileName, error.errnoMessage());
- return(time(0));
+ return(time(NULL));
}
// The temporary lock file has been created - now try and link it to the
GET_DUMPFILE_NAME(dumpfilename);
FILE *df = fopen(dumpfilename, "a");
- const time_t clockTime = (const time_t) time((time_t *)0);
+ const time_t clockTime = (const time_t) time(NULL);
memset((void*) &ctime_buf, 0, sizeof(_Xctimeparams));
fprintf(df, "--------------------- pid=%ld %s",
(long)getpid(), _XCtime(&clockTime, ctime_buf));
sigaction(SIGBUS, &sig_act, &old_sig_act);
sigbus_env_valid = 1;
if (setjmp(sigbus_env) == 0) {
- const time_t clockTime = (const time_t) time((time_t *)0);
+ const time_t clockTime = (const time_t) time(NULL);
_Xctimeparams ctime_buf;
memset((void*) &ctime_buf, 0, sizeof(_Xctimeparams));
fprintf(df, "--------------------- pid=%ld %s",