Mercurial > emacs
annotate lisp/language/misc-lang.el @ 24102:1086aa5db591
Major rewrite to support cleaner method of dumping; a
static "bss" section is used for heap space during preload, and
bss data is now written to the proper section area when dumping.
(need_to_recreate_heap): Renamed to using_dynamic_heap.
(heap_index_in_executable): Obsolete variable removed.
(data_section): New variable.
(data_start_va): Renamed to data_start.
(data_start_file): Obsolete variable removed.
(bss_section):
(extra_bss_size):
(bss_section_static):
(bss_start_static):
(bss_size_static):
(extra_bss_size_static):
(heap_section): New variables.
(_start): Remove code based on old unexec method. Call init_heap
to initialize sbrk heap.
(close_file_data): Update size of file when closing, so that
unexec doesn't have to work out exact size in advance.
(get_bss_info_from_map_file):
(get_section_size): Obsolete functions removed.
(rva_to_section): Fix minor bug, and add a work-around for a bug
in very old linkers.
(offset_to_section):
(relocate_offset): New functions.
(OFFSET_TO_RVA):
(RVA_TO_OFFSET):
(RVA_TO_SECTION_OFFSET):
(PTR_TO_RVA):
(PTR_TO_OFFSET):
(OFFSET_TO_PTR): New macros.
(get_section_info): Modify to support new unexec method;
determines address ranges in process that need dumping, and COFF
sections where data will be dumped. Allows for static and global
bss data to be in separate ranges. No longer relies on knowledge
of section names.
(copy_executable_and_dump_data_section): Renamed
copy_executable_and_dump_data. Completely rewritten to copy
executable section by section, so that raw data areas can be
expanded to hold dumped data as necessary. Allows for bss data to
be in same section as initialized data. Reduces size of static
heap section to that used during preload.
(dump_bss_and_heap):
(w32_fatal_reload_error):
(read_in_bss):
(map_in_heap): Obsolete functions removed.
(unexec): Rounds off preload heap to nearest page rather than
virtual allocation unit. Modified to match other changes.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Sun, 17 Jan 1999 19:21:24 +0000 |
parents | 5fef9d1a7fc2 |
children | 60eb71a9f901 |
rev | line source |
---|---|
17052 | 1 ;;; misc-lang.el --- support for miscellaneous languages (characters) |
2 | |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18309
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
17052 | 5 |
6 ;; Keywords: multilingual, character set, coding system | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
17071 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
17052 | 24 |
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
26 ;;; IPA (International Phonetic Alphabet) | |
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
28 | |
18554
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
29 (defun setup-ipa-environment () |
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
30 "Setup multilingual environment (MULE) for IPA." |
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
31 (interactive) |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
22713
diff
changeset
|
32 (set-language-environment "IPA")) |
18554
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
33 |
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
34 (set-language-info-alist |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
22713
diff
changeset
|
35 "IPA" '((charset . (ipa)) |
22713
e7e1cecf3a1c
("IPA"): Add coding-priority and coding-system.
Kenichi Handa <handa@m17n.org>
parents:
18554
diff
changeset
|
36 (coding-priority iso-2022-7bit) |
e7e1cecf3a1c
("IPA"): Add coding-priority and coding-system.
Kenichi Handa <handa@m17n.org>
parents:
18554
diff
changeset
|
37 (coding-system iso-2022-7bit) |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
22713
diff
changeset
|
38 (input-method . "ipa") |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
22713
diff
changeset
|
39 (nonascii-translation . ipa) |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
22713
diff
changeset
|
40 (unibyte-display . iso-2022-7bit) |
18554
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
41 (documentation . "\ |
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
42 IPA is International Phonetic Alphabet for English, French, German |
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
43 and Italian."))) |
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
44 |
17052 | 45 ;;; misc-lang.el ends here |
18554
179c8135c9b1
Call set-language-info-alist for IPA.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
46 |