diff options
| author | Chong Yidong | 2008-05-15 02:45:44 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-05-15 02:45:44 +0000 |
| commit | 14067ea7abe81564d66a3654242508e18b9cb6f0 (patch) | |
| tree | ce2b985ae17d20f2763bde8378d777651e540ab8 /src | |
| parent | d0e4433b0aa13a578e533c7635e8bfde5711fef7 (diff) | |
| download | emacs-14067ea7abe81564d66a3654242508e18b9cb6f0.tar.gz emacs-14067ea7abe81564d66a3654242508e18b9cb6f0.zip | |
(init_fns): Don't initialize weak_hash_tables here.
(init_weak_hash_tables): New fun. Initialize weak_hash_tables.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -4257,6 +4257,12 @@ hash_clear (h) | |||
| 4257 | Weak Hash Tables | 4257 | Weak Hash Tables |
| 4258 | ************************************************************************/ | 4258 | ************************************************************************/ |
| 4259 | 4259 | ||
| 4260 | void | ||
| 4261 | init_weak_hash_tables () | ||
| 4262 | { | ||
| 4263 | weak_hash_tables = NULL; | ||
| 4264 | } | ||
| 4265 | |||
| 4260 | /* Sweep weak hash table H. REMOVE_ENTRIES_P non-zero means remove | 4266 | /* Sweep weak hash table H. REMOVE_ENTRIES_P non-zero means remove |
| 4261 | entries from the table that don't survive the current GC. | 4267 | entries from the table that don't survive the current GC. |
| 4262 | REMOVE_ENTRIES_P zero means mark entries that are in use. Value is | 4268 | REMOVE_ENTRIES_P zero means mark entries that are in use. Value is |
| @@ -5284,7 +5290,6 @@ both `use-dialog-box' and this variable are non-nil. */); | |||
| 5284 | void | 5290 | void |
| 5285 | init_fns () | 5291 | init_fns () |
| 5286 | { | 5292 | { |
| 5287 | weak_hash_tables = NULL; | ||
| 5288 | } | 5293 | } |
| 5289 | 5294 | ||
| 5290 | /* arch-tag: 787f8219-5b74-46bd-8469-7e1cc475fa31 | 5295 | /* arch-tag: 787f8219-5b74-46bd-8469-7e1cc475fa31 |