pike.git / src / patch_cc1.c

version» Context lines:

pike.git/src/patch_cc1.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id$ +    */      /*    * Patch gcc so that it doesn't use .ua{half,word} directives.    *    * Henrik Grubbström 2000-01-25    */      #include <sys/types.h>   #include <sys/stat.h>
pike.git/src/patch_cc1.c:25:   {    int fd;    int offset = 0;    int len;    if (argc < 2) {    fprintf(stderr, "Usage:\n"    "\t%s <cc1>\n", argv[0]);    exit(1);    }    -  if (!strcmp(argv[1], "-v")) { -  fprintf(stdout, "$Id$\n"); -  exit(0); -  } -  +     if ((fd = open(argv[1], O_RDONLY)) < 0) {    fprintf(stderr, "Failed to open \"%s\" for reading.\n", argv[1]);    exit(1);    }       while ((len = read(fd, buffer + offset, BUFSIZE+OVERLAP-offset)) > 0) {    int i;    len += offset;    for(i=0; i < len-8; i++) {    if (buffer[i] == '.') {