1.0.8-1.0.8.2.gz
patches · 1.8 KB · 2010-03-30
Download « Back to the patches list
Common subdirectories: /usr/home/clay/1.0.8/dgd/bin and dgd/bin
Common subdirectories: /usr/home/clay/1.0.8/dgd/doc and dgd/doc
Common subdirectories: /usr/home/clay/1.0.8/dgd/mud and dgd/mud
Common subdirectories: /usr/home/clay/1.0.8/dgd/pkg and dgd/pkg
Common subdirectories: /usr/home/clay/1.0.8/dgd/src and dgd/src
Common subdirectories: /usr/home/clay/1.0.8/dgd/tmp and dgd/tmp
Common subdirectories: /usr/home/clay/1.0.8/dgd/doc/kfun and dgd/doc/kfun
diff -cr /usr/home/clay/1.0.8/dgd/doc/kfun/modf dgd/doc/kfun/modf
*** /usr/home/clay/1.0.8/dgd/doc/kfun/modf Wed May 4 16:55:29 1994
--- dgd/doc/kfun/modf Sat Aug 13 13:16:14 1994
***************
*** 7,13 ****
DESCRIPTION
Split the argument into a fraction f and an integer part n, such that
! | f | < 1.0, and f * 2 ** n == x. ({ f, n }) is returned. Note that
n is returned as a float, and may not be representable in type int.
SEE ALSO
--- 7,13 ----
DESCRIPTION
Split the argument into a fraction f and an integer part n, such that
! | f | < 1.0, and f + n == x. ({ f, n }) is returned. Note that
n is returned as a float, and may not be representable in type int.
SEE ALSO
diff -cr /usr/home/clay/1.0.8/dgd/src/Changelog dgd/src/Changelog
*** /usr/home/clay/1.0.8/dgd/src/Changelog Sat Jul 30 01:30:24 1994
--- dgd/src/Changelog Thu Aug 18 17:16:10 1994
***************
*** 707,709 ****
--- 707,714 ----
operator.
- Fixed a bug which caused <digits>. to be rejected as a valid floating point
constant.
+
+ DGD 1.0.9
+
+ - call_trace() could give incorrect arguments for varargs functions.
+ - Fixed a bug which could occur for strval[i] = intval.
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/comp and dgd/src/comp
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/ed and dgd/src/ed
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/host and dgd/src/host
diff -cr /usr/home/clay/1.0.8/dgd/src/interpret.c dgd/src/interpret.c
*** /usr/home/clay/1.0.8/dgd/src/interpret.c Sat Jul 16 22:32:56 1994
--- dgd/src/interpret.c Thu Aug 18 17:13:08 1994
***************
*** 613,618 ****
--- 613,624 ----
{
char *tname;
+ if (val->type == T_LVALUE) {
+ val = val->u.lval;
+ } else if (val->type == T_ALVALUE) {
+ val = &ilvp[-1].u.array->elts[val->u.number];
+ }
+ /* other lvalue types will not occur */
if (val->type != type &&
(val->type != T_INT || val->u.number != 0 || type == T_FLOAT)) {
tname = i_typename(type);
***************
*** 1533,1539 ****
}
/* handle arguments */
- f->nargs = nargs;
n = PROTO_NARGS(pc);
if (n > 0 && (PROTO_ARGS(pc)[n - 1] & T_ELLIPSIS)) {
register value *v;
--- 1539,1544 ----
***************
*** 1569,1574 ****
--- 1574,1580 ----
*--sp = zero_value;
} while (++nargs < n);
}
+ f->nargs = nargs;
pc += PROTO_SIZE(pc);
/* check stack depth */
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/kfun and dgd/src/kfun
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/lex and dgd/src/lex
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/lpc and dgd/src/lpc
diff -cr /usr/home/clay/1.0.8/dgd/src/version.h dgd/src/version.h
*** /usr/home/clay/1.0.8/dgd/src/version.h Sun Aug 7 12:36:21 1994
--- dgd/src/version.h Thu Aug 18 17:21:14 1994
***************
*** 1 ****
! # define VERSION "1.0.8"
--- 1 ----
! # define VERSION "1.0.8.2"
diff -cr /usr/home/clay/1.0.8/dgd/src/comp/codegenc.c dgd/src/comp/codegenc.c
*** /usr/home/clay/1.0.8/dgd/src/comp/codegenc.c Sat Jul 16 22:32:58 1994
--- dgd/src/comp/codegenc.c Thu Aug 18 17:28:32 1994
***************
*** 79,84 ****
--- 79,99 ----
}
/*
+ * NAME: codegen->cast()
+ * DESCRIPTION: generate code for a cast
+ */
+ static void cg_cast(what, idx, type)
+ char *what;
+ int idx;
+ unsigned short type;
+ {
+ if ((type & T_REF) != 0) {
+ type = T_ARRAY;
+ }
+ output("i_cast(%s + %d, %u)", what, idx, type);
+ }
+
+ /*
* NAME: codegen->lvalue()
* DESCRIPTION: generate code for an lvalue
*/
***************
*** 118,123 ****
--- 133,146 ----
output(", i_index_lvalue()");
break;
+ case N_CAST:
+ if (n->l.left->mod == T_STRING) {
+ cg_lvalue(n->l.left);
+ comma();
+ cg_cast("sp", 0, T_STRING);
+ break;
+ }
+ /* fall through */
default:
cg_expr(n->l.left, PUSH);
break;
***************
*** 127,147 ****
output(", i_index_lvalue()");
break;
}
- }
-
- /*
- * NAME: codegen->cast()
- * DESCRIPTION: generate code for a cast
- */
- static void cg_cast(what, idx, type)
- char *what;
- int idx;
- unsigned short type;
- {
- if ((type & T_REF) != 0) {
- type = T_ARRAY;
- }
- output("i_cast(%s + %d, %u)", what, idx, type);
}
/*
--- 150,155 ----
diff -cr /usr/home/clay/1.0.8/dgd/src/comp/codegeni.c dgd/src/comp/codegeni.c
*** /usr/home/clay/1.0.8/dgd/src/comp/codegeni.c Sat Jul 16 22:32:59 1994
--- dgd/src/comp/codegeni.c Thu Aug 18 17:27:48 1994
***************
*** 562,567 ****
--- 562,581 ----
}
/*
+ * NAME: codegen->cast()
+ * DESCRIPTION: generate code for a cast
+ */
+ static void cg_cast(type)
+ unsigned short type;
+ {
+ code_instr(I_CAST, 0);
+ if ((type & T_REF) != 0) {
+ type = T_ARRAY;
+ }
+ code_byte(type);
+ }
+
+ /*
* NAME: codegen->lvalue()
* DESCRIPTION: generate code for an lvalue
*/
***************
*** 600,605 ****
--- 614,626 ----
code_instr(I_INDEX_LVALUE, n->l.left->line);
break;
+ case N_CAST:
+ if (n->l.left->mod == T_STRING) {
+ cg_lvalue(n->l.left);
+ cg_cast(T_STRING);
+ break;
+ }
+ /* fall through */
default:
cg_expr(n->l.left, FALSE);
break;
***************
*** 608,627 ****
code_instr(I_INDEX_LVALUE, n->line);
break;
}
- }
-
- /*
- * NAME: codegen->cast()
- * DESCRIPTION: generate code for a cast
- */
- static void cg_cast(type)
- unsigned short type;
- {
- code_instr(I_CAST, 0);
- if ((type & T_REF) != 0) {
- type = T_ARRAY;
- }
- code_byte(type);
}
/*
--- 629,634 ----
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/host/atarist and dgd/src/host/atarist
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/host/mac and dgd/src/host/mac
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/host/minix68k and dgd/src/host/minix68k
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/host/pc and dgd/src/host/pc
Common subdirectories: /usr/home/clay/1.0.8/dgd/src/host/unix and dgd/src/host/unix