summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2016-05-27 18:01:32 +0900
committerDaiki Ueno <ueno@gnu.org>2016-05-27 18:06:28 +0900
commit4bbb204a5586c9d2f0158dfc1f738c0e57395d96 (patch)
tree4734f0343f6b1028af6f65d514f433a8fdada90d /gettext-tools
parent12f52f13b33a4561f5ceb2e875c96ed522a23cb6 (diff)
downloadexternal_gettext-4bbb204a5586c9d2f0158dfc1f738c0e57395d96.zip
external_gettext-4bbb204a5586c9d2f0158dfc1f738c0e57395d96.tar.gz
external_gettext-4bbb204a5586c9d2f0158dfc1f738c0e57395d96.tar.bz2
desktop: Add missing "extern" in header
* gettext-tools/src/read-desktop.h: Add "extern" to each function declaration. Possibly related to: https://savannah.gnu.org/bugs/?45896
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/src/read-desktop.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/gettext-tools/src/read-desktop.h b/gettext-tools/src/read-desktop.h
index 778f26d..f3e1b00 100644
--- a/gettext-tools/src/read-desktop.h
+++ b/gettext-tools/src/read-desktop.h
@@ -85,34 +85,37 @@ struct desktop_reader_ty
DESKTOP_READER_TY
};
-desktop_reader_ty *desktop_reader_alloc (desktop_reader_class_ty *methods);
-void desktop_reader_free (desktop_reader_ty *reader);
+extern desktop_reader_ty *
+ desktop_reader_alloc (desktop_reader_class_ty *methods);
+extern void desktop_reader_free (desktop_reader_ty *reader);
-void desktop_reader_handle_group (desktop_reader_ty *reader,
- const char *group);
+extern void desktop_reader_handle_group (desktop_reader_ty *reader,
+ const char *group);
-void desktop_reader_handle_pair (desktop_reader_ty *reader,
- lex_pos_ty *key_pos,
+extern void desktop_reader_handle_pair (desktop_reader_ty *reader,
+ lex_pos_ty *key_pos,
const char *key,
const char *locale,
const char *value);
-void desktop_reader_handle_comment (desktop_reader_ty *reader,
- const char *s);
+extern void desktop_reader_handle_comment (desktop_reader_ty *reader,
+ const char *s);
-void desktop_reader_handle_blank (desktop_reader_ty *reader,
- const char *s);
+extern void desktop_reader_handle_blank (desktop_reader_ty *reader,
+ const char *s);
-void desktop_parse (desktop_reader_ty *reader, FILE *file,
- const char *real_filename, const char *logical_filename);
+extern void desktop_parse (desktop_reader_ty *reader, FILE *file,
+ const char *real_filename,
+ const char *logical_filename);
-char *desktop_escape_string (const char *s, bool is_list);
-char *desktop_unescape_string (const char *s, bool is_list);
+extern char *desktop_escape_string (const char *s, bool is_list);
+extern char *desktop_unescape_string (const char *s, bool is_list);
-void desktop_add_keyword (hash_table *keywords, const char *name, bool is_list);
-void desktop_add_default_keywords (hash_table *keywords);
+extern void desktop_add_keyword (hash_table *keywords, const char *name,
+ bool is_list);
+extern void desktop_add_default_keywords (hash_table *keywords);
#ifdef __cplusplus
}