History

remove unused features for TINY mode

bellard committed 25 years ago

Commit 586b05f1 parent 3115a8a1 file · +11 −6Browse files

Unified · Split

tcc.c+11−6
@@ -261,7 +261,6 @@ int oad(c, s) · 260 unmodified lines
261 return s;261 return s;
262}262}
263 263
264/* push to value stack */
265void vset(t, v)264void vset(t, v)
266{265{
267 vt = t;266 vt = t;
@@ -530,11 +529,15 @@ void unary() · 262 unmodified lines
530 /* number */529 /* number */
531 vset(VT_CONST, getn(tok, 10));530 vset(VT_CONST, getn(tok, 10));
532 next();531 next();
533 } else if (tok == '\'') {532 } else
533#ifndef TINY
534 if (tok == '\'') {
534 vset(VT_CONST, getq(inp()));535 vset(VT_CONST, getq(inp()));
535 next(); /* skip char */536 next(); /* skip char */
536 skip('\''); 537 skip('\'');
537 } else if (tok == '\"') {538 } else
539#endif
540 if (tok == '\"') {
538 vset(VT_CONST | VT_PTRINC | VT_BYTE, glo);541 vset(VT_CONST | VT_PTRINC | VT_BYTE, glo);
539 while (tok == '\"') {542 while (tok == '\"') {
540 while((n = inp()) != 34) {543 while((n = inp()) != 34) {
@@ -593,6 +596,9 @@ void unary() · 52 unmodified lines
593 o(0xd0f7);596 o(0xd0f7);
594 }597 }
595 } else 598 } else
599 if (t == '+') {
600 unary();
601 } else
596#endif602#endif
597 if (t == TOK_INC | t == TOK_DEC) {603 if (t == TOK_INC | t == TOK_DEC) {
598 unary();604 unary();
@@ -605,9 +611,8 @@ void unary() · 6 unmodified lines
605 gv();611 gv();
606 o(0xd8f7); /* neg %eax */612 o(0xd8f7); /* neg %eax */
607 }613 }
608 } else if (t == '+') {614 } else
609 unary();615 {
610 } else {
611 vset(vat[t], vac[t]);616 vset(vat[t], vac[t]);
612 /* forward reference or external reference ? */617 /* forward reference or external reference ? */
613 if (vt == 0) {618 if (vt == 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t