fix typos

This commit is contained in:
Josh Coalson 2004-12-30 03:55:29 +00:00
parent 2c75bd8b80
commit 2a9ae6a8bd
4 changed files with 21 additions and 21 deletions

View File

@ -268,10 +268,10 @@ manpage.1: manpage.sgml
<term><option>--import-cuesheet-from=file</option></term> <term><option>--import-cuesheet-from=file</option></term>
<listitem> <listitem>
<para> <para>
Import a cuesheet from a file. Only one FLAC file may be Import a cuesheet from a file. Use '-' for stdin. Only one
specified. A seekpoint will be added for each index point in FLAC file may be specified. A seekpoint will be added for each
the cuesheet to the SEEKTABLE unless --no-cued-seekpoints is index point in the cuesheet to the SEEKTABLE unless
specified. --no-cued-seekpoints is specified.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -280,7 +280,7 @@ manpage.1: manpage.sgml
<listitem> <listitem>
<para> <para>
Export CUESHEET block to a cuesheet file, suitable for use by Export CUESHEET block to a cuesheet file, suitable for use by
CD authoring software. Use '-' for stdin. Only one FLAC file CD authoring software. Use '-' for stdout. Only one FLAC file
may be specified on the command line. may be specified on the command line.
</para> </para>
</listitem> </listitem>
@ -365,7 +365,7 @@ manpage.1: manpage.sgml
<term><option>--except-block-type=type[,type[...]]</option></term> <term><option>--except-block-type=type[,type[...]]</option></term>
<listitem> <listitem>
<para> <para>
An optional comma-separated list of block types to included An optional comma-separated list of block types to be included
or ignored with this option. Use only one of --block-type or or ignored with this option. Use only one of --block-type or
--except-block-type. The valid block types are: STREAMINFO, --except-block-type. The valid block types are: STREAMINFO,
PADDING, APPLICATION, SEEKTABLE, VORBIS_COMMENT. You may PADDING, APPLICATION, SEEKTABLE, VORBIS_COMMENT. You may

View File

