1 11 package org.eclipse.swt.internal; 12 13 public class C extends Platform { 14 15 static { 16 if ("Linux".equals (System.getProperty ("os.name")) && "motif".equals (Platform.PLATFORM)) { try { 18 Library.loadLibrary ("libXm.so.2", false); } catch (UnsatisfiedLinkError ex) {} 20 } 21 Library.loadLibrary ("swt"); } 23 24 public static final int PTR_SIZEOF = PTR_sizeof (); 25 26 public static final native void free (int ptr); 27 public static final native int getenv (byte[] wcsToMbcs); 28 public static final native int malloc (int size); 29 public static final native void memmove (int dest, byte[] src, int size); 30 public static final native void memmove (int dest, char[] src, int size); 31 public static final native void memmove (int dest, double[] src, int size); 32 public static final native void memmove (int dest, float[] src, int size); 33 public static final native void memmove (int dest, int[] src, int size); 34 public static final native void memmove (int dest, long[] src, int size); 35 public static final native void memmove (int dest, short[] src, int size); 36 public static final native void memmove (byte[] dest, char[] src, int size); 37 public static final native void memmove (byte[] dest, int src, int size); 38 public static final native void memmove (int dest, int src, int size); 39 public static final native void memmove (char[] dest, int src, int size); 40 public static final native void memmove (double[] dest, int src, int size); 41 public static final native void memmove (float[] dest, int src, int size); 42 public static final native void memmove (int[] dest, byte[] src, int size); 43 public static final native void memmove (short[] dest, int src, int size); 44 public static final native void memmove (int[] dest, int src, int size); 45 public static final native void memmove (long[] dest, int src, int size); 46 public static final native int memset (int buffer, int c, int num); 47 public static final native int PTR_sizeof (); 48 public static final native int strlen (int s); 49 } 50 | Popular Tags |