Diff of /libs/gtdrag/GTD_Windows.c [4fea5c] .. [261749]  Maximize  Restore

Switch to side-by-side view

--- a/libs/gtdrag/GTD_Windows.c
+++ b/libs/gtdrag/GTD_Windows.c
@@ -31,7 +31,7 @@
     return;
 
   tstate = (struct TagItem *)tags;
-  while(ti = NextTagItem(&tstate))
+  while((ti = NextTagItem(&tstate)) != 0)
   {
     switch(ti->ti_Tag)
     {
@@ -47,8 +47,12 @@
 }
 
 
-void PUBLIC GTD_RemoveWindow(reg (a0) struct Window *win)
+LIB_LH1(void, GTD_RemoveWindow, 
+  LIB_LHA(struct Window *, win, A0),
+  struct Library *, library, 14, Gtdrag)
 {
+  LIBFUNC_INIT
+
   struct DragWindow *dw;
 
   ObtainSemaphore(&ListSemaphore);
@@ -63,11 +67,18 @@
     }
   }
   ReleaseSemaphore(&ListSemaphore);
+
+  LIBFUNC_EXIT
 }
 
 
-void PUBLIC GTD_AddWindowA(reg (a0) struct Window *win,reg (a1) struct TagItem *tags)
+LIB_LH2(void, GTD_AddWindowA, 
+  LIB_LHA(struct Window *, win, A0),
+  LIB_LHA(struct TagItem *, tags, A1),
+  struct Library *, library, 13, Gtdrag)
 {
+  LIBFUNC_INIT
+
   struct DragApp *da;
   struct DragWindow *dw;
 
@@ -82,4 +93,6 @@
     AddTail((struct List *)&winlist,(APTR)dw);
   }
   ReleaseSemaphore(&ListSemaphore);
+
+  LIBFUNC_EXIT
 }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks