Package haikuvm.pc.tools.haikuc

Examples of haikuvm.pc.tools.haikuc.HaikuJava2C


  public void printC2Image() throws IOException {
    boolean natives=false;
    msg2meth =new Msg2Meth();
   
    Method[] methods=jc.getMethods();
    outc=new HaikuJava2C(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+filename(classname)+".c"));
    outh=new HaikuJava2H(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+filename(classname)+".h"));

    outc.println("/*");
        outc.printf("reason #%d: %s\n", Closure.get(classname).getId(), Closure.get(classname).getReason());
        outc.println();
View Full Code Here


        } else if (!CollectedIncludes.contains(inc)) {
            PrintOnChange arrayh = new HaikuJava2H(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+include+".h"));
            arrayh.printf("extern const class_t %s__class;\n", array);
            arrayh.close();
           
            PrintOnChange arrayc = new HaikuJava2C(new File(HaikuDefs.getProperty("APP_BASE")+"/"+Haikufy.choice("haikuJava")+"/"+include+".c"));
            if (!singleFile) {
                arrayc.printf("#include \"haikuConfig.h\"\n");
                arrayc.printf("#include \"haikuJava.h\"\n");
            }

            arrayc.printf("\n");
            arrayc.printf("const class_t %s__class PROGMEM = {\n", array);
            arrayc.printf("    & java_lang_Object__class,\n");
            arrayc.printf("    0,\n");
            arrayc.printf("    0,\n");
            arrayc.printf("    // {{}} VC 5\n");
            arrayc.printf("};\n");
            arrayc.close();
        }
        CollectedIncludes.put(inc);
    }
View Full Code Here

TOP

Related Classes of haikuvm.pc.tools.haikuc.HaikuJava2C

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.