shithub: scc

Download patch

ref: 091ac73575727b8f19c47d1af325874f0b538993
parent: edc00e1ea7adf5c5c6223dff53843ab20a984e0a
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Apr 16 07:05:19 EDT 2014

Add more comments about missed features

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

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