view org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/C.d @ 22:4642ab680468

some work on dwt-win for tango/phobos
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Mar 2009 12:52:28 +0100
parents 6dd524f61e62
children
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
module org.eclipse.swt.internal.C;

import org.eclipse.swt.internal.Platform;

version(Tango){
    static import tango.stdc.string;
} else { // Phobos
    static import std.c.string;
}

public class C : Platform {
    version(Tango){
        alias tango.stdc.string.memmove MoveMemory;
    } else { // Phobos
        alias std.c.string.memmove MoveMemory;
    }
//public static final native void free (int /*long*/ ptr);
//public static final native int /*long*/ getenv (byte[] wcsToMbcs);
//public static final native int /*long*/ malloc (int /*long*/ size);
}