#endif
#endif
+#if !defined(__GNUC__)
+#error module code needs GCC visibility extensions
+#elif __GNUC__ < 4
+#error module code needs GCC visibility extensions
+#else
+# define DSO_PUBLIC __attribute__ ((visibility ("default")))
+# define DSO_SELF __attribute__ ((visibility ("protected")))
+# define DSO_LOCAL __attribute__ ((visibility ("hidden")))
+#endif
+
#ifdef __sun
/* Solaris doesn't do constructor priorities due to linker restrictions */
#undef _CONSTRUCTOR
extern "C" {
#endif
-#if !defined(__GNUC__)
-#error module code needs GCC visibility extensions
-#elif __GNUC__ < 4
-#error module code needs GCC visibility extensions
-#else
-# define DSO_PUBLIC __attribute__ ((visibility ("default")))
-# define DSO_SELF __attribute__ ((visibility ("protected")))
-# define DSO_LOCAL __attribute__ ((visibility ("hidden")))
-#endif
-
struct frrmod_runtime;
struct frrmod_info {
* Returns 0 on success. On failure, returns nonzero and sets errno.
*/
int
-__find_arguments (const char *fmt0, va_list ap, union arg **argtable)
+_frr_find_arguments (const char *fmt0, va_list ap, union arg **argtable)
{
char *fmt; /* format string */
int ch; /* character from fmt */
#ifdef WCHAR_SUPPORT
/* wchar version of __find_arguments. */
int
-__find_warguments (const wchar_t *fmt0, va_list ap, union arg **argtable)
+_frr_find_warguments (const wchar_t *fmt0, va_list ap, union arg **argtable)
{
wchar_t *fmt; /* format string */
wchar_t ch; /* character from fmt */
* $FreeBSD$
*/
+#include "compiler.h"
+
/*
* Flags used during conversion.
*/
};
/* Handle positional parameters. */
-int __find_arguments(const char *, va_list, union arg **);
+int _frr_find_arguments(const char *, va_list, union arg **) DSO_LOCAL;
#ifdef WCHAR_SUPPORT
-int __find_warguments(const wchar_t *, va_list, union arg **);
+int _frr_find_warguments(const wchar_t *, va_list, union arg **) DSO_LOCAL;
#endif
int hold = nextarg; \
if (argtable == NULL) { \
argtable = statargtable; \
- if (__find_arguments (fmt0, orgap, &argtable)) { \
+ if (_frr_find_arguments (fmt0, orgap, &argtable)) { \
ret = EOF; \
goto error; \
} \
nextarg = n;
if (argtable == NULL) {
argtable = statargtable;
- if (__find_arguments (fmt0, orgap,
+ if (_frr_find_arguments (fmt0, orgap,
&argtable)) {
ret = EOF;
goto error;