pike.git / src / patch_cc1.c

version» Context lines:

pike.git/src/patch_cc1.c:1:   /* -  * $Id: patch_cc1.c,v 1.1 2001/01/25 22:13:45 grubba Exp $ -  * + || 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. + */ +  + /*    * 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>   #include <fcntl.h>   #include <stdio.h>   
pike.git/src/patch_cc1.c:20:   {    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: patch_cc1.c,v 1.1 2001/01/25 22:13:45 grubba Exp $\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] == '.') {