|
Lines 1-8
Link Here
|
| 1 |
|
1 |
|
| 2 |
$FreeBSD: ports/devel/gmake/files/patch-gettext.c,v 1.1 2002/06/06 22:40:06 sobomax Exp $ |
2 |
$FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
--- gettext.c 2002/06/06 22:10:23 1.1 |
4 |
--- gettext.c.orig Wed Feb 9 08:02:18 2000 |
| 5 |
+++ gettext.c 2002/06/06 22:11:09 |
5 |
+++ gettext.c Sun Jul 28 04:22:31 2002 |
| 6 |
@@ -22,6 +22,10 @@ |
6 |
@@ -22,6 +22,10 @@ |
| 7 |
# include <config.h> |
7 |
# include <config.h> |
| 8 |
#endif |
8 |
#endif |
|
Lines 14-16
Link Here
|
| 14 |
#ifdef __GNUC__ |
14 |
#ifdef __GNUC__ |
| 15 |
# define alloca __builtin_alloca |
15 |
# define alloca __builtin_alloca |
| 16 |
# define HAVE_ALLOCA 1 |
16 |
# define HAVE_ALLOCA 1 |
|
|
17 |
@@ -1294,6 +1298,15 @@ |
| 18 |
{ |
| 19 |
FREE_BLOCKS (block_list); |
| 20 |
return added; |
| 21 |
+ } |
| 22 |
+ if (string_space != new_pool) |
| 23 |
+ { |
| 24 |
+ size_t i; |
| 25 |
+ for (i = 0; i < nmap; i++) |
| 26 |
+ { |
| 27 |
+ map[i].alias += new_pool - string_space; |
| 28 |
+ map[i].value += new_pool - string_space; |
| 29 |
+ } |
| 30 |
} |
| 31 |
string_space = new_pool; |
| 32 |
string_space_max = new_size; |