KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > C


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
17
try {
18                 Library.loadLibrary ("libXm.so.2", false); //$NON-NLS-1$
19
} catch (UnsatisfiedLinkError JavaDoc ex) {}
20         }
21         Library.loadLibrary ("swt"); //$NON-NLS-1$
22
}
23
24     public static final int PTR_SIZEOF = PTR_sizeof ();
25
26 public static final native void free (int /*long*/ ptr);
27 public static final native int /*long*/ getenv (byte[] wcsToMbcs);
28 public static final native int /*long*/ malloc (int /*long*/ size);
29 public static final native void memmove (int /*long*/ dest, byte[] src, int /*long*/ size);
30 public static final native void memmove (int /*long*/ dest, char[] src, int /*long*/ size);
31 public static final native void memmove (int /*long*/ dest, double[] src, int /*long*/ size);
32 public static final native void memmove (int /*long*/ dest, float[] src, int /*long*/ size);
33 public static final native void memmove (int /*long*/ dest, int[] src, int /*long*/ size);
34 public static final native void memmove (int /*long*/ dest, long[] src, int /*long*/ size);
35 public static final native void memmove (int /*long*/ dest, short[] src, int /*long*/ size);
36 public static final native void memmove (byte[] dest, char[] src, int /*long*/ size);
37 public static final native void memmove (byte[] dest, int /*long*/ src, int /*long*/ size);
38 public static final native void memmove (int /*long*/ dest, int /*long*/ src, int /*long*/ size);
39 public static final native void memmove (char[] dest, int /*long*/ src, int /*long*/ size);
40 public static final native void memmove (double[] dest, int /*long*/ src, int /*long*/ size);
41 public static final native void memmove (float[] dest, int /*long*/ src, int /*long*/ size);
42 public static final native void memmove (int[] dest, byte[] src, int /*long*/ size);
43 public static final native void memmove (short[] dest, int /*long*/ src, int /*long*/ size);
44 public static final native void memmove (int[] dest, int /*long*/ src, int /*long*/ size);
45 public static final native void memmove (long[] dest, int /*long*/ src, int /*long*/ size);
46 public static final native int /*long*/ memset (int /*long*/ buffer, int c, int /*long*/ num);
47 public static final native int PTR_sizeof ();
48 public static final native int strlen (int /*long*/ s);
49 }
50
Popular Tags