mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.2t1
This commit is contained in:
16
opcodes.c
16
opcodes.c
@@ -19,8 +19,8 @@
|
||||
* received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* @(#) $Revision: 29.3 $
|
||||
* @(#) $Id: opcodes.c,v 29.3 2000/07/17 15:35:49 chongo Exp $
|
||||
* @(#) $Revision: 29.2 $
|
||||
* @(#) $Id: opcodes.c,v 29.2 2000/06/07 14:02:13 chongo Exp $
|
||||
* @(#) $Source: /usr/local/src/cmd/calc/RCS/opcodes.c,v $
|
||||
*
|
||||
* Under source code control: 1990/02/15 01:48:19
|
||||
@@ -225,7 +225,7 @@ static void
|
||||
o_paramvalue(FUNC *fp, int argcount, VALUE *args, long index)
|
||||
{
|
||||
if ((unsigned long)index >= argcount) {
|
||||
math_error("Bad parameter index");
|
||||
math_error("Bad paramaeter index");
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
args += index;
|
||||
@@ -896,7 +896,7 @@ o_deref(void)
|
||||
return;
|
||||
}
|
||||
if (stack->v_type != V_ADDR) {
|
||||
math_error("Dereferencing a non-variable");
|
||||
math_error("Deferencing a non-variable");
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
vp = vp->v_addr;
|
||||
@@ -3228,8 +3228,8 @@ o_quit(FUNC *fp, long index)
|
||||
freevalue(stack--);
|
||||
}
|
||||
freevalue(stackarray);
|
||||
run_state = RUN_EXIT;
|
||||
longjmp(jmpbuf, 1);
|
||||
libcalc_call_me_last();
|
||||
exit(0);
|
||||
}
|
||||
if (cp)
|
||||
printf("%s\n", cp);
|
||||
@@ -3512,10 +3512,10 @@ static struct opcode opcodes[MAX_OPCODE+1] = {
|
||||
{o_nop, OPNUL, "NOP"}, /* no operation */
|
||||
{o_localaddr, OPLOC, "LOCALADDR"}, /* address of local variable */
|
||||
{o_globaladdr, OPGLB, "GLOBALADDR"}, /* address of global variable */
|
||||
{o_paramaddr, OPPAR, "PARAMADDR"}, /* address of parameter variable */
|
||||
{o_paramaddr, OPPAR, "PARAMADDR"}, /* address of paramater variable */
|
||||
{o_localvalue, OPLOC, "LOCALVALUE"}, /* value of local variable */
|
||||
{o_globalvalue, OPGLB, "GLOBALVALUE"}, /* value of global variable */
|
||||
{o_paramvalue, OPPAR, "PARAMVALUE"}, /* value of parameter variable */
|
||||
{o_paramvalue, OPPAR, "PARAMVALUE"}, /* value of paramater variable */
|
||||
{o_number, OPONE, "NUMBER"}, /* constant real numeric value */
|
||||
{o_indexaddr, OPTWO, "INDEXADDR"}, /* array index address */
|
||||
{o_printresult, OPNUL, "PRINTRESULT"}, /* print result of top-level expression */
|
||||
|
Reference in New Issue
Block a user