scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 091ac73575727b8f19c47d1af325874f0b538993
parent edc00e1ea7adf5c5c6223dff53843ab20a984e0a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Apr 2014 11:05:19 +0200

Add more comments about missed features

Substraction between pointers is a valid operation,
and it generates the number of elements between
the pointers.

Diffstat:
expr.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/expr.c b/expr.c @@ -168,6 +168,7 @@ arithmetic(char op, Node *np1, Node *np2) tp1 = np1->type; case PTR: pointer: + /* TODO: substraction between pointers */ switch (op) { case OADD: case OSUB: tp3 = tp1->type;