Changeset 3baec29 in mainline
- Timestamp:
- 2011-04-09T16:35:59Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2e08dce7
- Parents:
- f5c8046
- Location:
- uspace/app
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/pcc/cc/cpp/cpp.c
rf5c8046 r3baec29 37 37 #include <sys/wait.h> 38 38 #endif 39 #include < sys/stat.h>39 #include <compat/sys/stat.h> 40 40 41 41 #include <fcntl.h> 42 42 #ifdef HAVE_UNISTD_H 43 #include < unistd.h>43 #include <compat/unistd.h> 44 44 #endif 45 45 #include <stdio.h> … … 47 47 #include <stdlib.h> 48 48 #include <string.h> 49 #include < time.h>49 #include <compat/time.h> 50 50 #include <ctype.h> 51 51 … … 403 403 usch *osp; 404 404 usch *fn, *safefn; 405 int c , it;405 int c; 406 406 407 407 if (flslvl) … … 437 437 if (c != '\n') 438 438 goto bad; 439 it =SYSINC;439 (void) SYSINC; 440 440 safefn = fn; 441 441 } else { … … 870 870 usch *t; 871 871 usch *sb = stringbuf; 872 int dummy;873 872 874 873 flbuf(); … … 878 877 write (2, t, strlen((char *)t)); 879 878 } 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); 882 881 stringbuf = sb; 883 882 } … … 887 886 { 888 887 usch *t; 889 int dummy;890 888 891 889 flbuf(); … … 893 891 if (ifiles != NULL) { 894 892 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); 899 897 exit(1); 900 898 } … … 1863 1861 struct tree *w, *new, *last; 1864 1862 int len, cix, bit, fbit, svbit, ix, bitno; 1865 const usch *k, *m , *sm;1863 const usch *k, *m; 1866 1864 1867 1865 /* Count full string length */ … … 1898 1896 sp = (struct symtab *)w; 1899 1897 1900 sm =m = sp->namep;1898 m = sp->namep; 1901 1899 k = key; 1902 1900 -
uspace/app/pcc/cc/cpp/token.c
rf5c8046 r3baec29 45 45 #include <stdlib.h> 46 46 #include <string.h> 47 #include <c type.h>47 #include <compat/ctype.h> 48 48 #ifdef HAVE_UNISTD_H 49 49 #include <unistd.h> … … 183 183 { 184 184 struct symtab *nl; 185 int ch, i, ccnt , onemore;185 int ch, i, ccnt; 186 186 usch *cp; 187 187 … … 357 357 goto xloop; 358 358 } 359 onemore =i = ccnt = 0;359 i = ccnt = 0; 360 360 do { 361 361 yytext[i++] = (usch)ch;
Note:
See TracChangeset
for help on using the changeset viewer.