aboutsummaryrefslogtreecommitdiffstats
path: root/src/ralloc.c
diff options
context:
space:
mode:
authorKenichi Handa2012-07-17 07:25:00 +0900
committerKenichi Handa2012-07-17 07:25:00 +0900
commit69c41c4070c86baac11a627e9c3d366420aeb7cc (patch)
treee07fda92570b5e4f264c9a7869b57960940008f0 /src/ralloc.c
parent8c536f15bf95916d56bb50495d22b7da7e09fff9 (diff)
parent758e556a7ab8f61c007e34310ba399a9aaf15362 (diff)
downloademacs-69c41c4070c86baac11a627e9c3d366420aeb7cc.tar.gz
emacs-69c41c4070c86baac11a627e9c3d366420aeb7cc.zip
merge trunk
Diffstat (limited to 'src/ralloc.c')
-rw-r--r--src/ralloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ralloc.c b/src/ralloc.c
index 19d15664eec..c40258693f5 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -396,7 +396,7 @@ get_bloc (SIZE size)
396 register bloc_ptr new_bloc; 396 register bloc_ptr new_bloc;
397 register heap_ptr heap; 397 register heap_ptr heap;
398 398
399 if (! (new_bloc = (bloc_ptr) malloc (BLOC_PTR_SIZE)) 399 if (! (new_bloc = malloc (BLOC_PTR_SIZE))
400 || ! (new_bloc->data = obtain (break_value, size))) 400 || ! (new_bloc->data = obtain (break_value, size)))
401 { 401 {
402 free (new_bloc); 402 free (new_bloc);
@@ -741,7 +741,7 @@ r_alloc_sbrk (long int size)
741 if (! r_alloc_initialized) 741 if (! r_alloc_initialized)
742 r_alloc_init (); 742 r_alloc_init ();
743 743
744 if (! use_relocatable_buffers) 744 if (use_relocatable_buffers <= 0)
745 return (*real_morecore) (size); 745 return (*real_morecore) (size);
746 746
747 if (size == 0) 747 if (size == 0)
@@ -1142,12 +1142,12 @@ r_alloc_reset_variable (POINTER *old, POINTER *new)
1142void 1142void
1143r_alloc_inhibit_buffer_relocation (int inhibit) 1143r_alloc_inhibit_buffer_relocation (int inhibit)
1144{ 1144{
1145 if (use_relocatable_buffers < 0) 1145 if (use_relocatable_buffers > 1)
1146 use_relocatable_buffers = 0; 1146 use_relocatable_buffers = 1;
1147 if (inhibit) 1147 if (inhibit)
1148 use_relocatable_buffers++;
1149 else if (use_relocatable_buffers > 0)
1150 use_relocatable_buffers--; 1148 use_relocatable_buffers--;
1149 else if (use_relocatable_buffers < 1)
1150 use_relocatable_buffers++;
1151} 1151}
1152 1152
1153 1153