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
261261 return s;
262262 }
263263
264−/* push to value stack */
265264 void vset(t, v)
266265 {
267266 vt = t;
@@ -530,11 +529,15 @@ void unary() · 262 unmodified lines
530529 /* number */
531530 vset(VT_CONST, getn(tok, 10));
532531 next();
533− } else if (tok == '\'') {
532+ } else
533+#ifndef TINY
534+ if (tok == '\'') {
534535 vset(VT_CONST, getq(inp()));
535536 next(); /* skip char */
536537 skip('\'');
537− } else if (tok == '\"') {
538+ } else
539+#endif
540+ if (tok == '\"') {
538541 vset(VT_CONST | VT_PTRINC | VT_BYTE, glo);
539542 while (tok == '\"') {
540543 while((n = inp()) != 34) {
@@ -593,6 +596,9 @@ void unary() · 52 unmodified lines
593596 o(0xd0f7);
594597 }
595598 } else
599+ if (t == '+') {
600+ unary();
601+ } else
596602 #endif
597603 if (t == TOK_INC | t == TOK_DEC) {
598604 unary();
@@ -605,9 +611,8 @@ void unary() · 6 unmodified lines
605611 gv();
606612 o(0xd8f7); /* neg %eax */
607613 }
608− } else if (t == '+') {
609− unary();
610− } else {
614+ } else
615+ {
611616 vset(vat[t], vac[t]);
612617 /* forward reference or external reference ? */
613618 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