equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
29 import java.util.ArrayList; |
29 import java.util.ArrayList; |
30 import java.util.List; |
30 import java.util.List; |
31 |
31 |
32 import sun.misc.Unsafe; |
32 import sun.misc.Unsafe; |
33 |
33 |
34 import javax.tools.annotation.GenerateNativeHeader; |
|
35 |
34 |
36 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
37 @GenerateNativeHeader |
|
38 public final class JObjCRuntime { |
35 public final class JObjCRuntime { |
39 static { System.loadLibrary("JObjC"); } |
36 static { System.loadLibrary("JObjC"); } |
40 |
37 |
41 @GenerateNativeHeader |
|
42 public static enum Arch{ ppc, i386, x86_64 }; |
38 public static enum Arch{ ppc, i386, x86_64 }; |
43 @GenerateNativeHeader |
|
44 public static enum Width{ W32, W64 }; |
39 public static enum Width{ W32, W64 }; |
45 |
40 |
46 public static final Arch ARCH = getArch(); |
41 public static final Arch ARCH = getArch(); |
47 public static final Width WIDTH = getWidth(); |
42 public static final Width WIDTH = getWidth(); |
48 |
43 |