Fix asm label generation. Suppress some warning
[fw/sdcc] / src / asm.c
index 353e60f3a53ea0b147ccb4999f39bfd59bbbee01..e18a60c46bf17dc7fda547a871f3f06dcb212bb9 100644 (file)
--- a/src/asm.c
+++ b/src/asm.c
 
 static hTab *_h;
 
+char * FileBaseName(char * fileFullName)
+{
+       char * p = fileFullName;
+
+       while (*fileFullName) {
+               if((*fileFullName=='/')||(*fileFullName=='\\')||(*fileFullName==':')) {
+                       p = fileFullName;
+                       p++;
+               }
+               fileFullName++;
+       }
+       return p;
+}
+
 static const char *_findMapping(const char *szKey)
 {
     return shash_find(_h, szKey);