private Target target = Target.Exe;
private string target_string = "exe";
private bool show_tokens = false;
- private bool show_method_def = false;
- private bool show_method_ref = false;
+// private bool show_method_def = false;
+// private bool show_method_ref = false;
private bool show_parser = false;
private bool scan_only = false;
private bool debugging_info = false;
ie.FilePath = file_path;
ie.Location = scanner.Reader.Location;
throw;
- } catch (Exception e){
+ } catch (Exception){
Console.Write ("{0} ({1}, {2}): ",file_path, scanner.Reader.Location.line, scanner.Reader.Location.column);
throw;
} finally {
case "show_tokens":
show_tokens = true;
break;
- case "show_method_def":
- show_method_def = true;
- break;
- case "show_method_ref":
- show_method_ref = true;
- break;
+// case "show_method_def":
+// show_method_def = true;
+// break;
+// case "show_method_ref":
+// show_method_ref = true;
+// break;
case "show_parser":
show_parser = true;
break;
PROGRAM = ilasm.exe
BUILT_SOURCES = ILParser.cs
-LOCAL_MCS_FLAGS = /lib:../class/lib/$(PROFILE) /r:../class/lib/$(PROFILE)/PEAPI.dll /r:Mono.CompilerServices.SymbolWriter.dll /r:Mono.Security.dll
+LIB_REFS = PEAPI Mono.CompilerServices.SymbolWriter Mono.Security
CLEAN_FILES = parser/y.output
\r
private PEFile pefile;\r
private ExternAssembly current_assemblyref;\r
- private ExternModule current_moduleref;\r
+// private ExternModule current_moduleref;\r
private string current_namespace;\r
private TypeDef current_typedef;\r
private MethodDef current_methoddef;\r
private long stack_reserve;\r
\r
private string output_file;\r
- private string debug_file;\r
private bool is_dll;\r
private bool entry_point;\r
\r
get { return current_assemblyref; }\r
}\r
\r
- public ExternModule CurrentModuleRef {\r
- get { return current_moduleref; }\r
- }\r
+// public ExternModule CurrentModuleRef {\r
+// get { return current_moduleref; }\r
+// }\r
\r
public ICustomAttrTarget CurrentCustomAttrTarget {\r
get { return current_customattrtarget; }\r
private PEAPI.NativeType native_type;
private bool offset_set;
- private bool datavalue_set;
+// private bool datavalue_set;
private bool value_set;
private bool is_resolved;
this.type = type;
offset_set = false;
- datavalue_set = false;
+// datavalue_set = false;
value_set = false;
at_data_id = null;
private BaseClassRef class_ref;
private PEAPI.GenericTypeInst p_gen_inst;
- private bool is_valuetypeinst;
+ const bool is_valuetypeinst = false;
private GenericArguments gen_args;
private bool is_added; /* Added to PEFile (to TypeSpec table) ? */
/* Note: Using static hashtable here as GenericTypeInsts is not cached */
private string pinvoke_meth;\r
private PEAPI.PInvokeAttr pinvoke_attr;\r
private ILTokenizer tokenizer;\r
- static int yacc_verbose_flag;\r
+ const int yacc_verbose_flag = 0;\r
KeyValuePair<string, TypeAttr> current_extern;\r
\r
class NameValuePair {\r
\r
public bool CheckSecurityActionValidity (System.Security.Permissions.SecurityAction action, bool for_assembly)\r
{\r
+#pragma warning disable 618\r
if ((action == System.Security.Permissions.SecurityAction.RequestMinimum || \r
action == System.Security.Permissions.SecurityAction.RequestOptional || \r
action == System.Security.Permissions.SecurityAction.RequestRefuse) && !for_assembly) {\r
Report.Warning (String.Format ("System.Security.Permissions.SecurityAction '{0}' is not valid for this declaration", action));\r
return false;\r
}\r
-\r
+#pragma warning restore 618\r
return true;\r
}\r
\r
case OperandType.InlineNone:\r
token = Token.INSTR_NONE;\r
break;\r
-\r
+#pragma warning disable 618\r
case OperandType.InlinePhi:\r
token = Token.INSTR_PHI;\r
break;\r
+#pragma warning restore 618\r
\r
case OperandType.InlineR:\r
case OperandType.ShortInlineR:\r