Windows API support

Todd Fleming todd at flemingcnc.com
Wed Jan 5 11:28:28 PST 2005


Getting closer. diff3 attached. I wonder which is the most broken, CVS 
or patch. CVS is fundamentally broken in many ways, but patch keeps 
asking me this rather obvious question:

can't find file to patch at input line 7
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|===================================================================
|RCS file: /var/lib/cvs/slate/slate/src/mobius/vm/ext/extprim.slate,v
|retrieving revision 1.2
|diff -u -r1.2 extprim.slate
|--- src/mobius/vm/ext/extprim.slate    2 Nov 2004 21:35:00 -0000       1.2
|+++ src/mobius/vm/ext/extprim.slate    5 Jan 2005 13:36:43 -0000
--------------------------
File to patch:

Patch seems to work after I answer the questions, in this case 
"src/mobius/vm/ext/extprim.slate". My patch version is 2.5.

Brian Rice wrote:

> Thanks! For some reason I had to manually apply it. Using patch made 
> it "lie" for some reason. Anyway I checked in the changes and verified 
> the CVS version diffs against your patch. Let me know if there are any 
> further problems.


-------------- next part --------------
? diff3
? diffs 1-4-05
? diffs2
? orig slatevm.c
? orig slatevm.h
? Slate.pdb
? slatevm.c
? slatevm.h
? ug
? src/mobius/vm/platform/windows/Slate-VS2003.sln
? src/mobius/vm/platform/windows/Slate-VS2003.vcproj
Index: src/lib/extlib.slate
===================================================================
RCS file: /var/lib/cvs/slate/slate/src/lib/extlib.slate,v
retrieving revision 1.7
diff -u -r1.7 extlib.slate
--- src/lib/extlib.slate	5 Jan 2005 03:45:05 -0000	1.7
+++ src/lib/extlib.slate	5 Jan 2005 18:35:02 -0000
@@ -14,9 +14,15 @@
   #Boolean -> 5.
 } do: [| :assoc | ExternalMethod ArgumentFormat addImmutableSlot: assoc key valued: assoc value].
 
+ExternalMethod traits ensureNamespace: #CallFormat.
+{ #C -> 0.
+  #Std -> 1.
+} do: [| :assoc | ExternalMethod CallFormat addImmutableSlot: assoc key valued: assoc value].
+
 ExternalMethod addSlot: #library valued: Nil.
 ExternalMethod addSlot: #name valued: Nil.
 ExternalMethod addSlot: #argumentsFormat valued: {}.
+ExternalMethod addSlot: #callFormat valued: ExternalMethod CallFormat C.
 ExternalMethod addSlot: #resultFormat valued: ExternalMethod ArgumentFormat Void.
 
 d@(ExternalLibrary traits) newNamed: libName


More information about the Slate mailing list