Mercurial > projects > dwt-mac
comparison dwt/internal/C.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | 8b48be5454ce |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
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 * Port to the D Programming language: | |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | |
13 *******************************************************************************/ | |
14 module dwt.internal.C; | |
15 | |
16 public import tango.stdc.stdlib : free, malloc, getenv; | |
17 public import tango.stdc.string : memmove, memset, strlen; | |
18 | |
19 import dwt.dwthelper.utils; | |
20 import dwt.internal.Library; | |
21 import dwt.internal.Platform; | |
22 | |
23 public class C : Platform | |
24 { | |
25 | |
26 /*static this () | |
27 { | |
28 if ("Linux".opEquals(System.getProperty("os.name")) && "motif".opEquals( | |
29 Platform.PLATFORM)) | |
30 { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ | |
31 try | |
32 { | |
33 Library.loadLibrary("libXm.so.2", false); //$NON-NLS-1$ | |
34 } | |
35 catch (Exception ex) | |
36 { | |
37 } | |
38 } | |
39 | |
40 Library.loadLibrary("swt"); //$NON-NLS-1$ | |
41 }*/ | |
42 | |
43 alias tango.stdc.string.memmove MoveMemory; | |
44 | |
45 //public static final int PTR_SIZEOF = PTR_sizeof(); | |
46 | |
47 //public static final native int PTR_sizeof (); | |
48 } |