public Packer(PackerRun config)
{
this.config = config;
-#if HAVE_JSON_GLIB
+//#if HAVE_JSON_GLIB
this.result = new Json.Object();
-#else
- this.result_count = new Gee.HashMap <string,int>();
-
- this.result = new Gee.HashMap<
- string /* errtype*/ , Gee.HashMap<string /*fn*/, Gee.HashMap<int /*line*/, Gee.ArrayList<string>>>
- >();
-
-#endif
+//#else
+// this.result_count = new Gee.HashMap <string,int>();
+//
+// this.result = new Gee.HashMap<
+//# string /* errtype*/ , Gee.HashMap<string /*fn*/, Gee.HashMap<int /*line*/, Gee.ArrayList<string>>>
+//# >();
+//#endif
+//
this.files = new Gee.ArrayList<string>();
new Lang_Class(); ///initilizaze lang..
*
*/
-#if HAVE_JSON_GLIB
+//#if HAVE_JSON_GLIB
public Json.Object result; // output - what's the complication result
});
}
-#else
+/*#else
public Gee.HashMap <string,int> result_count; // output - what's the complication result
public Gee.HashMap<
- string /* errtype*/ , Gee.HashMap<string /*fn*/, Gee.HashMap<int /*line*/, Gee.ArrayList<string>>>
+ string // errtype
+ , Gee.HashMap<string //fn
+ ,Gee.HashMap<int //line
+ , Gee.ArrayList<string>>>
> result;
public void logError(ResultType type, string filename, int line, string message) {
if (!this.result.has_key(type.to_string())) {
this.result.set(type.to_string(),
- new Gee.HashMap<string /*fn*/, Gee.HashMap<int /*line*/, Gee.ArrayList<string>>>()
+ new Gee.HashMap<string //fn
+ , Gee.HashMap<int //line
+ , Gee.ArrayList<string>>>()
);
}
var t = this.result.get(type.to_string());
if (!t.has_key(filename)) {
- t.set(filename, new Gee.HashMap<int /*line*/, Gee.ArrayList<string>>());
+ t.set(filename, new Gee.HashMap<int //line
+ , Gee.ArrayList<string>>());
}
var tt = t.get(filename);
if (!tt.has_key(line)) {
#endif
-
+*/
public void loadSourceIndexes(Gee.ArrayList<string> indexes)