search for: r_fixslash

Displaying 3 results from an estimated 3 matches for "r_fixslash".

2007 Mar 24
2
Subtle bug in do_basename
...e's a quick fix, but maybe someone would want to find a better one: $ svn diff src/main/util.c Index: src/main/util.c =================================================================== --- src/main/util.c (revision 40876) +++ src/main/util.c (working copy) @@ -694,7 +694,8 @@ R_fixslash(buf); #endif /* remove trailing file separator(s) */ - while ( *(p = buf + strlen(buf) - 1) == fsp ) *p = '\0'; + if(strlen(p)) + while ( *(p = buf + strlen(buf) - 1) == fsp ) *p = '\0'; if ((p = Rf_strrchr(buf, fsp))) p++;...
2005 Jul 20
1
(PR#8017) build of REventLoop package crashes with 2.1 due
...t; Rboolean mbcsValid(char *str); > < char *Rf_strchr(const char *s, int c); > < char *Rf_strrchr(const char *s, int c); > < #else > < #define Rf_strchr(s, c) strchr(s, c) > < #define Rf_strrchr(s, c) strrchr(s, c) > < #endif > < #ifdef Win32 > < void R_fixslash(char *s); > < void R_fixbackslash(char *s); > < #endif > < #if defined(Win32) && defined(SUPPORT_UTF8) > < #define mbrtowc(a,b,c,d) Rmbrtowc(a,b) > < #define wcrtomb(a,b,c) Rwcrtomb(a,b) > < #define mbstowcs(a,b,c) Rmbstowcs(a,b,c) > < #define wcsto...
2005 Jul 19
0
build of REventLoop package crashes with 2.1 due tosyntax error in Defn.h (PR#8017)
...id mbcsToLatin1(char *in, char *out); < Rboolean mbcsValid(char *str); < char *Rf_strchr(const char *s, int c); < char *Rf_strrchr(const char *s, int c); < #else < #define Rf_strchr(s, c) strchr(s, c) < #define Rf_strrchr(s, c) strrchr(s, c) < #endif < #ifdef Win32 < void R_fixslash(char *s); < void R_fixbackslash(char *s); < #endif < #if defined(Win32) && defined(SUPPORT_UTF8) < #define mbrtowc(a,b,c,d) Rmbrtowc(a,b) < #define wcrtomb(a,b,c) Rwcrtomb(a,b) < #define mbstowcs(a,b,c) Rmbstowcs(a,b,c) < #define wcstombs(a,b,c) Rwcstombs(a,b,c) < si...