Print this page
cpp: define 'sun', like /usr/lib/cpp does, unfortunately

Split Close
Expand all
Collapse all
          --- old/cpp/cpp.c
          +++ new/cpp/cpp.c
↓ open down ↓ 1574 lines elided ↑ open up ↑
1575 1575          ifnloc=ppsym("ifndef");
1576 1576          ifloc=ppsym("if");
1577 1577          lneloc=ppsym("line");
1578 1578          idtloc=ppsym("ident");
1579 1579          pragmaloc=ppsym("pragma");
1580 1580          errorloc=ppsym("error");
1581 1581          for (i=sizeof(macbit)/sizeof(macbit[0]); --i>=0; )
1582 1582                  macbit[i]=0;
1583 1583  
1584 1584          if (! nopredef) {
1585      -# if unix
1586 1585          ysysloc=stsym("unix");
1587      -# endif
     1586 +        ysysloc=stsym("sun");
1588 1587  # if __sparc__
1589 1588          varloc=stsym ("sparc");
1590 1589  # endif
1591 1590  # if __i386__
1592 1591          varloc=stsym ("i386");
1593 1592  # endif
1594 1593          }
1595 1594          ulnloc=stsym ("__LINE__");
1596 1595          uflloc=stsym ("__FILE__");
1597 1596          varloc=stsym ("__BUILTIN_VA_ARG_INCR");
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX