[134501] trunk/base/src/pextlib1.0/strsed.c

cal at macports.org cal at macports.org
Fri Mar 27 12:09:33 PDT 2015


Revision: 134501
          https://trac.macports.org/changeset/134501
Author:   cal at macports.org
Date:     2015-03-27 12:09:33 -0700 (Fri, 27 Mar 2015)
Log Message:
-----------
base: support backslashes in the paths macports installs, closes #47283

Don't mangle backslashes in paths of files installed by MacPorts by disabling
escape sequence expansion for the haystack argument of strsed, which doesn't
seem like a good idea in the first place if we're using this from C or Tcl.

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/strsed.c

Modified: trunk/base/src/pextlib1.0/strsed.c
===================================================================
--- trunk/base/src/pextlib1.0/strsed.c	2015-03-27 18:40:44 UTC (rev 134500)
+++ trunk/base/src/pextlib1.0/strsed.c	2015-03-27 19:09:33 UTC (rev 134501)
@@ -133,6 +133,8 @@
 
 /* required for strdup(3) on Linux and OS X */
 #define _XOPEN_SOURCE 600L
+/* we're using this on raw strings, no escape sequences allowed */
+#define ESCAPED_STRING
 
 #include <ctype.h>
 #include <string.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150327/6351e55e/attachment.html>


More information about the macports-changes mailing list