2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
|
|
|
* Copyright 2001, 2011 Fidelity Information Services, Inc *
|
|
|
|
* *
|
|
|
|
* This source code contains the intellectual property *
|
|
|
|
* of its copyright holder(s), and is made available *
|
|
|
|
* under a license. If you do not know the terms of *
|
|
|
|
* the license, please stop and do not read further. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#include "mdef.h"
|
|
|
|
#include "compiler.h"
|
|
|
|
#include "toktyp.h"
|
|
|
|
#include "opcode.h"
|
|
|
|
#include "advancewindow.h"
|
|
|
|
#include "cmd.h"
|
|
|
|
|
|
|
|
error_def(ERR_CMD);
|
2012-03-24 14:06:46 -04:00
|
|
|
error_def(ERR_SPOREOL);
|
2012-02-05 11:35:58 -05:00
|
|
|
|
|
|
|
int linetail(void)
|
|
|
|
{
|
|
|
|
DCL_THREADGBL_ACCESS;
|
|
|
|
|
|
|
|
SETUP_THREADGBL_ACCESS;
|
|
|
|
for (;;)
|
|
|
|
{
|
2012-03-24 14:06:46 -04:00
|
|
|
while (TK_SPACE == TREF(window_token))
|
2012-02-05 11:35:58 -05:00
|
|
|
advancewindow();
|
2012-03-24 14:06:46 -04:00
|
|
|
if (TK_EOL == TREF(window_token))
|
2012-02-05 11:35:58 -05:00
|
|
|
return TRUE;
|
|
|
|
if (!cmd())
|
|
|
|
{
|
2012-03-24 14:06:46 -04:00
|
|
|
if (OC_RTERROR != (TREF(curtchain))->exorder.bl->exorder.bl->exorder.bl->opcode)
|
2012-02-05 11:35:58 -05:00
|
|
|
{ /* If rterror is last triple generated (has two args), then error already raised */
|
|
|
|
TREF(source_error_found) ? stx_error(TREF(source_error_found)) : stx_error(ERR_CMD);
|
|
|
|
}
|
2012-03-24 14:06:46 -04:00
|
|
|
assert((TREF(curtchain))->exorder.bl->exorder.fl == TREF(curtchain));
|
2012-02-05 11:35:58 -05:00
|
|
|
assert(TREF(source_error_found));
|
|
|
|
return FALSE;
|
|
|
|
}
|
2012-03-24 14:06:46 -04:00
|
|
|
if ((TK_SPACE != TREF(window_token)) && (TK_EOL != TREF(window_token)))
|
2012-02-05 11:35:58 -05:00
|
|
|
{
|
|
|
|
stx_error(ERR_SPOREOL);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|