1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
diff -urN b/iso2mb.c c/iso2mb.c
--- b/iso2mb.c 2015-07-06 21:38:49.129658661 +0000
+++ c/iso2mb.c 2015-07-07 18:50:17.211540572 +0000
@@ -513,11 +513,11 @@
return wc;
}
-mb_wchar_t
+__attribute__ ((gnu_inline)) __inline__ mb_wchar_t
mb_encode_to_wchar(mb_info_t *info)
MB_ENCODE_TO_WCHAR
-mb_wchar_t
+__attribute__ ((gnu_inline)) __inline__ mb_wchar_t
mb_fetch_wchar(mb_info_t *info)
MB_FETCH_WCHAR
diff -urN b/mb2iso.c c/mb2iso.c
--- b/mb2iso.c 2015-07-06 21:38:49.133658683 +0000
+++ c/mb2iso.c 2015-07-07 19:07:47.583244156 +0000
@@ -900,7 +900,7 @@
return n;
}
-size_t
+__attribute__ ((gnu_inline)) __inline__ size_t
mb_store_wchar(mb_wchar_t enc, mb_info_t *info)
MB_STORE_WCHAR
diff -urN b/mb.h c/mb.h
--- b/mb.h 2015-07-06 21:38:49.133658683 +0000
+++ c/mb.h 2015-07-07 18:50:17.211540572 +0000
@@ -434,7 +434,7 @@
}
#ifdef __GNUC__
-extern __inline__ mb_wchar_t mb_encode_to_wchar(mb_info_t *info) MB_ENCODE_TO_WCHAR
+extern __attribute__ ((gnu_inline)) __inline__ mb_wchar_t mb_encode_to_wchar(mb_info_t *info);
#else
extern mb_wchar_t mb_encode_to_wchar(mb_info_t *info);
#endif
@@ -449,7 +449,7 @@
}
#ifdef __GNUC__
-extern __inline__ mb_wchar_t mb_fetch_wchar(mb_info_t *info) MB_FETCH_WCHAR
+extern __attribute__ ((gnu_inline)) __inline__ mb_wchar_t mb_fetch_wchar(mb_info_t *info);
#else
extern mb_wchar_t mb_fetch_wchar(mb_info_t *info);
#endif
@@ -552,7 +552,7 @@
}
#ifdef __GNUC__
-extern __inline__ size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info) MB_STORE_WCHAR
+extern __attribute__ ((gnu_inline)) __inline__ size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info);
#else
extern size_t mb_store_wchar(mb_wchar_t enc, mb_info_t *info);
#endif
|