Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Small cleanup | 48f7c95157d71e12b4ecea13315b6b4c144fc629 | lep | 2018-12-09 20:23:53 |
Increased types hashtable size | 8970d5c4bb8f9e4640f4c6a1805cf69369ebaea3 | lep | 2018-12-07 18:13:17 |
Fixed some warnings. | 334a10dc8faad2fa19eed06834273bff438f3955 | lep | 2018-11-07 22:45:22 |
Optimized ht_put by not calling ht_lookup. | 4a2c4d293b719c939b4d8f357adcc04ef26b1cbb | lep | 2018-11-07 20:51:00 |
Only add globals to uninitialized globals. | efb384fb661e08a855a5861189bf9409ebf9f557 | lep | 2018-11-07 14:56:38 |
Added unitialized check for globals. | d8a909d8ac08cc233f5cd988afac043cbaeb1b4e | lep | 2018-11-06 19:43:57 |
Fixed off-by-one error in str_append. | b458eb97a71bad87bbbbef610009da40e0dbf855 | lep | 2018-11-01 12:26:48 |
Added modulo operator. | 70b4c5117a0b84cddd0c35e07a47e3b2aaf847b8 | lep | 2018-08-09 19:46:14 |
realloc returns the new pointer... | c15eac9a4c2c2531a256125bc70272edbbf1d036 | lep | 2018-07-24 20:03:41 |
Track blocks | d2763ae8473a1c699aa2e5605922e4b500c83ed4 | lep | 2018-07-22 13:28:40 |
Cross compile and strip under FreeBSD | 296bd56c1347afb7a20337e02574f9196b48317a | lep | 2018-07-22 11:55:29 |
Track opening/closing blocks. | 49b23df64b209106cce92e417ee13ecebb0bc009 | lep | 2018-07-09 09:37:01 |
Replace strncat with str_append. | ad968e040f315ed3cf6580e46587342897839529 | lep | 2018-03-21 13:53:11 |
Do not report arrays as uninitialized when the index is missing. | 72e93bd234743a438fb0a5c105514bf732c22b89 | lep | 2017-12-20 14:59:10 |
Better error messages. | ad8342582ac3617280f471d889b1766be272858b | lep | 2017-11-15 17:52:08 |
Handle wrong shadowing. | 0500a60ef11f39c4f33044e26c29798f6d8445b5 | lep | 2017-02-19 14:37:21 |
Added checks for natives which behave bad in a globals block. | 3e6ac270dda9ad695723d3bc2aac4d69a2fdf87a | lep | 2017-02-19 10:57:33 |
Update readme.md | 2c9177dd5482ed8c4c1464a4ade37c301205fe6b | lep | 2017-02-01 17:42:49 |
Public git release. | 2da78f3665ac4f53f5833c6a48ebbeaabea0cd49 | lep | 2017-02-01 16:42:21 |
Better ifdef-handling for aligned malloc. | d95ebafa7204e49d84a9fed8cdeb01713dd0bc82 | lep | 2017-02-01 16:41:07 |
File | Lines added | Lines deleted |
---|---|---|
grammar.y | 8 | 9 |
File grammar.y changed (mode: 100644) (index 289fc3d..6859016) | |||
... | ... | typeandname: type rid { $$.tan = newtypeandname($1.ty, $2.str); } | |
691 | 691 | ||
692 | 692 | type: primtype { $$.ty = $1.ty; } | type: primtype { $$.ty = $1.ty; } |
693 | 693 | | rid { | | rid { |
694 | if (ht_lookup(&types, $1.str) == NULL) { | ||
695 | char buf[1024]; | ||
696 | snprintf(buf, 1024, "Undefined type %s", $1.str); | ||
697 | getsuggestions($1.str, buf, 1024, 1, &types); | ||
698 | yyerrorex(semanticerror, buf); | ||
699 | $$.ty = gAny; | ||
700 | } | ||
701 | else | ||
702 | $$.ty = ht_lookup(&types, $1.str); | ||
694 | $$.ty = ht_lookup(&types, $1.str); | ||
695 | if ($$.ty == NULL) { | ||
696 | char buf[1024]; | ||
697 | snprintf(buf, 1024, "Undefined type %s", $1.str); | ||
698 | getsuggestions($1.str, buf, 1024, 1, &types); | ||
699 | yyerrorex(semanticerror, buf); | ||
700 | $$.ty = gAny; | ||
701 | } | ||
703 | 702 | } | } |
704 | 703 | ; | ; |
705 | 704 |