From 7dc8c5fa288badd63e3be247950611859464d322 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 14 Jun 2015 01:50:52 +0000 Subject: [PATCH] Excluded charset.c from the build: it's unused except for one short function, which I moved to main.c. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50819 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/filesys/fat/main.c | 13 ++++++++++++- rom/filesys/fat/mmakefile.src | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/rom/filesys/fat/main.c b/rom/filesys/fat/main.c index 0fbe06e6b1..fa5510a5e3 100644 --- a/rom/filesys/fat/main.c +++ b/rom/filesys/fat/main.c @@ -27,7 +27,6 @@ #include "fat_fs.h" #include "fat_protos.h" -#include "charset.h" #define DEBUG DEBUG_MISC #include "debug.h" @@ -35,6 +34,18 @@ #undef SysBase #undef UtilityBase +static void InitCharsetTables(struct Globals *glob) +{ + int i; + + for (i = 0; i < 65536; i++) + if (i < 256) { + glob->from_unicode[i] = i; + glob->to_unicode[i] = i; + } else + glob->from_unicode[i] = '_'; +} + static struct Globals *fat_init(struct Process *proc, struct DosPacket *dp, struct ExecBase *SysBase) { struct Globals *glob; diff --git a/rom/filesys/fat/mmakefile.src b/rom/filesys/fat/mmakefile.src index c73c82f857..803b656631 100644 --- a/rom/filesys/fat/mmakefile.src +++ b/rom/filesys/fat/mmakefile.src @@ -4,7 +4,7 @@ include $(TOP)/config/make.cfg USER_LDFLAGS := -static -FILES := cache charset direntry disk fat file lock main names packet\ +FILES := cache direntry disk fat file lock main names packet\ ops support notify timer #MM- kernel-fs-fat : includes linklibs -- 2.11.4.GIT