~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/petcat.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-07-12 10:12:00 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050712101200-sesaehw0y62yoo6o
Tags: 1.16-4
* Apply patch from Jens Seidel <jensseidel@users.sf.net> to de.po,
  fixing German translation issues (closes: #313846)
* Standards-Version: 3.6.1.1 (going to 3.6.2 is going to require me to
  take a closer look at the menus)

Show diffs side-by-side

added added

removed removed

Lines of Context:
608
608
 
609
609
            source = stdin;
610
610
 
611
 
            for (plen = 0, p = MagicHeaderP00; plen < 8 &&
612
 
                 (c = getc(source)) != EOF && (unsigned)c == *p; ++plen, ++p);
 
611
            for (plen = 0, p = MagicHeaderP00; plen < 8 &&
 
612
                (c = getc(source)) != EOF && (unsigned)c == *p; ++plen, ++p);
613
613
 
614
614
            if (plen == 8) {
615
615
                /* skip the rest of header */
969
969
 
970
970
        /* prevent list protection from terminating listing */
971
971
 
972
 
        while (((int)c = getc(source)) != EOF && !c);
 
972
        while ((c = getc(source)) != EOF && !c);
973
973
 
974
 
        if (c == 0x12 && !line[2] && !line[3]) {  /* 00 00 12 22 */
 
974
        if (c == 0x12 && !line[2] && !line[3]) {  /* 00 00 12 22 */
975
975
            directory++;
976
 
        }
 
976
        }
977
977
 
978
978
        do {
979
979
            if (c == 0x22)
1064
1064
 
1065
1065
            _p_toascii((int)c, ctrls);  /* convert character */
1066
1066
 
1067
 
        } while (((int)c = getc(source)) != EOF && c);
1068
 
        fprintf(dest, "\n");
 
1067
        } while ((c = getc(source)) != EOF && c);
 
1068
        fprintf(dest, "\n");
1069
1069
 
1070
1070
    }      /* line */
1071
1071
 
1072
1072
#ifdef DEBUG
1073
1073
    printf("\n c %02x  EOF %d  *line %d  sysflg %d\n",
1074
 
           c, feof(source), *line, sysflg);
 
1074
           c, feof(source), *line, sysflg);
1075
1075
#endif
1076
1076
 
1077
1077
    return (!feof(source) && (*line | line[1]) && sysflg);
1093
1093
    while((p1 = p2 = (unsigned char *)fgets(line, 255, source)) != NULL) {
1094
1094
 
1095
1095
#ifndef GEMDOS
1096
 
        if (sscanf(line, "%d%n", &linum, &len) == 1)
 
1096
        if (sscanf(line, "%d%n", &linum, &len) == 1)
1097
1097
            p2 += len;
1098
1098
#else
1099
1099
        if (sscanf(line, "%d", &linum) == 1)