diff options
| author | Jim Blandy | 1991-07-26 23:31:34 +0000 |
|---|---|---|
| committer | Jim Blandy | 1991-07-26 23:31:34 +0000 |
| commit | 4c0be5f4d530d164fef9130a2130b704fbe98ff8 (patch) | |
| tree | cdf4e4ff1731c883b487e584f8bcc3624faef495 /src/alloc.c | |
| parent | e772f7cd5225418f7a936ec58294d6979f965c0b (diff) | |
| download | emacs-4c0be5f4d530d164fef9130a2130b704fbe98ff8.tar.gz emacs-4c0be5f4d530d164fef9130a2130b704fbe98ff8.zip | |
*** empty log message ***
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index ac011c1c037..1f792e87b5b 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -20,6 +20,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 20 | 20 | ||
| 21 | #include "config.h" | 21 | #include "config.h" |
| 22 | #include "lisp.h" | 22 | #include "lisp.h" |
| 23 | #include "puresize.h" | ||
| 23 | #ifndef standalone | 24 | #ifndef standalone |
| 24 | #include "buffer.h" | 25 | #include "buffer.h" |
| 25 | #include "window.h" | 26 | #include "window.h" |
| @@ -81,6 +82,14 @@ int pure[PURESIZE / sizeof (int)] = {0,}; /* Force it into data space! */ | |||
| 81 | #else | 82 | #else |
| 82 | #define pure PURE_SEG_BITS /* Use shared memory segment */ | 83 | #define pure PURE_SEG_BITS /* Use shared memory segment */ |
| 83 | #define PUREBEG (char *)PURE_SEG_BITS | 84 | #define PUREBEG (char *)PURE_SEG_BITS |
| 85 | |||
| 86 | /* This variable is used only by the XPNTR macro when HAVE_SHM is | ||
| 87 | defined. If we used the PURESIZE macro directly there, that would | ||
| 88 | make most of emacs dependent on puresize.h, which we don't want - | ||
| 89 | you should be able to change that without too much recompilation. | ||
| 90 | So map_in_data initializes pure_size, and the dependencies work | ||
| 91 | out. */ | ||
| 92 | int pure_size; | ||
| 84 | #endif /* not HAVE_SHM */ | 93 | #endif /* not HAVE_SHM */ |
| 85 | 94 | ||
| 86 | /* Index in pure at which next pure object will be allocated. */ | 95 | /* Index in pure at which next pure object will be allocated. */ |
| @@ -1341,6 +1350,7 @@ mark_object (objptr) | |||
| 1341 | ptr->size |= ARRAY_MARK_FLAG; /* Else mark it */ | 1350 | ptr->size |= ARRAY_MARK_FLAG; /* Else mark it */ |
| 1342 | 1351 | ||
| 1343 | mark_object (&ptr->name); | 1352 | mark_object (&ptr->name); |
| 1353 | mark_object (&ptr->focus_screen); | ||
| 1344 | mark_object (&ptr->width); | 1354 | mark_object (&ptr->width); |
| 1345 | mark_object (&ptr->height); | 1355 | mark_object (&ptr->height); |
| 1346 | mark_object (&ptr->selected_window); | 1356 | mark_object (&ptr->selected_window); |
| @@ -1831,6 +1841,9 @@ init_alloc_once () | |||
| 1831 | { | 1841 | { |
| 1832 | /* Used to do Vpurify_flag = Qt here, but Qt isn't set up yet! */ | 1842 | /* Used to do Vpurify_flag = Qt here, but Qt isn't set up yet! */ |
| 1833 | pureptr = 0; | 1843 | pureptr = 0; |
| 1844 | #ifdef HAVE_SHM | ||
| 1845 | pure_size = PURESIZE; | ||
| 1846 | #endif | ||
| 1834 | all_vectors = 0; | 1847 | all_vectors = 0; |
| 1835 | ignore_warnings = 1; | 1848 | ignore_warnings = 1; |
| 1836 | init_strings (); | 1849 | init_strings (); |