JAVARTS.C 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* javarts.c: Copyright (C) Codemist Ltd., 1996. */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include "machine.h"
  6. #include "tags.h"
  7. #include "cslerror.h"
  8. #include "externs.h"
  9. #include "read.h"
  10. #include "stream.h"
  11. #include "arith.h"
  12. #include "entries.h"
  13. #include "javahost.h"
  14. #include "javaops.h"
  15. #include "javaglb.h"
  16. static int32 *println(int32 *spbase)
  17. { err_printf("%s\n", (char *)spbase[1]);
  18. return spbase-1;
  19. }
  20. static JavaBuiltin sanitycheck = println;
  21. static Cp_Info Java_PrintStream_constant_pool[1];
  22. static unsigned16 Java_PrintStream_interfaces[1];
  23. static Field_Info Java_PrintStream_fields[1];
  24. static Method_Info Java_PrintStream_methods[1] =
  25. { /* access_flags */ ACC_NATIVE,
  26. /* name_index */ 0,
  27. /* signature_index */ 0,
  28. /* attributes_count; */ 2,
  29. /* attributes; */ (Attribute_Info *)println
  30. };
  31. static Attribute_Info Java_PrintStream_attributes[1];
  32. ClassFile java_PrintStream =
  33. {
  34. /* access_flags */ 0,
  35. /* this_class */ 0,
  36. /* super_class */ 0,
  37. /* constant_pool_count */ 0,
  38. /* interfaces_count */ 0,
  39. /* fields_count */ 1, /* out */
  40. /* methods_count */ 1, /* outs */
  41. /* attributes_count */ 0,
  42. /* constant_pool */ Java_PrintStream_constant_pool,
  43. /* interfaces */ Java_PrintStream_interfaces,
  44. /* fields */ Java_PrintStream_fields,
  45. /* methods */ Java_PrintStream_methods,
  46. /* attributes */ Java_PrintStream_attributes
  47. };
  48.