Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

scilab: use language specific warnings for too long identifier names

  • Loading branch information...
commit cc8b859162a3b103ddf876d5b6f3b56c1a5b5615 1 parent dead560
@smarchetto smarchetto authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 Source/Include/swigwarn.h
  2. +1 −1  Source/Modules/scilab.cxx
View
4 Source/Include/swigwarn.h
@@ -232,6 +232,10 @@
/* please leave 700-719 free for D */
+#define WARN_SCILAB_TRUNCATED_NAME 720
+
+/* please leave 720-739 free for Scilab */
+
#define WARN_RUBY_WRONG_NAME 801
#define WARN_RUBY_MULTIPLE_INHERITANCE 802
View
2  Source/Modules/scilab.cxx
@@ -740,7 +740,7 @@ class SCILAB:public Language {
void checkIdentifierName(String *name) {
if (Len(name) > 24) {
// Warning on too long identifiers
- Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number,
+ Swig_warning(WARN_SCILAB_TRUNCATED_NAME, input_file, line_number,
"Identifier name '%s' exceeds 24 characters, it is truncated to '%s'.\n",
name, DohNewStringWithSize(name, 24));
}
Please sign in to comment.
Something went wrong with that request. Please try again.