comparison lwasm/pragma.c @ 206:080bb67d84f2

Add export pragma Added a pragma "export" which causes all exportable symbols to be exported automatically.
author William Astle <lost@l-w.ca>
date Thu, 24 May 2012 17:28:15 -0600
parents b6b8c2645f5c
children 07e1fac76321
comparison
equal deleted inserted replaced
205:806e5fc6dd93 206:080bb67d84f2
54 { "importundefexport", "noimportundefexport", PRAGMA_IMPORTUNDEFEXPORT }, 54 { "importundefexport", "noimportundefexport", PRAGMA_IMPORTUNDEFEXPORT },
55 { "pcaspcr", "nopcaspcr", PRAGMA_PCASPCR }, 55 { "pcaspcr", "nopcaspcr", PRAGMA_PCASPCR },
56 { "shadow", "noshadow", PRAGMA_SHADOW }, 56 { "shadow", "noshadow", PRAGMA_SHADOW },
57 { "nolist", "list", PRAGMA_NOLIST }, 57 { "nolist", "list", PRAGMA_NOLIST },
58 { "autobranchlength", "noautobranchlength", PRAGMA_AUTOBRANCHLENGTH }, 58 { "autobranchlength", "noautobranchlength", PRAGMA_AUTOBRANCHLENGTH },
59 { "export", "noexport", PRAGMA_EXPORT },
59 { 0, 0, 0} 60 { 0, 0, 0}
60 }; 61 };
61 62
62 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr) 63 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr)
63 { 64 {