|
|
e982c2 |
--- ttmkfdir-3.0.9/encoding.l~ 2005-08-03 19:33:07.000000000 +0900
|
|
|
e982c2 |
+++ ttmkfdir-3.0.9/encoding.l 2005-08-03 21:52:15.000000000 +0900
|
|
|
e982c2 |
@@ -115,7 +115,7 @@
|
|
|
e982c2 |
}
|
|
|
e982c2 |
|
|
|
e982c2 |
/* avoid a crash issue */
|
|
|
e982c2 |
- if (cur_enc->size < i2)
|
|
|
e982c2 |
+ if ((int) (cur_enc->size) < i2)
|
|
|
e982c2 |
cur_enc->size = i2;
|
|
|
e982c2 |
if (!is_created_map)
|
|
|
e982c2 |
create_mapping();
|
|
|
e982c2 |
@@ -127,8 +127,8 @@
|
|
|
e982c2 |
}
|
|
|
e982c2 |
|
|
|
e982c2 |
<INSIDE_MAP_BLOCK>{NUMBER}({WHITESPACES}{NUMBER}){0,2} {
|
|
|
e982c2 |
- unsigned int start_range;
|
|
|
e982c2 |
- int numbers[3], i = 0, end_range, target, res;
|
|
|
e982c2 |
+ unsigned int start_range = 0, i = 0, end_range = 0;
|
|
|
e982c2 |
+ int numbers[3], target = 0, res;
|
|
|
e982c2 |
char *startptr;
|
|
|
e982c2 |
char *endptr = yytext;
|
|
|
e982c2 |
|
|
|
e982c2 |
--- ttmkfdir-3.0.9/commandline.cpp~ 2002-12-09 17:29:11.000000000 +0900
|
|
|
e982c2 |
+++ ttmkfdir-3.0.9/commandline.cpp 2005-08-03 21:12:40.000000000 +0900
|
|
|
e982c2 |
@@ -1,6 +1,8 @@
|
|
|
e982c2 |
#include <cstdlib>
|
|
|
e982c2 |
|
|
|
e982c2 |
+#ifndef _GNU_SOURCE
|
|
|
e982c2 |
#define _GNU_SOURCE
|
|
|
e982c2 |
+#endif
|
|
|
e982c2 |
#include <getopt.h>
|
|
|
e982c2 |
|
|
|
e982c2 |
#include "commandline.h"
|
|
|
e982c2 |
--- ttmkfdir-3.0.9/ttmkfdir.cpp~ 2003-01-20 08:33:11.000000000 +0900
|
|
|
e982c2 |
+++ ttmkfdir-3.0.9/ttmkfdir.cpp 2005-08-03 21:08:43.000000000 +0900
|
|
|
e982c2 |
@@ -76,7 +76,7 @@
|
|
|
e982c2 |
return 1;
|
|
|
e982c2 |
}
|
|
|
e982c2 |
|
|
|
e982c2 |
- fprintf (output, "%d\n", fontdir.size ());
|
|
|
e982c2 |
+ fprintf (output, "%d\n", (int)(fontdir.size ()));
|
|
|
e982c2 |
|
|
|
e982c2 |
for (vector<string>::const_iterator i = fontdir.begin (); i != fontdir.end (); i++) {
|
|
|
e982c2 |
fprintf (output, "%s\n", i->c_str ());
|
|
|
e982c2 |
--- ttmkfdir-3.0.9/ttf.cpp~ 2005-08-03 19:33:07.000000000 +0900
|
|
|
e982c2 |
+++ ttmkfdir-3.0.9/ttf.cpp 2005-08-03 21:31:48.000000000 +0900
|
|
|
e982c2 |
@@ -533,7 +533,7 @@
|
|
|
e982c2 |
const char *
|
|
|
e982c2 |
Face::Weight (void) const
|
|
|
e982c2 |
{
|
|
|
e982c2 |
- const char *result;
|
|
|
e982c2 |
+ const char *result = NULL;
|
|
|
e982c2 |
|
|
|
e982c2 |
if (cmdline::instance()->option ("panose") && ((result = PanoseWeight ()) != 0)) {
|
|
|
e982c2 |
return result;
|
|
|
e982c2 |
@@ -614,7 +614,7 @@
|
|
|
e982c2 |
const char *
|
|
|
e982c2 |
Face::Width (void) const
|
|
|
e982c2 |
{
|
|
|
e982c2 |
- const char *result;
|
|
|
e982c2 |
+ const char *result = NULL;
|
|
|
e982c2 |
|
|
|
e982c2 |
if (cmdline::instance()->option ("panose") && ((result = PanoseWidth ()) != 0)) {
|
|
|
e982c2 |
return result;
|
|
|
e982c2 |
--- ttmkfdir-3.0.9/encoding.cpp~ 2005-08-03 19:33:07.000000000 +0900
|
|
|
e982c2 |
+++ ttmkfdir-3.0.9/encoding.cpp 2005-08-03 21:31:44.000000000 +0900
|
|
|
e982c2 |
@@ -121,7 +121,7 @@
|
|
|
e982c2 |
|
|
|
e982c2 |
NumericMapping *m = new NumericMapping (size, b->mapdata.platform, b->mapdata.encoding);
|
|
|
e982c2 |
|
|
|
e982c2 |
- for (int i = 0; i < size; i++)
|
|
|
e982c2 |
+ for (unsigned int i = 0; i < size; i++)
|
|
|
e982c2 |
(*m)[i] = b->mapdata.mappingtable[i];
|
|
|
e982c2 |
|
|
|
e982c2 |
AddMapping (m);
|