aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-09 12:35:13 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-09 12:35:13 +0000
commitf81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae (patch)
tree91ee95914c2b9a07817bd6f596fc3df758651147 /shell
parent327fd47f362843fc62fbee6169904c416ca13d11 (diff)
downloadbusybox-w32-f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae.tar.gz
busybox-w32-f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae.tar.bz2
busybox-w32-f81e8dbc74186f34faa5ae2b0fe8bdc3f18114ae.zip
*: make "pragma GCC visibility push(hidden)" less ugly
Diffstat (limited to 'shell')
-rw-r--r--shell/match.h4
-rw-r--r--shell/math.h8
2 files changed, 10 insertions, 2 deletions
diff --git a/shell/match.h b/shell/match.h
index 863f52539..3fc4de340 100644
--- a/shell/match.h
+++ b/shell/match.h
@@ -1,5 +1,7 @@
1/* match.h - interface to shell ##/%% matching code */ 1/* match.h - interface to shell ##/%% matching code */
2 2
3PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
4
3typedef char *(*scan_t)(char *string, char *match, bool zero); 5typedef char *(*scan_t)(char *string, char *match, bool zero);
4 6
5char *scanleft(char *string, char *match, bool zero); 7char *scanleft(char *string, char *match, bool zero);
@@ -20,3 +22,5 @@ static inline scan_t pick_scan(char op1, char op2, bool *zero)
20 return op1 == op2 ? scanleft : scanright; 22 return op1 == op2 ? scanleft : scanright;
21 } 23 }
22} 24}
25
26POP_SAVED_FUNCTION_VISIBILITY
diff --git a/shell/math.h b/shell/math.h
index 195fc20ba..51dbb56cb 100644
--- a/shell/math.h
+++ b/shell/math.h
@@ -72,8 +72,10 @@
72 * below for the exact things that are available. 72 * below for the exact things that are available.
73 */ 73 */
74 74
75#ifndef _SHELL_MATH_ 75#ifndef SHELL_MATH_H
76#define _SHELL_MATH_ 76#define SHELL_MATH_H 1
77
78PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
77 79
78#if ENABLE_SH_MATH_SUPPORT_64 80#if ENABLE_SH_MATH_SUPPORT_64
79typedef long long arith_t; 81typedef long long arith_t;
@@ -96,4 +98,6 @@ typedef struct arith_eval_hooks {
96 98
97arith_t arith(const char *expr, int *perrcode, arith_eval_hooks_t*); 99arith_t arith(const char *expr, int *perrcode, arith_eval_hooks_t*);
98 100
101POP_SAVED_FUNCTION_VISIBILITY
102
99#endif 103#endif