summaryrefslogtreecommitdiff
path: root/gen.tab
diff options
context:
space:
mode:
authorbehdad <behdad>2005-07-30 09:06:27 +0000
committerbehdad <behdad>2005-07-30 09:06:27 +0000
commite8bca571a125502fe0735cf45d6af1d3a85a49c7 (patch)
tree05ee6f46cecbb78a212ef351444a4669928939b6 /gen.tab
parent6f84aff9f7901178ef9e7e2e463a04e639b5a606 (diff)
Small changes to shut gcc warnings up.
Diffstat (limited to 'gen.tab')
-rw-r--r--gen.tab/gen-unicode-version.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/gen.tab/gen-unicode-version.c b/gen.tab/gen-unicode-version.c
index cdd7d6f..439d388 100644
--- a/gen.tab/gen-unicode-version.c
+++ b/gen.tab/gen-unicode-version.c
@@ -1,10 +1,10 @@
/* FriBidi
* gen-unicode-version.c - generate fribidi-unicode-version.h
*
- * $Id: gen-unicode-version.c,v 1.9 2005-06-07 08:43:17 behdad Exp $
+ * $Id: gen-unicode-version.c,v 1.10 2005-07-30 09:06:28 behdad Exp $
* $Author: behdad $
- * $Date: 2005-06-07 08:43:17 $
- * $Revision: 1.9 $
+ * $Date: 2005-07-30 09:06:28 $
+ * $Revision: 1.10 $
* $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/gen.tab/gen-unicode-version.c,v $
*
* Author:
@@ -108,7 +108,7 @@ read_file (
const char *where;
if (READ_VERSION ("Version ") || READ_VERSION ("Unicode "))
- {
+ {
found = 1;
break;
}
@@ -147,8 +147,7 @@ gen_unicode_version (
const char *data_file_type
)
{
- fprintf (stderr,
- "Generating `" outputname "'\n");
+ fprintf (stderr, "Generating `" outputname "'\n");
printf ("/* " outputname "\n * generated by " appname " (" FRIBIDI_NAME " "
FRIBIDI_VERSION ")\n" " * from the file %s */\n\n", data_file_type);
@@ -180,21 +179,23 @@ main (
int found = 0;
if (argc < 2)
- die ("usage:\n " appname " /path/to/a/UCD/file [/path/to/more/UCD/files ...]");
+ die ("usage:\n " appname
+ " /path/to/a/UCD/file [/path/to/more/UCD/files ...]");
{
const char *data_file_name;
init ();
- for (i = 1; i < argc && !found; i++) {
- data_file_name = argv[i];
- data_file_type = strrchr (data_file_name, '/');
- if (data_file_type)
- data_file_type++;
- else
- data_file_type = data_file_name;
- found = read_data (data_file_type, data_file_name);
- }
+ for (i = 1; i < argc && !found; i++)
+ {
+ data_file_name = argv[i];
+ data_file_type = strrchr (data_file_name, '/');
+ if (data_file_type)
+ data_file_type++;
+ else
+ data_file_type = data_file_name;
+ found = read_data (data_file_type, data_file_name);
+ }
if (!found)
die ("error: version not found");
gen_unicode_version (data_file_type);