diff --git a/ChangeLog b/ChangeLog index d0ab9cd54..67c619493 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2014-01-08 Werner Lemberg + + [autofit] Fix Savannah bug #41138, part 1. + + * src/tools/afblue.pl : Produce correct auxiliary + enumeration names for generated `#else'. + + * src/autofit/afblue.h: Regenerated. + 2014-01-06 Werner Lemberg Add manual page for `freetype-config'. diff --git a/src/autofit/afblue.h b/src/autofit/afblue.h index 7c50d9983..6f336abc0 100644 --- a/src/autofit/afblue.h +++ b/src/autofit/afblue.h @@ -109,7 +109,7 @@ FT_BEGIN_HEADER #endif /* AF_CONFIG_OPTION_CJK_BLUE_HANI_VERT */ af_blue_1_2 = af_blue_1_1_2 + 0, #else - af_blue_1_2 = af_blue_1_1_2 + 0, + af_blue_1_2 = af_blue_1_1 + 0, #endif /* AF_CONFIG_OPTION_CJK */ @@ -168,7 +168,7 @@ FT_BEGIN_HEADER #endif /* AF_CONFIG_OPTION_CJK_BLUE_HANI_VERT */ af_blue_2_2 = af_blue_2_1_2 + 1, #else - af_blue_2_2 = af_blue_2_1_2 + 0, + af_blue_2_2 = af_blue_2_1 + 0, #endif /* AF_CONFIG_OPTION_CJK */ diff --git a/src/tools/afblue.pl b/src/tools/afblue.pl index d7c732233..c98df3413 100644 --- a/src/tools/afblue.pl +++ b/src/tools/afblue.pl @@ -5,7 +5,7 @@ # # Process a blue zone character data file. # -# Copyright 2013 by +# Copyright 2013, 2014 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, @@ -350,19 +350,21 @@ while () Die("unbalanced #endif") unless defined($prev_else); pop @name_stack; - $name_stack[$#name_stack]++; # If there is no else-clause for an if-clause, we add one. This is # necessary to have correct offsets. if (!$prev_else) { # Use amount of whitespace from `endif'. - push @{$diversions{$curr_enum}}, enum_val_string(aux_name()) + push @{$diversions{$curr_enum}}, enum_val_string(aux_name_next()) . $1 . "else\n"; + $last_aux = aux_name(); $curr_offset = 0; } + $name_stack[$#name_stack]++; + push @{$diversions{$curr_enum}}, enum_val_string(aux_name()); $last_aux = aux_name();