@ -183,7 +183,7 @@ FLAC__bool parse_options(int argc, char *argv[], CommandLineOptions *options)
if(options->num_files > 0) { if(options->num_files > 0) {
unsigned i = 0; unsigned i = 0;
if(0 == (options->filenames = malloc(sizeof(char *) * options->num_files))) if(0 == (options->filenames = (char**)malloc(sizeof(char*) * options->num_files)))
die("out of memory allocating space for file names list"); die("out of memory allocating space for file names list");
while(share__optind < argc) while(share__optind < argc)
options->filenames[i++] = local_strdup(argv[share__optind++]); options->filenames[i++] = local_strdup(argv[share__optind++]);
@ -655,14 +655,14 @@ void append_new_operation(CommandLineOptions *options, Operation operation)
{ {
if(options->ops.capacity == 0) { if(options->ops.capacity == 0) {
options->ops.capacity = 50; options->ops.capacity = 50;
if(0 == (options->ops.operations = malloc(sizeof(Operation) * options->ops.capacity))) if(0 == (options->ops.operations = (Operation*)malloc(sizeof(Operation) * options->ops.capacity)))
die("out of memory allocating space for option list"); die("out of memory allocating space for option list");
memset(options->ops.operations, 0, sizeof(Operation) * options->ops.capacity); memset(options->ops.operations, 0, sizeof(Operation) * options->ops.capacity);
} }
if(options->ops.capacity <= options->ops.num_operations) { if(options->ops.capacity <= options->ops.num_operations) {
unsigned original_capacity = options->ops.capacity; unsigned original_capacity = options->ops.capacity;
options->ops.capacity *= 4; options->ops.capacity *= 4;
if(0 == (options->ops.operations = realloc(options->ops.operations, sizeof(Operation) * options->ops.capacity))) if(0 == (options->ops.operations = (Operation*)realloc(options->ops.operations, sizeof(Operation) * options->ops.capacity)))
die("out of memory allocating space for option list"); die("out of memory allocating space for option list");
memset(options->ops.operations + original_capacity, 0, sizeof(Operation) * (options->ops.capacity - original_capacity)); memset(options->ops.operations + original_capacity, 0, sizeof(Operation) * (options->ops.capacity - original_capacity));
} }
@ -674,14 +674,14 @@ void append_new_argument(CommandLineOptions *options, Argument argument)
{ {
if(options->args.capacity == 0) { if(options->args.capacity == 0) {
options->args.capacity = 50; options->args.capacity = 50;
if(0 == (options->args.arguments = malloc(sizeof(Argument) * options->args.capacity))) if(0 == (options->args.arguments = (Argument*)malloc(sizeof(Argument) * options->args.capacity)))
die("out of memory allocating space for option list"); die("out of memory allocating space for option list");
memset(options->args.arguments, 0, sizeof(Argument) * options->args.capacity); memset(options->args.arguments, 0, sizeof(Argument) * options->args.capacity);
} }
if(options->args.capacity <= options->args.num_arguments) { if(options->args.capacity <= options->args.num_arguments) {
unsigned original_capacity = options->args.capacity; unsigned original_capacity = options->args.capacity;
options->args.capacity *= 4; options->args.capacity *= 4;
if(0 == (options->args.arguments = realloc(options->args.arguments, sizeof(Argument) * options->args.capacity))) if(0 == (options->args.arguments = (Argument*)realloc(options->args.arguments, sizeof(Argument) * options->args.capacity)))
die("out of memory allocating space for option list"); die("out of memory allocating space for option list");
memset(options->args.arguments + original_capacity, 0, sizeof(Argument) * (options->args.capacity - original_capacity)); memset(options->args.arguments + original_capacity, 0, sizeof(Argument) * (options->args.capacity - original_capacity));
} }
@ -897,7 +897,7 @@ FLAC__bool parse_block_number(const char *in, Argument_BlockNumber *out)
/* make space */ /* make space */
FLAC__ASSERT(out->num_entries > 0); FLAC__ASSERT(out->num_entries > 0);
if(0 == (out->entries = malloc(sizeof(unsigned) * out->num_entries))) if(0 == (out->entries = (unsigned*)malloc(sizeof(unsigned) * out->num_entries)))
die("out of memory allocating space for option list"); die("out of memory allocating space for option list");
/* load 'em up */ /* load 'em up */
@ -936,7 +936,7 @@ FLAC__bool parse_block_type(const char *in, Argument_BlockType *out)
/* make space */ /* make space */
FLAC__ASSERT(out->num_entries > 0); FLAC__ASSERT(out->num_entries > 0);
if(0 == (out->entries = malloc(sizeof(Argument_BlockTypeEntry) * out->num_entries))) if(0 == (out->entries = (Argument_BlockTypeEntry*)malloc(sizeof(Argument_BlockTypeEntry) * out->num_entries)))
die("out of memory allocating space for option list"); die("out of memory allocating space for option list");
/* load 'em up */ /* load 'em up */

View File

@ -57,7 +57,7 @@ static void usage_summary(FILE *out)
fprintf(out, " (the default if more than one FLAC file is specified)\n"); fprintf(out, " (the default if more than one FLAC file is specified)\n");
fprintf(out, "--no-filename Do not prefix each output line with the FLAC file name\n"); fprintf(out, "--no-filename Do not prefix each output line with the FLAC file name\n");
fprintf(out, " (the default if only one FLAC file is specified)\n"); fprintf(out, " (the default if only one FLAC file is specified)\n");
fprintf(out, "--no-utf8-convert Do not convert Vorbis comments from UTF-8 to local charset,\n"); fprintf(out, "--no-utf8-convert Do not convert tags from UTF-8 to local charset,\n");
fprintf(out, " or vice versa. This is useful for scripts.\n"); fprintf(out, " or vice versa. This is useful for scripts.\n");
fprintf(out, "--dont-use-padding By default metaflac tries to use padding where possible\n"); fprintf(out, "--dont-use-padding By default metaflac tries to use padding where possible\n");
fprintf(out, " to avoid rewriting the entire file if the metadata size\n"); fprintf(out, " to avoid rewriting the entire file if the metadata size\n");
@ -130,12 +130,12 @@ int long_usage(const char *message, ...)
fprintf(out, "--export-tags-to=FILE Export tags to a file. Use '-' for stdin. Each line\n"); fprintf(out, "--export-tags-to=FILE Export tags to a file. Use '-' for stdin. Each line\n");
fprintf(out, " will be of the form NAME=VALUE. Specify\n"); fprintf(out, " will be of the form NAME=VALUE. Specify\n");
fprintf(out, " --no-utf8-convert if necessary.\n"); fprintf(out, " --no-utf8-convert if necessary.\n");
fprintf(out, "--import-cuesheet-from=FILE Import a cuesheet from a file. Only one FLAC\n"); fprintf(out, "--import-cuesheet-from=FILE Import a cuesheet from a file. Use '-' for stdin.\n");
fprintf(out, " file may be specified. A seekpoint will be added for\n"); fprintf(out, " Only one FLAC file may be specified. A seekpoint will be\n");
fprintf(out, " each index point in the cuesheet to the SEEKTABLE unless\n"); fprintf(out, " added for each index point in the cuesheet to the SEEKTABLE\n");
fprintf(out, " --no-cued-seekpoints is specified.\n"); fprintf(out, " unless --no-cued-seekpoints is specified.\n");
fprintf(out, "--export-cuesheet-to=FILE Export CUESHEET block to a cuesheet file, suitable\n"); fprintf(out, "--export-cuesheet-to=FILE Export CUESHEET block to a cuesheet file, suitable\n");
fprintf(out, " for use by CD authoring software. Use '-' for stdin.\n"); fprintf(out, " for use by CD authoring software. Use '-' for stdout.\n");
fprintf(out, " Only one FLAC file may be specified on the command line.\n"); fprintf(out, " Only one FLAC file may be specified on the command line.\n");
fprintf(out, "--add-replay-gain Calculates the title and album gains/peaks of the given\n"); fprintf(out, "--add-replay-gain Calculates the title and album gains/peaks of the given\n");
fprintf(out, " FLAC files as if all the files were part of one album,\n"); fprintf(out, " FLAC files as if all the files were part of one album,\n");
@ -180,7 +180,7 @@ int long_usage(const char *message, ...)
fprintf(out, "\n"); fprintf(out, "\n");
fprintf(out, " --block-type=type[,type[...]]\n"); fprintf(out, " --block-type=type[,type[...]]\n");
fprintf(out, " --except-block-type=type[,type[...]]\n"); fprintf(out, " --except-block-type=type[,type[...]]\n");
fprintf(out, " An optional comma-separated list of block types to included or ignored\n"); fprintf(out, " An optional comma-separated list of block types to be included or ignored\n");
fprintf(out, " with this option. Use only one of --block-type or --except-block-type.\n"); fprintf(out, " with this option. Use only one of --block-type or --except-block-type.\n");
fprintf(out, " The valid block types are: STREAMINFO, PADDING, APPLICATION, SEEKTABLE,\n"); fprintf(out, " The valid block types are: STREAMINFO, PADDING, APPLICATION, SEEKTABLE,\n");
fprintf(out, " VORBIS_COMMENT. You may narrow down the types of APPLICATION blocks\n"); fprintf(out, " VORBIS_COMMENT. You may narrow down the types of APPLICATION blocks\n");

View File

@ -64,7 +64,7 @@ void local_strcat(char **dest, const char *source)
if(nsource == 0) if(nsource == 0)
return; return;
*dest = realloc(*dest, ndest + nsource + 1); *dest = (char*)realloc(*dest, ndest + nsource + 1);
if(0 == *dest) if(0 == *dest)
die("out of memory growing string"); die("out of memory growing string");
strcpy((*dest)+ndest, source); strcpy((*dest)+ndest, source);