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

Switch to side-by-side view

--- a/libs/gtdrag/GTD_Apps.c
+++ b/libs/gtdrag/GTD_Apps.c
@@ -34,13 +34,16 @@
 }
 
 
-void PUBLIC GTD_RemoveApp(void)
+LIB_LH0(void, GTD_RemoveApp, 
+  struct Library *, library, 12, Gtdrag)
 {
+  LIBFUNC_INIT
+
   struct DragApp *da;
   struct MinNode *n,*s;
 
   ObtainSemaphore(&ListSemaphore);
-  if (da = GetDragApp(NULL))
+  if ((da = GetDragApp(NULL)) != 0)
   {
     for(n = winlist.mlh_Head;n->mln_Succ;n = n->mln_Succ)
     {
@@ -67,11 +70,18 @@
     FreeMem(da, sizeof(struct DragApp));
   }
   ReleaseSemaphore(&ListSemaphore);
+
+  LIBFUNC_EXIT
 }
 
 
-int PUBLIC GTD_AddAppA(reg (a0) STRPTR t,reg (a1) struct TagItem *tag1)
+LIB_LH2(int, GTD_AddAppA, 
+  LIB_LHA(STRPTR, t, A0),
+  LIB_LHA(struct TagItem *, tag1, A1),
+  struct Library *, library, 11, Gtdrag)
 {
+  LIBFUNC_INIT
+
   struct DragApp *da;
 
   if (!FindTagItem(GTDA_NewStyle,tag1))
@@ -80,7 +90,7 @@
 
   if (t && !GetDragApp(NULL))
   {
-    if (da = AllocMem(sizeof(struct DragApp),MEMF_PUBLIC | MEMF_CLEAR))
+    if ((da = AllocMem(sizeof(struct DragApp),MEMF_PUBLIC | MEMF_CLEAR)) != 0)
     {
       da->da_Name = t;
       da->da_Task = FindTask(NULL);
@@ -94,6 +104,6 @@
   }
   ReleaseSemaphore(&ListSemaphore);
   return(FALSE);
+
+  LIBFUNC_EXIT
 }
-
-

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

Sign up for the SourceForge newsletter:





No, thanks