Imported Upstream version 1.0.8
[platform/upstream/fribidi.git] / gen.tab / gen-unicode-version.c
index be9373b..35306ca 100644 (file)
@@ -1,12 +1,6 @@
 /* FriBidi
  * gen-unicode-version.c - generate fribidi-unicode-version.h
  *
- * $Id: gen-unicode-version.c,v 1.12 2006-01-31 03:23:12 behdad Exp $
- * $Author: behdad $
- * $Date: 2006-01-31 03:23:12 $
- * $Revision: 1.12 $
- * $Source: /home/behdad/src/fdo/fribidi/togit/git/../fribidi/fribidi2/gen.tab/gen-unicode-version.c,v $
- *
  * Author:
  *   Behdad Esfahbod, 2001, 2002, 2004
  *
  * 
  * You should have received a copy of the GNU Lesser General Public License
  * along with this library, in a file named COPYING; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA
  * 
- * For licensing issues, contact <license@farsiweb.info>.
+ * For licensing issues, contact <fribidi.license@gmail.com>.
  */
 
 #include <common.h>
 
 #include <stdio.h>
-#if STDC_HEADERS+0
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#ifdef STDC_HEADERS
 # include <stdlib.h>
 # include <stddef.h>
 #else
 #  include <stdlib.h>
 # endif
 #endif
-#if HAVE_STRING_H+0
+#ifdef HAVE_STRING_H
 # if !STDC_HEADERS && HAVE_MEMORY_H
 #  include <memory.h>
 # endif
 # include <string.h>
 #endif
-#if HAVE_STRINGS_H+0
+#ifdef HAVE_STRINGS_H
 # include <strings.h>
 #endif
 
@@ -132,7 +130,6 @@ read_data (
   FILE *f;
   int status;
 
-  fprintf (stderr, "Reading `%s'\n", data_file_name);
   if (!(f = fopen (data_file_name, "rt")))
     die2 ("error: cannot open `%s' for reading", data_file_name);
 
@@ -148,7 +145,6 @@ gen_unicode_version (
   const char *data_file_type
 )
 {
-  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);
 
@@ -156,14 +152,8 @@ gen_unicode_version (
          "#define FRIBIDI_UNICODE_MAJOR_VERSION %d\n"
          "#define FRIBIDI_UNICODE_MINOR_VERSION %d\n"
          "#define FRIBIDI_UNICODE_MICRO_VERSION %d\n"
-         "#define FRIBIDI_UNICODE_NAMESPACE(SYMBOL) \\\n"
-         "     FRIBIDI_NAMESPACE(SYMBOL##_unicode_%d_%d_%d)\n"
-         "#define FRIBIDI_UNICODE_PRIVATESPACE(SYMBOL) \\\n"
-         "     FRIBIDI_PRIVATESPACE(SYMBOL##_unicode_%d_%d_%d)\n"
          "\n",
          unicode_version,
-         version_major, version_minor, version_micro,
-         version_major, version_minor, version_micro,
          version_major, version_minor, version_micro);
 
   printf ("/* End of generated " outputname " */\n");