1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Added extern C declarations to header files

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26433 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-05-31 17:39:58 +00:00
parent 0ea7905395
commit c5e14b5835
8 changed files with 43 additions and 11 deletions

View file

@ -19,11 +19,8 @@
* *
****************************************************************************/ ****************************************************************************/
extern "C"
{
#include "skin_parser.h" #include "skin_parser.h"
#include "skin_debug.h" #include "skin_debug.h"
}
#include <cstdlib> #include <cstdlib>
#include <cstdio> #include <cstdio>

View file

@ -19,11 +19,8 @@
* *
****************************************************************************/ ****************************************************************************/
extern "C"
{
#include "skin_parser.h" #include "skin_parser.h"
#include "skin_debug.h" #include "skin_debug.h"
}
#ifndef PARSETREEMODEL_H #ifndef PARSETREEMODEL_H
#define PARSETREEMODEL_H #define PARSETREEMODEL_H

View file

@ -22,10 +22,7 @@
#ifndef PARSETREENODE_H #ifndef PARSETREENODE_H
#define PARSETREENODE_H #define PARSETREENODE_H
extern "C"
{
#include "skin_parser.h" #include "skin_parser.h"
}
#include <QString> #include <QString>
#include <QVariant> #include <QVariant>

View file

@ -23,6 +23,11 @@
#ifndef SKIN_DEBUG_H #ifndef SKIN_DEBUG_H
#define SKIN_DEBUG_H #define SKIN_DEBUG_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "skin_parser.h" #include "skin_parser.h"
/* Debugging functions */ /* Debugging functions */
@ -33,4 +38,8 @@ void skin_debug_tree(struct skin_element* root);
void skin_debug_params(int count, struct skin_tag_parameter params[]); void skin_debug_params(int count, struct skin_tag_parameter params[]);
void skin_debug_indent(); void skin_debug_indent();
#ifdef __cplusplus
}
#endif
#endif // SKIN_DEBUG_H #endif // SKIN_DEBUG_H

View file

@ -22,6 +22,12 @@
#ifndef GENERIC_PARSER_H #ifndef GENERIC_PARSER_H
#define GENERIC_PARSER_H #define GENERIC_PARSER_H
#ifdef __cplusplus
extern "C"
{
#endif
#define SKIN_MAX_MEMORY 1048576 #define SKIN_MAX_MEMORY 1048576
/******************************************************************** /********************************************************************
@ -124,4 +130,8 @@ char* skin_alloc_string(int length);
void skin_free_tree(struct skin_element* root); void skin_free_tree(struct skin_element* root);
#ifdef __cplusplus
}
#endif
#endif /* GENERIC_PARSER_H */ #endif /* GENERIC_PARSER_H */

View file

@ -22,10 +22,20 @@
#ifndef SCANNING_H #ifndef SCANNING_H
#define SCANNING_H #define SCANNING_H
#ifdef __cplusplus
extern "C"
{
#endif
/* Scanning functions */ /* Scanning functions */
void skip_comment(char** document); void skip_comment(char** document);
void skip_whitespace(char** document); void skip_whitespace(char** document);
char* scan_string(char** document); char* scan_string(char** document);
int scan_int(char** document); int scan_int(char** document);
#ifdef __cplusplus
}
#endif
#endif // SCANNING_H #endif // SCANNING_H

View file

@ -22,6 +22,12 @@
#ifndef SYMBOLS_H #ifndef SYMBOLS_H
#define SYMBOLS_H #define SYMBOLS_H
#ifdef __cplusplus
extern "C"
{
#endif
/* Symbol definitions for WPS parsing */ /* Symbol definitions for WPS parsing */
#define TAGSYM '%' #define TAGSYM '%'
@ -36,4 +42,8 @@
#define ENUMLISTCLOSESYM '>' #define ENUMLISTCLOSESYM '>'
#define DEFAULTSYM '-' #define DEFAULTSYM '-'
#ifdef __cplusplus
}
#endif
#endif /* SYMBOLS_H */ #endif /* SYMBOLS_H */

View file

@ -25,8 +25,6 @@
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
namespace wps
{
#endif #endif
@ -298,4 +296,8 @@ char* find_tag(char* name);
*/ */
int find_escape_character(char lookup); int find_escape_character(char lookup);
#ifdef __cplusplus
}
#endif
#endif /* TAG_TABLE_H */ #endif /* TAG_TABLE_H */