summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-11-10 08:03:33 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-11-10 08:03:33 +0000
commit0dd7ea2d712944b21ede9f57bebd1009b03932e6 (patch)
treedc6065067aa862cc6a71c206b67554270fe507bd /firmware/export
parentae221f140231cb2fd4833443d7810dfce03c606a (diff)
downloadrockbox-0dd7ea2d712944b21ede9f57bebd1009b03932e6.tar.gz
rockbox-0dd7ea2d712944b21ede9f57bebd1009b03932e6.zip
Support building tagcache db natively on PC using the core of the
Rockbox tagcache database engine. Only host endian support at the moment and no command line parameters. Mainly for developers for debugging at the moment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11497 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h2
-rw-r--r--firmware/export/debug.h2
-rw-r--r--firmware/export/logf.h10
3 files changed, 10 insertions, 4 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 18c0ef7d17..45d974a96f 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -20,7 +20,9 @@
20#ifndef __CONFIG_H__ 20#ifndef __CONFIG_H__
21#define __CONFIG_H__ 21#define __CONFIG_H__
22 22
23#ifndef __PCTOOL__
23#include "autoconf.h" 24#include "autoconf.h"
25#endif
24 26
25/* symbolic names for multiple choice configurations: */ 27/* symbolic names for multiple choice configurations: */
26 28
diff --git a/firmware/export/debug.h b/firmware/export/debug.h
index 52b6687c6b..ce556d6418 100644
--- a/firmware/export/debug.h
+++ b/firmware/export/debug.h
@@ -26,7 +26,7 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...);
26#ifdef __GNUC__ 26#ifdef __GNUC__
27 27
28/* */ 28/* */
29#if defined(SIMULATOR) 29#if defined(SIMULATOR) && !defined(__PCTOOL__)
30#define DEBUGF debugf 30#define DEBUGF debugf
31#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) 31#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
32#else 32#else
diff --git a/firmware/export/logf.h b/firmware/export/logf.h
index 4206173596..35cb7127e4 100644
--- a/firmware/export/logf.h
+++ b/firmware/export/logf.h
@@ -23,6 +23,7 @@
23 23
24#ifdef ROCKBOX_HAS_LOGF 24#ifdef ROCKBOX_HAS_LOGF
25 25
26#ifndef __PCTOOL__
26#define MAX_LOGF_LINES 1000 27#define MAX_LOGF_LINES 1000
27#define MAX_LOGF_ENTRY 30 28#define MAX_LOGF_ENTRY 30
28#define MAX_LOGF_DATASIZE (MAX_LOGF_ENTRY*MAX_LOGF_LINES) 29#define MAX_LOGF_DATASIZE (MAX_LOGF_ENTRY*MAX_LOGF_LINES)
@@ -30,11 +31,14 @@
30extern unsigned char logfbuffer[MAX_LOGF_LINES][MAX_LOGF_ENTRY]; 31extern unsigned char logfbuffer[MAX_LOGF_LINES][MAX_LOGF_ENTRY];
31extern int logfindex; 32extern int logfindex;
32extern bool logfwrap; 33extern bool logfwrap;
34#endif /* __PCTOOL__ */
33 35
34void logf(const char *format, ...); 36#define logf _logf
35#else 37void _logf(const char *format, ...);
38
39#else /* !ROCKBOX_HAS_LOGF */
36/* built without logf() support enabled */ 40/* built without logf() support enabled */
37#define logf(...) 41#define logf(...)
38#endif 42#endif /* !ROCKBOX_HAS_LOGF */
39 43
40#endif /* LOGF_H */ 44#endif /* LOGF_H */