Mercurial > emacs
comparison src/search.c @ 64318:a64663d06985
(syms_of_search): Staticpro searchbuf.whitespace_regexp.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 14 Jul 2005 11:24:08 +0000 |
parents | a8fa7c632ee4 |
children | a0d1312ede66 187d6a1f84f7 |
comparison
equal
deleted
inserted
replaced
64317:f69dd5d2d72d | 64318:a64663d06985 |
---|---|
3083 searchbufs[i].buf.buffer = (unsigned char *) xmalloc (100); | 3083 searchbufs[i].buf.buffer = (unsigned char *) xmalloc (100); |
3084 searchbufs[i].buf.fastmap = searchbufs[i].fastmap; | 3084 searchbufs[i].buf.fastmap = searchbufs[i].fastmap; |
3085 searchbufs[i].regexp = Qnil; | 3085 searchbufs[i].regexp = Qnil; |
3086 searchbufs[i].whitespace_regexp = Qnil; | 3086 searchbufs[i].whitespace_regexp = Qnil; |
3087 staticpro (&searchbufs[i].regexp); | 3087 staticpro (&searchbufs[i].regexp); |
3088 staticpro (&searchbufs[i].whitespace_regexp); | |
3088 searchbufs[i].next = (i == REGEXP_CACHE_SIZE-1 ? 0 : &searchbufs[i+1]); | 3089 searchbufs[i].next = (i == REGEXP_CACHE_SIZE-1 ? 0 : &searchbufs[i+1]); |
3089 } | 3090 } |
3090 searchbuf_head = &searchbufs[0]; | 3091 searchbuf_head = &searchbufs[0]; |
3091 | 3092 |
3092 Qsearch_failed = intern ("search-failed"); | 3093 Qsearch_failed = intern ("search-failed"); |