pike.git / src / patch_cc1.c

version» Context lines:

pike.git/src/patch_cc1.c:24:   {    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] == '.') {