aboutsummaryrefslogtreecommitdiff
path: root/source/nds/bdf_font.c
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-18 02:41:32 -0500
committerNebuleon Fumika2013-01-18 02:41:32 -0500
commitbf5cb54162afa5390eab1ae155a9defd44d0f898 (patch)
treebee1bc56126f6ac5f036ab0169642609a30be06c /source/nds/bdf_font.c
parent5c4e96b326073d411a577fc6a8c03ea1c0a7242e (diff)
downloadsnes9x2005-bf5cb54162afa5390eab1ae155a9defd44d0f898.tar.gz
snes9x2005-bf5cb54162afa5390eab1ae155a9defd44d0f898.tar.bz2
snes9x2005-bf5cb54162afa5390eab1ae155a9defd44d0f898.zip
Fix multiple compiler warnings: forward declaration, implicit declaration, unused variable, variable used uninitialised, unused function (when not used anywhere else with a #define).
Diffstat (limited to 'source/nds/bdf_font.c')
-rw-r--r--source/nds/bdf_font.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/source/nds/bdf_font.c b/source/nds/bdf_font.c
index 773403a..92b8923 100644
--- a/source/nds/bdf_font.c
+++ b/source/nds/bdf_font.c
@@ -80,35 +80,6 @@ static u32 bitmap_code(unsigned char *code, unsigned char *bitmap)
/*-----------------------------------------------------------------------------
------------------------------------------------------------------------------*/
-static u32 hatoi(char *string)
-{
- char *pt;
- u32 ret, num;
-
- pt= string;
- ret= 0;
- while(*pt)
- {
- num= (((u32)*pt) & 0xFF) - 0x30;
- if(num <= 0x9)
- ret= (ret<<4) | num;
- else if(num <= 0x16)
- {
- if(num >= 0x11)
- ret= (ret<<4) | (num-0x7);
- else
- break;
- }
- else
- break;
- pt++;
- }
-
- return ret;
-}
-
-/*-----------------------------------------------------------------------------
-------------------------------------------------------------------------------*/
/*
* example
*
@@ -908,27 +879,6 @@ char* utf8decode(char *utf8, u16 *ucs)
return utf8;
}
-static u8 utf8_ucs2(const char *utf8, u16 *ucs)
-{
- char *pt = (char*)utf8;
-
- while(*pt !='\0')
- {
- pt = utf8decode(pt, ucs++);
- }
- *ucs = '\0';
- return 0;
-}
-
-static u32 ucslen(const u16 *ucs)
-{
- u32 len = 0;
-
- while(ucs[len] != '\0')
- len++;
- return len;
-}
-
unsigned char* skip_utf8_unit(unsigned char* utf8, unsigned int num)
{
while(num--)