Переглянути джерело

Shortened long lines.

Added error: tag to error message.
Corrected output file format error message.
master
Svend Sorensen 18 роки тому
джерело
коміт
4cd9c91d9c
3 змінених файлів з 15 додано та 14 видалено
  1. +4
    -4
      src/tools/cuebreakpoints.c
  2. +6
    -6
      src/tools/cueconvert.c
  3. +5
    -4
      src/tools/cueprint.c

+ 4
- 4
src/tools/cuebreakpoints.c Переглянути файл

@@ -110,8 +110,8 @@ int breaks (char *name, int format, int gaps)
Cd *cd = NULL;

if (NULL == (cd = cf_parse(name, &format))) {
fprintf(stderr, "%s: error: unable to parse input file "
"`%s'\n", progname, name);
fprintf(stderr, "%s: error: unable to parse input file"
" `%s'\n", progname, name);
return -1;
}

@@ -155,8 +155,8 @@ int main (int argc, char **argv)
} else if (0 == strcmp("toc", optarg)) {
format = TOC;
} else {
fprintf(stderr, "%s: error: unknown input file "
"format `%s'\n", progname, optarg);
fprintf(stderr, "%s: error: unknown input file"
" format `%s'\n", progname, optarg);
usage(1);
}
break;


+ 6
- 6
src/tools/cueconvert.c Переглянути файл

@@ -49,8 +49,8 @@ int convert (char *iname, int iformat, char *oname, int oformat)
Cd *cd = NULL;

if (NULL == (cd = cf_parse(iname, &iformat))) {
fprintf(stderr, "%s: error: unable to parse input file "
"`%s'\n", progname, iname);
fprintf(stderr, "%s: error: unable to parse input file"
" `%s'\n", progname, iname);
return -1;
}

@@ -105,8 +105,8 @@ int main (int argc, char **argv)
} else if (0 == strcmp("toc", optarg)) {
iformat = TOC;
} else {
fprintf(stderr, "%s: error: unknown input file "
"format `%s'\n", progname, optarg);
fprintf(stderr, "%s: error: unknown input file"
" format `%s'\n", progname, optarg);
usage(1);
}
break;
@@ -116,8 +116,8 @@ int main (int argc, char **argv)
} else if (0 == strcmp("toc", optarg)) {
oformat = TOC;
} else {
fprintf(stderr, "%s: error: unknown input file "
"format `%s'\n", progname, optarg);
fprintf(stderr, "%s: error: unknown output file"
" format `%s'\n", progname, optarg);
usage(1);
}
break;


+ 5
- 4
src/tools/cueprint.c Переглянути файл

@@ -331,7 +331,8 @@ int info (char *name, int format, int trackno, char *d_template, char *t_templat
int ntrack;

if (NULL == (cd = cf_parse(name, &format))) {
fprintf(stderr, "%s: input file error\n", name);
fprintf(stderr, "%s: error: unable to parse input file"
" `%s'\n", progname, name);
return -1;
}

@@ -348,7 +349,7 @@ int info (char *name, int format, int trackno, char *d_template, char *t_templat
} else if (0 < trackno && ntrack >= trackno) {
cd_printf(t_template, cd, trackno);
} else {
fprintf(stderr, "%s: track number out of range\n", progname);
fprintf(stderr, "%s: error: track number out of range\n", progname);
return -1;
}

@@ -452,8 +453,8 @@ int main (int argc, char **argv)
} else if (0 == strcmp("toc", optarg)) {
format = TOC;
} else {
fprintf(stderr, "%s: error: unknown input file "
"format `%s'\n", progname, optarg);
fprintf(stderr, "%s: error: unknown input file"
" format `%s'\n", progname, optarg);
usage(1);
}
break;


Завантаження…
Відмінити
Зберегти