[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Move initialization to compile time
From: |
Eli Zaretskii |
Subject: |
Move initialization to compile time |
Date: |
Sun, 15 Jul 2012 18:05:10 +0300 |
Revision 109096 on the trunk moved some initializations from startup
(in temacs) to compile time. Example:
@@ -1481,7 +1476,7 @@
/* Index in interval_block above of the next unused interval
structure. */
-static int interval_block_index;
+static int interval_block_index = INTERVAL_BLOCK_SIZE;
/* Number of free and live intervals. */
@@ -1491,18 +1486,6 @@
static INTERVAL interval_free_list;
-
-/* Initialize interval allocation. */
-
-static void
-init_intervals (void)
-{
- interval_block = NULL;
- interval_block_index = INTERVAL_BLOCK_SIZE;
- interval_free_list = 0;
-}
-
-
/* Return a new interval. */
AFAIK, this moves interval_block_index from the .bss section to .data
section. If I'm right, then perhaps such changes should be discussed
before they are committed.
- Move initialization to compile time,
Eli Zaretskii <=