Mercurial > emacs
annotate src/s/sol2-5.h @ 20608:a6cca06d5aaf
(count_size_as_multibyte): New function.
(insert_from_string_1, insert_from_buffer_1): Use it.
(copy_text): New function.
(insert_from_buffer_1): Call copy_text to convert between
single-byte and multibyte text.
(insert_from_string_1): Likewise.
(insert_1_both): New function.
(insert_from_string): New args POS_BYTE, LENGTH.
(insert_from_string_before_markers):
(insert_from_string_1): New arg POS_BYTE. Swap args NCHARS, NBYTES.
Don't fail to use POS_BYTE!
(insert_from_buffer_1): Get both inschars and insbytes from NEW.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 09 Jan 1998 22:46:07 +0000 |
parents | f4d9f4b3bc86 |
children | b8fbd605fd11 |
rev | line source |
---|---|
12055 | 1 /* Handle Solaris 2.5. */ |
2 | |
3 #include "sol2-4.h" | |
13788
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
4 |
15540
c4808cb5eccb
(LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14136
diff
changeset
|
5 /* -lgen is needed for the regex and regcmp functions |
c4808cb5eccb
(LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14136
diff
changeset
|
6 which are used by Motif. In the future we can try changing |
c4808cb5eccb
(LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14136
diff
changeset
|
7 regex.c to provide them in Emacs, but this is safer for now. */ |
15573 | 8 #define LIB_MOTIF -lXm -lgen |
15540
c4808cb5eccb
(LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
14136
diff
changeset
|
9 |
14136
d8cf2f7c6a7e
Add #if 0 around everything but the include of sol2-4.h.
Karl Heuer <kwzh@gnu.org>
parents:
13838
diff
changeset
|
10 #if 0 /* A recent patch in unexelf.c should eliminate the need for this. */ |
13788
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
11 /* Don't use the shared libraries for -lXt and -lXaw, |
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
12 to work around a linker bug in Solaris 2.5. |
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
13 (This also affects the other libraries used specifically for |
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
14 the X toolkit, which may not be necessary.) */ |
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
15 #define LIBXT_STATIC |
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
16 |
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
17 #ifdef __GNUC__ |
13838
ca284f531f71
(STATIC_OPTION): For GCC, use -Xlinker.
Richard M. Stallman <rms@gnu.org>
parents:
13788
diff
changeset
|
18 #define STATIC_OPTION -Xlinker -Bstatic |
ca284f531f71
(STATIC_OPTION): For GCC, use -Xlinker.
Richard M. Stallman <rms@gnu.org>
parents:
13788
diff
changeset
|
19 #define DYNAMIC_OPTION -Xlinker -Bdynamic |
13788
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
20 #else |
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
21 #define STATIC_OPTION -Bstatic |
13838
ca284f531f71
(STATIC_OPTION): For GCC, use -Xlinker.
Richard M. Stallman <rms@gnu.org>
parents:
13788
diff
changeset
|
22 #define DYNAMIC_OPTION -Bdynamic |
13788
9cba53e85252
(LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents:
12734
diff
changeset
|
23 #endif |
14136
d8cf2f7c6a7e
Add #if 0 around everything but the include of sol2-4.h.
Karl Heuer <kwzh@gnu.org>
parents:
13838
diff
changeset
|
24 |
d8cf2f7c6a7e
Add #if 0 around everything but the include of sol2-4.h.
Karl Heuer <kwzh@gnu.org>
parents:
13838
diff
changeset
|
25 #endif /* 0 */ |