freebsd-ports/www/cssed/files/patch-scintilla_src_LexCaml.cxx
Jan Beich 3cfd68a5ba www/cssed: unbreak with libc++ 3.9
../src/LexCaml.cxx:278:12: error: assigning to 'char *' from incompatible type 'const char *'
                                || ((o = strchr(")]};,\'\"`#", ch)) != 0)/* "termination" chars */
                                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~

Reported by:	pkg-fallout
2017-02-01 12:29:02 +00:00

11 lines
471 B
C++

--- scintilla/src/LexCaml.cxx.orig 2005-05-27 03:30:23 UTC
+++ scintilla/src/LexCaml.cxx
@@ -273,7 +273,7 @@ void ColouriseCamlDoc(
case SCE_CAML_OPERATOR: {
// [try to] interpret as [additional] operator char
- char* o = 0;
+ const char* o = 0;
if (iscaml(ch) || isspace(ch) /* ident or whitespace */
|| ((o = strchr(")]};,\'\"`#", ch)) != 0)/* "termination" chars */
|| !strchr("!$%&*+-./:<=>?@^|~", ch)/* "operator" chars */) {