1 Jan 2005 15:27
hohensoh: firmware/common dir.c,1.24,1.25
<cvs <at> labb.contactor.se>
2005-01-01 14:27:30 GMT
2005-01-01 14:27:30 GMT
Update of /cvsroot/rockbox/firmware/common
In directory labb.contactor.se:/tmp/cvs-serv19151/rockbox/firmware/common
Modified Files:
dir.c
Log Message:
volume names look better in sharp brackets, code slightly more compact
Index: dir.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/common/dir.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- dir.c 28 Dec 2004 22:16:07 -0000 1.24
+++ dir.c 1 Jan 2005 14:27:28 -0000 1.25
<at> <at> -34,9 +34,11 <at> <at>
/* how to name volumes, first char must be outside of legal file names,
a number gets appended to enumerate, if applicable */
#ifdef HAVE_MMC
-static const char* vol_names = ":MMC";
+static const char* vol_names = "<MMC%d>";
+#define VOL_ENUM_POS 4 /* position of %d, to avoid runtime calculation */
#else
-static const char* vol_names = ":HD";
+static const char* vol_names = "<HD%d>";
+#define VOL_ENUM_POS 3
#endif
/* returns on which volume this is, and copies the reduced name
(Continue reading)
RSS Feed