summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-01-17 07:55:20 +0100
committerThomas Martitz <kugel@rockbox.org>2012-01-21 18:39:19 +0100
commit5b4a6c4267074c40655213e443ab4997530a4a98 (patch)
treeddcaa5d0971a61aaa4856943e00c50e5096c1698 /uisimulator
parentcf333a61c7861361b4025cb0f67c8f75b0b07eef (diff)
downloadrockbox-5b4a6c4267074c40655213e443ab4997530a4a98.tar.gz
rockbox-5b4a6c4267074c40655213e443ab4997530a4a98.tar.bz2
rockbox-5b4a6c4267074c40655213e443ab4997530a4a98.zip
Hosted: Merge debugf() implementations. Cleanup debug.h.
Fixes debug build for ypr0. Change-Id: I9c0eff651dcf268a3fafed1a71fcc47f3e323d36
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/io.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 02542d15e3..1df36d3b34 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -608,46 +608,6 @@ void lc_close(void *handle)
}
#endif /* __PCTOOL__ */
-#ifdef WIN32
-static unsigned old_cp;
-
-void debug_exit(void)
-{
- /* Reset console output codepage */
- SetConsoleOutputCP(old_cp);
-}
-
-void debug_init(void)
-{
- old_cp = GetConsoleOutputCP();
- /* Set console output codepage to UTF8. Only works
- * correctly when the console uses a truetype font. */
- SetConsoleOutputCP(65001);
- atexit(debug_exit);
-}
-#else
-void debug_init(void)
-{
- /* nothing to be done */
-}
-#endif
-
-void debugf(const char *fmt, ...)
-{
- va_list ap;
- va_start( ap, fmt );
- vfprintf( stderr, fmt, ap );
- va_end( ap );
-}
-
-void ldebugf(const char* file, int line, const char *fmt, ...)
-{
- va_list ap;
- va_start( ap, fmt );
- fprintf( stderr, "%s:%d ", file, line );
- vfprintf( stderr, fmt, ap );
- va_end( ap );
-}
/* rockbox off_t may be different from system off_t */
int sim_ftruncate(int fd, long length)