Changeset 3baec29 in mainline for uspace/app/pcc/cc/cpp/cpp.c


Ignore:
Timestamp:
2011-04-09T16:35:59Z (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:
2e08dce
Parents:
f5c8046
Message:

cpp: will it blend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/pcc/cc/cpp/cpp.c

    rf5c8046 r3baec29  
    3737#include <sys/wait.h>
    3838#endif
    39 #include <sys/stat.h>
     39#include <compat/sys/stat.h>
    4040
    4141#include <fcntl.h>
    4242#ifdef HAVE_UNISTD_H
    43 #include <unistd.h>
     43#include <compat/unistd.h>
    4444#endif
    4545#include <stdio.h>
     
    4747#include <stdlib.h>
    4848#include <string.h>
    49 #include <time.h>
     49#include <compat/time.h>
    5050#include <ctype.h>
    5151
     
    403403        usch *osp;
    404404        usch *fn, *safefn;
    405         int c, it;
     405        int c;
    406406
    407407        if (flslvl)
     
    437437                if (c != '\n')
    438438                        goto bad;
    439                 it = SYSINC;
     439                (void) SYSINC;
    440440                safefn = fn;
    441441        } else {
     
    870870        usch *t;
    871871        usch *sb = stringbuf;
    872         int dummy;
    873872
    874873        flbuf();
     
    878877                write (2, t, strlen((char *)t));
    879878        }
    880         dummy = write (2, s, strlen((char *)s));
    881         dummy = write (2, "\n", 1);
     879        write (2, s, strlen((char *)s));
     880        write (2, "\n", 1);
    882881        stringbuf = sb;
    883882}
     
    887886{
    888887        usch *t;
    889         int dummy;
    890888
    891889        flbuf();
     
    893891        if (ifiles != NULL) {
    894892                t = sheap("%s:%d: error: ", ifiles->fname, ifiles->lineno);
    895                 dummy = write (2, t, strlen((char *)t));
    896         }
    897         dummy = write (2, s, strlen((char *)s));
    898         dummy = write (2, "\n", 1);
     893                write (2, t, strlen((char *)t));
     894        }
     895        write (2, s, strlen((char *)s));
     896        write (2, "\n", 1);
    899897        exit(1);
    900898}
     
    18631861        struct tree *w, *new, *last;
    18641862        int len, cix, bit, fbit, svbit, ix, bitno;
    1865         const usch *k, *m, *sm;
     1863        const usch *k, *m;
    18661864
    18671865        /* Count full string length */
     
    18981896        sp = (struct symtab *)w;
    18991897
    1900         sm = m = sp->namep;
     1898        m = sp->namep;
    19011899        k = key;
    19021900
Note: See TracChangeset for help on using the changeset viewer.