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_cc1.c,v 1.2 2002/10/08 20:22:24 nilsson Exp $ + \*/ +    /* -  * $Id: patch_cc1.c,v 1.1 2001/01/25 22:13:45 grubba Exp $ -  * +     * 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:21:    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"); +  fprintf(stdout, "$Id: patch_cc1.c,v 1.2 2002/10/08 20:22:24 nilsson 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;