Changeset 2e08dce in mainline


Ignore:
Timestamp:
2011-04-09T18:39:10Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ab6fc2
Parents:
3baec29
Message:

cpp: minor changes and added binary to the iso image

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    r3baec29 r2e08dce  
    124124
    125125RD_APPS_NON_ESSENTIAL = \
     126        $(USPACE_PATH)/app/cpp/cpp \
    126127        $(USPACE_PATH)/app/edit/edit \
    127128        $(USPACE_PATH)/app/kill/kill \
  • uspace/app/pcc/cc/cpp/Makefile

    r3baec29 r2e08dce  
    3737EXTRA_CFLAGS = -I$(LIBCOMPAT_PREFIX) -I$(MIPDIR) -I$(ARCHDIR)
    3838EXTRA_CLEAN = y.tab.c y.tab.h
    39 DEFS = -DCPP_DEBUG -Dfree=free
     39DEFS = -DCPP_DEBUG -Dfree=free -DCPPBUF=16384
    4040BINARY = cpp
    4141
  • uspace/app/pcc/cc/cpp/cpp.c

    r3baec29 r2e08dce  
    275275                        error("Can't creat %s", argv[1]);
    276276        } else
    277                 ofd = 1; /* stdout */
     277                ofd = fileno(stdout);
    278278        istty = isatty(ofd);
    279279
  • uspace/app/pcc/cc/cpp/token.c

    r3baec29 r2e08dce  
    800800                        error("Limit for nested includes exceeded");
    801801        } else {
    802                 ic->infil = 0;
     802                error("Reading from stdin is disabled on HelenOS.");
     803                ic->infil = fileno(stdin);
    803804                ic->orgfn = ic->fname = (const usch *)"<stdin>";
    804805        }
Note: See TracChangeset for help on using the changeset viewer.