[Mplayer-cvslog] CVS: main/libmenu menu_pt.c,1.2,1.3
Arpi of Ize
arpi at mplayerhq.hu
Sun Jan 26 16:55:43 CET 2003
Update of /cvsroot/mplayer/main/libmenu
In directory mail:/var/tmp.root/cvs-serv26947
Modified Files:
menu_pt.c
Log Message:
don't depend on libgen/basename()
Index: menu_pt.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmenu/menu_pt.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- menu_pt.c 28 Dec 2002 18:51:09 -0000 1.2
+++ menu_pt.c 26 Jan 2003 15:55:35 -0000 1.3
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <libgen.h>
+//#include <libgen.h>
#include "../config.h"
@@ -18,7 +18,7 @@
#include "../playtree.h"
#include "../input/input.h"
-
+#define mp_basename(s) (strrchr((s),'/')==NULL?(char*)(s):(strrchr((s),'/')+1))
extern play_tree_iter_t* playtree_iter;
@@ -127,7 +127,7 @@
for( ; i != NULL ; i = i->next ) {
e = calloc(1,sizeof(list_entry_t));
if(i->files)
- e->p.txt = basename(i->files[0]);
+ e->p.txt = mp_basename(i->files[0]);
else
e->p.txt = "Group ...";
e->pt = i;
More information about the MPlayer-cvslog
mailing list