diff options
| author | Richard M. Stallman | 1993-11-10 20:11:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-10 20:11:44 +0000 |
| commit | 328c0f1fe5a0afd9ed7bf80630cf121c57012688 (patch) | |
| tree | 0f997a70e7486b397080443cd5baaea511b704ed /src | |
| parent | 8a981af5bb07a923b61828eb6fa450c73de0b136 (diff) | |
| download | emacs-328c0f1fe5a0afd9ed7bf80630cf121c57012688.tar.gz emacs-328c0f1fe5a0afd9ed7bf80630cf121c57012688.zip | |
Include puresize.h.
(create_root_interval): Check to see if PARENT is in
pure memory. If so, we cannot write it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/intervals.c b/src/intervals.c index a6be24f1860..59a0cd9a102 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -42,6 +42,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 42 | #include "lisp.h" | 42 | #include "lisp.h" |
| 43 | #include "intervals.h" | 43 | #include "intervals.h" |
| 44 | #include "buffer.h" | 44 | #include "buffer.h" |
| 45 | #include "puresize.h" | ||
| 45 | 46 | ||
| 46 | /* The rest of the file is within this conditional. */ | 47 | /* The rest of the file is within this conditional. */ |
| 47 | #ifdef USE_TEXT_PROPERTIES | 48 | #ifdef USE_TEXT_PROPERTIES |
| @@ -58,7 +59,11 @@ INTERVAL | |||
| 58 | create_root_interval (parent) | 59 | create_root_interval (parent) |
| 59 | Lisp_Object parent; | 60 | Lisp_Object parent; |
| 60 | { | 61 | { |
| 61 | INTERVAL new = make_interval (); | 62 | INTERVAL new; |
| 63 | |||
| 64 | CHECK_IMPURE (parent); | ||
| 65 | |||
| 66 | new = make_interval (); | ||
| 62 | 67 | ||
| 63 | if (XTYPE (parent) == Lisp_Buffer) | 68 | if (XTYPE (parent) == Lisp_Buffer) |
| 64 | { | 69 | { |