• R/O
  • SSH
  • HTTPS

nina: Commit


Commit MetaInfo

Revisión673 (tree)
Tiempo2018-05-20 08:42:18
Autory-moriguchi

Log Message

suppress warnings in C#

Cambiar Resumen

Diferencia incremental

--- nina/java/src/net/morilib/nina/Nina.java (revision 672)
+++ nina/java/src/net/morilib/nina/Nina.java (revision 673)
@@ -46,7 +46,7 @@
4646 /**
4747 *
4848 */
49- public static final String VERSION = "0.4.17";
49+ public static final String VERSION = "0.5.0R1";
5050
5151 /**
5252 *
--- nina/java/translator/net/morilib/nina/translate/nina_template.dfa.cs.sh (revision 672)
+++ nina/java/translator/net/morilib/nina/translate/nina_template.dfa.cs.sh (revision 673)
@@ -105,7 +105,6 @@
105105 [ -z "$TYPE" ] && echo ' private const int Invalidtoken = 0x7fff7fff;'
106106 [ -z "$TYPE" ] || echo ' private static readonly object Invalidtoken = new {};'
107107 cat << EOF
108- readonly ${CLASSNAME}${TEMPLATE} __this__;
109108 private const int NinaEOF = -1;
110109 private const int NinaAccept = -1;
111110 private const int NinaFail = -9;
@@ -125,17 +124,22 @@
125124 private int __slen = 0;
126125 private $CTYPE unread = $nullsym;
127126
127+#pragma warning disable 169
128128 $VALTYPE _;
129- System.Collections.Generic.List<$VALTYPE> _l;
130- object yieldObject;
131- System.Exception exception;
132-
133129 System.Text.StringBuilder _buffer;
134130 System.Text.StringBuilder _bufferUnicode;
135131 int _int;
136132 object _bigint;
137133 object _num;
134+#pragma warning restore 169
138135
136+ System.Collections.Generic.List<$VALTYPE> _l;
137+ object yieldObject;
138+
139+#pragma warning disable 414
140+ System.Exception exception;
141+#pragma warning restore 414
142+
139143 System.Collections.Generic.List<$streamsym> streamStack =
140144 new System.Collections.Generic.List<$streamsym>();
141145
@@ -185,7 +189,6 @@
185189 ch1=`replace_strange_char $i`
186190 echo " ENGINE_${ch1} = new _Engine_${ch1}(this);"
187191 done
188-echo " __this__ = this;"
189192 echo " }"
190193
191194 [ -n "$ENABLE_LOG" ] && cat << EOF
@@ -1033,7 +1036,9 @@
10331036 echo
10341037 echo " public int Step($CTYPE __c__)"
10351038 echo ' {'
1039+ [ -n "$ENABLE_LOOKAHEAD" ] && echo '#pragma warning disable 219'
10361040 [ -n "$ENABLE_LOOKAHEAD" ] && echo ' bool __l__ = __this__.__lookahead_ok;'
1041+ [ -n "$ENABLE_LOOKAHEAD" ] && echo '#pragma warning restore 219'
10371042 [ -n "$ENABLE_LOOKAHEAD" ] && echo
10381043 [ -n "$DYNAMICAUTOMATA" ] && echo ' if((__this__.STATE & NinaDiscardstate) != 0) return 1;'
10391044 [ -n "$ENABLE_LOOKAHEAD" ] && echo ' __this__.__lookahead_ok = true;'
Show on old repository browser