From 253067c782955380bbf66ac0475dc954375b1ff4 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sat, 17 Aug 2013 13:40:51 +0200 Subject: Move all the things (YES. Move them.) Also, implemented some basic modlist logic, to be wired up. --- java/test.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 java/test.cpp (limited to 'java/test.cpp') diff --git a/java/test.cpp b/java/test.cpp deleted file mode 100644 index f73e3c21..00000000 --- a/java/test.cpp +++ /dev/null @@ -1,35 +0,0 @@ - -#include "classfile.h" -#include "annotations.h" -#include -#include - -int main(int argc, char* argv[]) -{ - if(argc > 1) - { - std::ifstream file_in(argv[1]); - if(file_in.is_open()) - { - file_in.seekg(0, std::_S_end); - auto length = file_in.tellg(); - char * data = new char[length]; - file_in.seekg(0); - file_in.read(data,length); - java::classfile cf (data, length); - java::annotation_table atable = cf.visible_class_annotations; - for(int i = 0; i < atable.size(); i++) - { - std::cout << atable[i]->toString() << std::endl; - } - return 0; - } - else - { - std::cerr << "Failed to open file : " << argv[1] << std::endl; - return 1; - } - } - std::cerr << "No file to open :(" << std::endl; - return 1; -} \ No newline at end of file -- cgit