diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-05-31 17:39:58 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-05-31 17:39:58 +0000 |
commit | c5e14b5835114faae78997f7e0b14c19966b187d (patch) | |
tree | d357c33852df636581f22153336c35d43d623e40 | |
parent | 0ea79053951e64b659cb3b3d82eaed1c65bd43ea (diff) | |
download | rockbox-c5e14b5835114faae78997f7e0b14c19966b187d.tar.gz rockbox-c5e14b5835114faae78997f7e0b14c19966b187d.zip |
Theme Editor: Added extern C declarations to header files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26433 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | utils/themeeditor/main.cpp | 3 | ||||
-rw-r--r-- | utils/themeeditor/parsetreemodel.h | 3 | ||||
-rw-r--r-- | utils/themeeditor/parsetreenode.h | 3 | ||||
-rw-r--r-- | utils/themeeditor/skin_debug.h | 9 | ||||
-rw-r--r-- | utils/themeeditor/skin_parser.h | 10 | ||||
-rw-r--r-- | utils/themeeditor/skin_scan.h | 10 | ||||
-rw-r--r-- | utils/themeeditor/symbols.h | 10 | ||||
-rw-r--r-- | utils/themeeditor/tag_table.h | 6 |
8 files changed, 43 insertions, 11 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp index f876b1906e..a3a5daaa6c 100644 --- a/utils/themeeditor/main.cpp +++ b/utils/themeeditor/main.cpp | |||
@@ -19,11 +19,8 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | extern "C" | ||
23 | { | ||
24 | #include "skin_parser.h" | 22 | #include "skin_parser.h" |
25 | #include "skin_debug.h" | 23 | #include "skin_debug.h" |
26 | } | ||
27 | 24 | ||
28 | #include <cstdlib> | 25 | #include <cstdlib> |
29 | #include <cstdio> | 26 | #include <cstdio> |
diff --git a/utils/themeeditor/parsetreemodel.h b/utils/themeeditor/parsetreemodel.h index eedfe3f6bb..2d19452546 100644 --- a/utils/themeeditor/parsetreemodel.h +++ b/utils/themeeditor/parsetreemodel.h | |||
@@ -19,11 +19,8 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | extern "C" | ||
23 | { | ||
24 | #include "skin_parser.h" | 22 | #include "skin_parser.h" |
25 | #include "skin_debug.h" | 23 | #include "skin_debug.h" |
26 | } | ||
27 | 24 | ||
28 | #ifndef PARSETREEMODEL_H | 25 | #ifndef PARSETREEMODEL_H |
29 | #define PARSETREEMODEL_H | 26 | #define PARSETREEMODEL_H |
diff --git a/utils/themeeditor/parsetreenode.h b/utils/themeeditor/parsetreenode.h index 822924ace2..49f89c19db 100644 --- a/utils/themeeditor/parsetreenode.h +++ b/utils/themeeditor/parsetreenode.h | |||
@@ -22,10 +22,7 @@ | |||
22 | #ifndef PARSETREENODE_H | 22 | #ifndef PARSETREENODE_H |
23 | #define PARSETREENODE_H | 23 | #define PARSETREENODE_H |
24 | 24 | ||
25 | extern "C" | ||
26 | { | ||
27 | #include "skin_parser.h" | 25 | #include "skin_parser.h" |
28 | } | ||
29 | 26 | ||
30 | #include <QString> | 27 | #include <QString> |
31 | #include <QVariant> | 28 | #include <QVariant> |
diff --git a/utils/themeeditor/skin_debug.h b/utils/themeeditor/skin_debug.h index c100eb1d2e..6b2a1bd1f5 100644 --- a/utils/themeeditor/skin_debug.h +++ b/utils/themeeditor/skin_debug.h | |||
@@ -23,6 +23,11 @@ | |||
23 | #ifndef SKIN_DEBUG_H | 23 | #ifndef SKIN_DEBUG_H |
24 | #define SKIN_DEBUG_H | 24 | #define SKIN_DEBUG_H |
25 | 25 | ||
26 | #ifdef __cplusplus | ||
27 | extern "C" | ||
28 | { | ||
29 | #endif | ||
30 | |||
26 | #include "skin_parser.h" | 31 | #include "skin_parser.h" |
27 | 32 | ||
28 | /* Debugging functions */ | 33 | /* Debugging functions */ |
@@ -33,4 +38,8 @@ void skin_debug_tree(struct skin_element* root); | |||
33 | void skin_debug_params(int count, struct skin_tag_parameter params[]); | 38 | void skin_debug_params(int count, struct skin_tag_parameter params[]); |
34 | void skin_debug_indent(); | 39 | void skin_debug_indent(); |
35 | 40 | ||
41 | #ifdef __cplusplus | ||
42 | } | ||
43 | #endif | ||
44 | |||
36 | #endif // SKIN_DEBUG_H | 45 | #endif // SKIN_DEBUG_H |
diff --git a/utils/themeeditor/skin_parser.h b/utils/themeeditor/skin_parser.h index 7b3ab13ad0..201e06c257 100644 --- a/utils/themeeditor/skin_parser.h +++ b/utils/themeeditor/skin_parser.h | |||
@@ -22,6 +22,12 @@ | |||
22 | #ifndef GENERIC_PARSER_H | 22 | #ifndef GENERIC_PARSER_H |
23 | #define GENERIC_PARSER_H | 23 | #define GENERIC_PARSER_H |
24 | 24 | ||
25 | #ifdef __cplusplus | ||
26 | extern "C" | ||
27 | { | ||
28 | #endif | ||
29 | |||
30 | |||
25 | #define SKIN_MAX_MEMORY 1048576 | 31 | #define SKIN_MAX_MEMORY 1048576 |
26 | 32 | ||
27 | /******************************************************************** | 33 | /******************************************************************** |
@@ -124,4 +130,8 @@ char* skin_alloc_string(int length); | |||
124 | 130 | ||
125 | void skin_free_tree(struct skin_element* root); | 131 | void skin_free_tree(struct skin_element* root); |
126 | 132 | ||
133 | #ifdef __cplusplus | ||
134 | } | ||
135 | #endif | ||
136 | |||
127 | #endif /* GENERIC_PARSER_H */ | 137 | #endif /* GENERIC_PARSER_H */ |
diff --git a/utils/themeeditor/skin_scan.h b/utils/themeeditor/skin_scan.h index 210f39cdfd..682e32b3af 100644 --- a/utils/themeeditor/skin_scan.h +++ b/utils/themeeditor/skin_scan.h | |||
@@ -22,10 +22,20 @@ | |||
22 | #ifndef SCANNING_H | 22 | #ifndef SCANNING_H |
23 | #define SCANNING_H | 23 | #define SCANNING_H |
24 | 24 | ||
25 | #ifdef __cplusplus | ||
26 | extern "C" | ||
27 | { | ||
28 | #endif | ||
29 | |||
30 | |||
25 | /* Scanning functions */ | 31 | /* Scanning functions */ |
26 | void skip_comment(char** document); | 32 | void skip_comment(char** document); |
27 | void skip_whitespace(char** document); | 33 | void skip_whitespace(char** document); |
28 | char* scan_string(char** document); | 34 | char* scan_string(char** document); |
29 | int scan_int(char** document); | 35 | int scan_int(char** document); |
30 | 36 | ||
37 | #ifdef __cplusplus | ||
38 | } | ||
39 | #endif | ||
40 | |||
31 | #endif // SCANNING_H | 41 | #endif // SCANNING_H |
diff --git a/utils/themeeditor/symbols.h b/utils/themeeditor/symbols.h index cc82890a16..b4f31289ef 100644 --- a/utils/themeeditor/symbols.h +++ b/utils/themeeditor/symbols.h | |||
@@ -22,6 +22,12 @@ | |||
22 | #ifndef SYMBOLS_H | 22 | #ifndef SYMBOLS_H |
23 | #define SYMBOLS_H | 23 | #define SYMBOLS_H |
24 | 24 | ||
25 | #ifdef __cplusplus | ||
26 | extern "C" | ||
27 | { | ||
28 | #endif | ||
29 | |||
30 | |||
25 | /* Symbol definitions for WPS parsing */ | 31 | /* Symbol definitions for WPS parsing */ |
26 | 32 | ||
27 | #define TAGSYM '%' | 33 | #define TAGSYM '%' |
@@ -36,4 +42,8 @@ | |||
36 | #define ENUMLISTCLOSESYM '>' | 42 | #define ENUMLISTCLOSESYM '>' |
37 | #define DEFAULTSYM '-' | 43 | #define DEFAULTSYM '-' |
38 | 44 | ||
45 | #ifdef __cplusplus | ||
46 | } | ||
47 | #endif | ||
48 | |||
39 | #endif /* SYMBOLS_H */ | 49 | #endif /* SYMBOLS_H */ |
diff --git a/utils/themeeditor/tag_table.h b/utils/themeeditor/tag_table.h index 4c54832a61..81d07a2a34 100644 --- a/utils/themeeditor/tag_table.h +++ b/utils/themeeditor/tag_table.h | |||
@@ -25,8 +25,6 @@ | |||
25 | #ifdef __cplusplus | 25 | #ifdef __cplusplus |
26 | extern "C" | 26 | extern "C" |
27 | { | 27 | { |
28 | namespace wps | ||
29 | { | ||
30 | #endif | 28 | #endif |
31 | 29 | ||
32 | 30 | ||
@@ -298,4 +296,8 @@ char* find_tag(char* name); | |||
298 | */ | 296 | */ |
299 | int find_escape_character(char lookup); | 297 | int find_escape_character(char lookup); |
300 | 298 | ||
299 | #ifdef __cplusplus | ||
300 | } | ||
301 | #endif | ||
302 | |||
301 | #endif /* TAG_TABLE_H */ | 303 | #endif /* TAG_TABLE_H */ |