aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-07 15:53:30 +0000
committerGerd Moellmann1999-11-07 15:53:30 +0000
commit01e9b9dfb9476cb4e054f3a0b07b819ddd2c0235 (patch)
tree574d65eb3f75e09d9048e1705876f2698e85472e /src/alloc.c
parent4015b3c0ca013a8dd424f4108c963cf3e90a9d14 (diff)
downloademacs-01e9b9dfb9476cb4e054f3a0b07b819ddd2c0235.tar.gz
emacs-01e9b9dfb9476cb4e054f3a0b07b819ddd2c0235.zip
Remove conditional compilation on USE_TEXT_PROPERTIES.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/alloc.c b/src/alloc.c
index e87ad406667..03356fea00b 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -483,7 +483,6 @@ uninterrupt_malloc ()
483 483
484/* Interval allocation. */ 484/* Interval allocation. */
485 485
486#ifdef USE_TEXT_PROPERTIES
487#define INTERVAL_BLOCK_SIZE \ 486#define INTERVAL_BLOCK_SIZE \
488 ((1020 - sizeof (struct interval_block *)) / sizeof (struct interval)) 487 ((1020 - sizeof (struct interval_block *)) / sizeof (struct interval))
489 488
@@ -596,14 +595,6 @@ mark_interval_tree (tree)
596 } \ 595 } \
597} 596}
598 597
599#else /* no interval use */
600
601#define INIT_INTERVALS
602
603#define UNMARK_BALANCE_INTERVALS(i)
604#define MARK_INTERVAL_TREE(i)
605
606#endif /* no interval use */
607 598
608/* Floating point allocation. */ 599/* Floating point allocation. */
609 600
@@ -1554,9 +1545,7 @@ make_pure_string (data, length, length_byte, multibyte)
1554 1545
1555 /* We must give strings in pure storage some kind of interval. So we 1546 /* We must give strings in pure storage some kind of interval. So we
1556 give them a null one. */ 1547 give them a null one. */
1557#if defined (USE_TEXT_PROPERTIES)
1558 XSTRING (new)->intervals = NULL_INTERVAL; 1548 XSTRING (new)->intervals = NULL_INTERVAL;
1559#endif
1560 pureptr += size; 1549 pureptr += size;
1561 return new; 1550 return new;
1562} 1551}
@@ -1972,12 +1961,8 @@ Garbage collection happens automatically if you cons more than\n\
1972 (make_number (0), make_number (0)), 1961 (make_number (0), make_number (0)),
1973#endif /* not LISP_FLOAT_TYPE */ 1962#endif /* not LISP_FLOAT_TYPE */
1974 Fcons (Fcons 1963 Fcons (Fcons
1975#ifdef USE_TEXT_PROPERTIES
1976 (make_number (total_intervals), 1964 (make_number (total_intervals),
1977 make_number (total_free_intervals)), 1965 make_number (total_free_intervals)),
1978#else /* not USE_TEXT_PROPERTIES */
1979 (make_number (0), make_number (0)),
1980#endif /* not USE_TEXT_PROPERTIES */
1981 Qnil))))))); 1966 Qnil)))))));
1982} 1967}
1983 1968
@@ -2787,7 +2772,6 @@ gc_sweep ()
2787 } 2772 }
2788#endif /* LISP_FLOAT_TYPE */ 2773#endif /* LISP_FLOAT_TYPE */
2789 2774
2790#ifdef USE_TEXT_PROPERTIES
2791 /* Put all unmarked intervals on free list */ 2775 /* Put all unmarked intervals on free list */
2792 { 2776 {
2793 register struct interval_block *iblk; 2777 register struct interval_block *iblk;
@@ -2837,7 +2821,6 @@ gc_sweep ()
2837 total_intervals = num_used; 2821 total_intervals = num_used;
2838 total_free_intervals = num_free; 2822 total_free_intervals = num_free;
2839 } 2823 }
2840#endif /* USE_TEXT_PROPERTIES */
2841 2824
2842 /* Put all unmarked symbols on free list */ 2825 /* Put all unmarked symbols on free list */
2843 { 2826 {
@@ -3176,7 +3159,6 @@ compact_strings ()
3176 /* Store the actual size in the size field. */ 3159 /* Store the actual size in the size field. */
3177 newaddr->size = size; 3160 newaddr->size = size;
3178 3161
3179#ifdef USE_TEXT_PROPERTIES
3180 /* Now that the string has been relocated, rebalance its 3162 /* Now that the string has been relocated, rebalance its
3181 interval tree, and update the tree's parent pointer. */ 3163 interval tree, and update the tree's parent pointer. */
3182 if (! NULL_INTERVAL_P (newaddr->intervals)) 3164 if (! NULL_INTERVAL_P (newaddr->intervals))
@@ -3185,7 +3167,6 @@ compact_strings ()
3185 XSETSTRING (* (Lisp_Object *) &newaddr->intervals->parent, 3167 XSETSTRING (* (Lisp_Object *) &newaddr->intervals->parent,
3186 newaddr); 3168 newaddr);
3187 } 3169 }
3188#endif /* USE_TEXT_PROPERTIES */
3189 } 3170 }
3190 else if (size_byte < 0) 3171 else if (size_byte < 0)
3191 size_byte = size; 3172 size_byte = size;