Revision: 39399 http://brlcad.svn.sourceforge.net/brlcad/?rev=39399&view=rev Author: bob1961 Date: 2010-05-19 17:44:59 +0000 (Wed, 19 May 2010)
Log Message: ----------- Make the default BU_DIR_SEPARATOR be a '/' Modified Paths: -------------- brlcad/trunk/include/bu.h brlcad/trunk/src/libtclcad/tclcadAutoPath.c Modified: brlcad/trunk/include/bu.h =================================================================== --- brlcad/trunk/include/bu.h 2010-05-19 17:44:03 UTC (rev 39398) +++ brlcad/trunk/include/bu.h 2010-05-19 17:44:59 UTC (rev 39399) @@ -71,7 +71,6 @@ */ #define BU_CASEFOLD 0x10 - /** * @def BU_DIR_SEPARATOR * the default directory separator character @@ -82,11 +81,7 @@ # ifdef DIR_SEPARATOR_2 # define BU_DIR_SEPARATOR DIR_SEPARATOR_2 # else -# ifdef _WIN32 -# define BU_DIR_SEPARATOR '\\' -# else # define BU_DIR_SEPARATOR '/' -# endif /* _WIN32 */ # endif /* DIR_SEPARATOR_2 */ #endif /* DIR_SEPARATOR */ Modified: brlcad/trunk/src/libtclcad/tclcadAutoPath.c =================================================================== --- brlcad/trunk/src/libtclcad/tclcadAutoPath.c 2010-05-19 17:44:03 UTC (rev 39398) +++ brlcad/trunk/src/libtclcad/tclcadAutoPath.c 2010-05-19 17:44:59 UTC (rev 39399) @@ -216,27 +216,6 @@ root = bu_brlcad_root("", 1); data = bu_brlcad_data("", 1); -#ifdef _WIN32 - /* FIXME: this should be completely unnecessary and breaks - * constness. wtf, seriously. make the right fix. - */ - { - char *cp; - - if (root != (char *)0) { - for (cp = (char *)root; *cp != '\0'; ++cp) - if (*cp == '\\') - *cp = '/'; - } - - if (data != (char *)0) { - for (cp = (char *)data; *cp != '\0'; ++cp) - if (*cp == '\\') - *cp = '/'; - } - } -#endif - bu_vls_init(&auto_path); bu_vls_init(&lappend); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits