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:
parent
0ea7905395
commit
c5e14b5835
8 changed files with 43 additions and 11 deletions
|
@ -19,11 +19,8 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "skin_parser.h"
|
||||
#include "skin_debug.h"
|
||||
}
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
|
|
|
@ -19,11 +19,8 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "skin_parser.h"
|
||||
#include "skin_debug.h"
|
||||
}
|
||||
|
||||
#ifndef PARSETREEMODEL_H
|
||||
#define PARSETREEMODEL_H
|
||||
|
|
|
@ -22,10 +22,7 @@
|
|||
#ifndef PARSETREENODE_H
|
||||
#define PARSETREENODE_H
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "skin_parser.h"
|
||||
}
|
||||
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
|
|
|
@ -23,6 +23,11 @@
|
|||
#ifndef SKIN_DEBUG_H
|
||||
#define SKIN_DEBUG_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "skin_parser.h"
|
||||
|
||||
/* 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_indent();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // SKIN_DEBUG_H
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
#ifndef GENERIC_PARSER_H
|
||||
#define GENERIC_PARSER_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
#define SKIN_MAX_MEMORY 1048576
|
||||
|
||||
/********************************************************************
|
||||
|
@ -124,4 +130,8 @@ char* skin_alloc_string(int length);
|
|||
|
||||
void skin_free_tree(struct skin_element* root);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GENERIC_PARSER_H */
|
||||
|
|
|
@ -22,10 +22,20 @@
|
|||
#ifndef SCANNING_H
|
||||
#define SCANNING_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
/* Scanning functions */
|
||||
void skip_comment(char** document);
|
||||
void skip_whitespace(char** document);
|
||||
char* scan_string(char** document);
|
||||
int scan_int(char** document);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // SCANNING_H
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
#ifndef SYMBOLS_H
|
||||
#define SYMBOLS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
/* Symbol definitions for WPS parsing */
|
||||
|
||||
#define TAGSYM '%'
|
||||
|
@ -36,4 +42,8 @@
|
|||
#define ENUMLISTCLOSESYM '>'
|
||||
#define DEFAULTSYM '-'
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SYMBOLS_H */
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
namespace wps
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -298,4 +296,8 @@ char* find_tag(char* name);
|
|||
*/
|
||||
int find_escape_character(char lookup);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* TAG_TABLE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue