diff liboctave/kpse-xfns.h @ 4433:b18ace8faf31

[project @ 2003-06-21 14:14:42 by jwe]
author jwe
date Sat, 21 Jun 2003 14:14:42 +0000
parents 286a3345aa8e
children 4c8a2e4e0717
line wrap: on
line diff
--- a/liboctave/kpse-xfns.h	Thu Jun 19 16:40:54 2003 +0000
+++ b/liboctave/kpse-xfns.h	Sat Jun 21 14:14:42 2003 +0000
@@ -32,7 +32,7 @@
 #define DIR_SEP '/'
 #define DIR_SEP_STRING "/"
 #define IS_DEVICE_SEP(ch) ((ch) == ':')
-#define NAME_BEGINS_WITH_DEVICE(name) (*(name) && IS_DEVICE_SEP((name)[1]))
+#define NAME_BEGINS_WITH_DEVICE(name) ((name.length()>0) && IS_DEVICE_SEP((name)[1]))
 /* On DOS, it's good to allow both \ and / between directories.  */
 #define IS_DIR_SEP(ch) ((ch) == '/' || (ch) == '\\')
 #else