From 0e03e22e9d35ae498b0ebaf74ade9004b433ca90 Mon Sep 17 00:00:00 2001 From: Simon Marchetto Date: Mon, 21 Jul 2014 11:09:38 +0200 Subject: [PATCH] scilab: display truncated name in long identifier name warnings --- Source/Modules/scilab.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Modules/scilab.cxx b/Source/Modules/scilab.cxx index 1aa12dc3f..74c5e1785 100644 --- a/Source/Modules/scilab.cxx +++ b/Source/Modules/scilab.cxx @@ -734,7 +734,9 @@ public: void checkIdentifierName(String *name) { if (Len(name) > 24) { // Warning on too long identifiers - Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number, "Identifier %s exceeds 24 characters, it may be impossible to use it.\n", name); + Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number, + "Identifier name '%s' exceeds 24 characters, it is truncated to '%s'.\n", + name, DohNewStringWithSize(name, 24)); } }