mescc: Add missing builtins.

* module/language/c99/compiler.mes (i386:type-alist): Add missing
  builtins.  TODO: identify and handle unsigned.
This commit is contained in:
Jan Nieuwenhuizen 2017-05-27 09:28:08 +02:00
parent bade7d5519
commit f6671eaf3e

View file

@ -1172,7 +1172,16 @@
(define i386:type-alist (define i386:type-alist
'(("char" . (builtin 1 #f)) '(("char" . (builtin 1 #f))
("short" . (builtin 2 #f)) ("short" . (builtin 2 #f))
("int" . (builtin 4 #f)))) ("int" . (builtin 4 #f))
("long" . (builtin 4 #f))
("long long" . (builtin 8 #f))
;; FIXME sign
("unsigned char" . (builtin 1 #f))
("unsigned short" . (builtin 2 #f))
("unsigned" . (builtin 4 #f))
("unsigned int" . (builtin 4 #f))
("unsigned long" . (builtin 4 #f))
("unsigned long long" . (builtin 8 #f))))
(define (type->size info o) (define (type->size info o)
(pmatch o (pmatch o