diff options
author | Silenio Quarti <silenio> | 2007-01-29 21:25:53 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2007-01-29 21:25:53 +0000 |
commit | 2df299c4c48aa7f55f45506f9a60a084ef1414bd (patch) | |
tree | 05608194665a99e80d0177ee229bbc4d69bb90e4 /bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java | |
parent | d8679e69aab375fad877f181bfff44d06787a4df (diff) | |
download | eclipse.platform.swt-2df299c4c48aa7f55f45506f9a60a084ef1414bd.tar.gz eclipse.platform.swt-2df299c4c48aa7f55f45506f9a60a084ef1414bd.tar.xz eclipse.platform.swt-2df299c4c48aa7f55f45506f9a60a084ef1414bd.zip |
renaming memcpy to memmove
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java index 1de27425c1..da2028a63b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java @@ -396,7 +396,7 @@ public boolean execute (String fileName) { int rc = -1; int fsRefPtr = OS.NewPtr(fsRef.length); if (fsRefPtr != 0) { - OS.memcpy(fsRefPtr, fsRef, fsRef.length); + OS.memmove(fsRefPtr, fsRef, fsRef.length); LSApplicationParameters params = new LSApplicationParameters(); params.version = 0; params.flags = 0; @@ -451,12 +451,12 @@ ImageData createImageFromFamily (int family, int type, int maskType, int width, OS.HLock (maskHandle); int[] iconPtr = new int [1]; int[] maskPtr = new int [1]; - OS.memcpy (iconPtr, dataHandle, 4); - OS.memcpy (maskPtr, maskHandle, 4); + OS.memmove (iconPtr, dataHandle, 4); + OS.memmove (maskPtr, maskHandle, 4); byte[] data = new byte[dataSize]; - OS.memcpy (data, iconPtr [0], dataSize); + OS.memmove (data, iconPtr [0], dataSize); byte[] alphaData = new byte[width * height]; - OS.memcpy(alphaData, maskPtr[0], alphaData.length); + OS.memmove(alphaData, maskPtr[0], alphaData.length); OS.HUnlock (maskHandle); OS.HUnlock (dataHandle); OS.DisposeHandle (maskHandle); |