rfxswf cleanup: replaced LP<type> by <type> *
[swftools.git] / lib / modules / swfobject.c
index 132f116..fe32e77 100644 (file)
@@ -1,59 +1,59 @@
-/* swfobject.c\r
-\r
-   Object place and move routines\r
-      \r
-   Extension module for the rfxswf library.\r
-   Part of the swftools package.\r
-\r
-   Copyright (c) 2001 Rainer Böhme <rfxswf@reflex-studio.de>\r
\r
-   This file is distributed under the GPL, see file COPYING for details \r
-\r
-*/\r
-\r
-#define PF_MOVE         0x01\r
-#define PF_CHAR         0x02\r
-#define PF_MATRIX       0x04\r
-#define PF_CXFORM       0x08\r
-#define PF_RATIO        0x10\r
-#define PF_NAME         0x20\r
-#define PF_CLIPACTION   0x40\r
-\r
-int ObjectPlace(LPTAG t,U16 id,U16 depth,LPMATRIX m,LPCXFORM cx,U8 * name)\r
-{ U8 flags;\r
-  if (!t) return -1;\r
-\r
-  flags = (id?PF_CHAR:0)|(m?PF_MATRIX:0)|(cx?PF_CXFORM:0)|(name?PF_NAME:0)|((m||cx)&&(!id)?PF_MOVE:0);\r
-\r
-  SetU8(t,flags);\r
-  SetU16(t,depth);\r
-  if (flags&PF_CHAR) SetU16(t,id);\r
-  if (flags&PF_MATRIX) SetMatrix(t,m);\r
-  if (flags&PF_CXFORM) SetCXForm(t,cx,(cx->a0!=256)||(cx->a1));\r
-  if (flags&PF_RATIO) SetU16(t,0);\r
-  if (flags&PF_NAME) SetString(t,name);\r
-  \r
-  return 0; \r
-}\r
-\r
-int PlaceObject(LPTAG t,U16 id,U16 depth,LPMATRIX m,LPCXFORM cx,U8 * name, U16 clipaction)\r
-{ U8 flags;\r
-  if (!t) return -1;\r
-\r
-  flags = (id?PF_CHAR:0)|(m?PF_MATRIX:0)|(cx?PF_CXFORM:0)|(name?PF_NAME:0)|\r
-          ((m||cx)&&(!id)?PF_MOVE:0)|(clipaction?PF_CLIPACTION:0);\r
-\r
-  SetU8(t,flags);\r
-  SetU16(t,depth);\r
-  if (flags&PF_CHAR) SetU16(t,id);\r
-  if (flags&PF_MATRIX) SetMatrix(t,m);\r
-  if (flags&PF_CXFORM) SetCXForm(t,cx,(cx->a0!=256)||(cx->a1));\r
-  if (flags&PF_RATIO) SetU16(t,0);\r
-  if (flags&PF_NAME) SetString(t,name);\r
-  if (flags&PF_CLIPACTION) SetU16(t, clipaction);\r
-  return 0; \r
-}\r
-\r
-int ObjectMove(LPTAG t,U16 depth,LPMATRIX m,LPCXFORM cx)\r
-{ return ObjectPlace(t,0,depth,m,cx,NULL);\r
-}\r
+/* swfobject.c
+
+   Object place and move routines
+      
+   Extension module for the rfxswf library.
+   Part of the swftools package.
+
+   Copyright (c) 2001 Rainer Böhme <rfxswf@reflex-studio.de>
+   This file is distributed under the GPL, see file COPYING for details 
+
+*/
+
+#define PF_MOVE         0x01
+#define PF_CHAR         0x02
+#define PF_MATRIX       0x04
+#define PF_CXFORM       0x08
+#define PF_RATIO        0x10
+#define PF_NAME         0x20
+#define PF_CLIPACTION   0x40
+
+int ObjectPlace(TAG * t,U16 id,U16 depth,MATRIX * m,CXFORM * cx,U8 * name)
+{ U8 flags;
+  if (!t) return -1;
+
+  flags = (id?PF_CHAR:0)|(m?PF_MATRIX:0)|(cx?PF_CXFORM:0)|(name?PF_NAME:0)|((m||cx)&&(!id)?PF_MOVE:0);
+
+  SetU8(t,flags);
+  SetU16(t,depth);
+  if (flags&PF_CHAR) SetU16(t,id);
+  if (flags&PF_MATRIX) SetMatrix(t,m);
+  if (flags&PF_CXFORM) SetCXForm(t,cx,(cx->a0!=256)||(cx->a1));
+  if (flags&PF_RATIO) SetU16(t,0);
+  if (flags&PF_NAME) SetString(t,name);
+  
+  return 0; 
+}
+
+int PlaceObject(TAG * t,U16 id,U16 depth,MATRIX * m,CXFORM * cx,U8 * name, U16 clipaction)
+{ U8 flags;
+  if (!t) return -1;
+
+  flags = (id?PF_CHAR:0)|(m?PF_MATRIX:0)|(cx?PF_CXFORM:0)|(name?PF_NAME:0)|
+          ((m||cx)&&(!id)?PF_MOVE:0)|(clipaction?PF_CLIPACTION:0);
+
+  SetU8(t,flags);
+  SetU16(t,depth);
+  if (flags&PF_CHAR) SetU16(t,id);
+  if (flags&PF_MATRIX) SetMatrix(t,m);
+  if (flags&PF_CXFORM) SetCXForm(t,cx,(cx->a0!=256)||(cx->a1));
+  if (flags&PF_RATIO) SetU16(t,0);
+  if (flags&PF_NAME) SetString(t,name);
+  if (flags&PF_CLIPACTION) SetU16(t, clipaction);
+  return 0; 
+}
+
+int ObjectMove(TAG * t,U16 depth,MATRIX * m,CXFORM * cx)
+{ return ObjectPlace(t,0,depth,m,cx,NULL);
+}