summaryrefslogtreecommitdiff
path: root/swfdec
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-11-10 19:47:21 +0100
committerBenjamin Otte <otte@gnome.org>2008-11-10 19:47:21 +0100
commitb9c5d1cce9f2e45f92e96918b36f8b949f1d9fce (patch)
tree440e6e9bc5bc7fc97a04a03af75219c0ad7036a4 /swfdec
parent1bae67b0b39d146489db7a5cfc9249be806e1041 (diff)
make SwfdecAsGcable private
Diffstat (limited to 'swfdec')
-rw-r--r--swfdec/swfdec_as_gcable.h1
-rw-r--r--swfdec/swfdec_as_internal.h2
-rw-r--r--swfdec/swfdec_as_object.h2
-rw-r--r--swfdec/swfdec_as_types.h4
4 files changed, 5 insertions, 4 deletions
diff --git a/swfdec/swfdec_as_gcable.h b/swfdec/swfdec_as_gcable.h
index 2c7a27cc..b6c2ad9c 100644
--- a/swfdec/swfdec_as_gcable.h
+++ b/swfdec/swfdec_as_gcable.h
@@ -30,6 +30,7 @@ G_BEGIN_DECLS
#define SWFDEC_AS_GC_ROOT (1 << 1)
#define SWFDEC_AS_GC_ALIGN (1 << 2)
+typedef struct _SwfdecAsGcable SwfdecAsGcable;
struct _SwfdecAsGcable {
SwfdecAsGcable * next;
};
diff --git a/swfdec/swfdec_as_internal.h b/swfdec/swfdec_as_internal.h
index 4f649512..cf066d3f 100644
--- a/swfdec/swfdec_as_internal.h
+++ b/swfdec/swfdec_as_internal.h
@@ -37,6 +37,8 @@ G_BEGIN_DECLS
#define SWFDEC_AS_OBJECT_PROTOTYPE_RECURSION_LIMIT 256
/* swfdec_as_types.h */
+#define SWFDEC_AS_TYPE_IS_GCABLE(type) ((type) & 4)
+
#define SWFDEC_AS_VALUE_IS_COMPOSITE(val) (SWFDEC_AS_VALUE_GET_TYPE (val) >= SWFDEC_AS_TYPE_OBJECT)
#define SWFDEC_AS_VALUE_IS_PRIMITIVE(val) (!SWFDEC_AS_VALUE_IS_COMPOSITE(val))
/* FIXME: ugly macro */
diff --git a/swfdec/swfdec_as_object.h b/swfdec/swfdec_as_object.h
index 9efa95c3..1e2442e9 100644
--- a/swfdec/swfdec_as_object.h
+++ b/swfdec/swfdec_as_object.h
@@ -49,7 +49,7 @@ typedef gboolean (* SwfdecAsVariableForeach) (SwfdecAsObject *object,
struct _SwfdecAsObject {
/*< private >*/
- SwfdecAsGcable * next; /* GC management */
+ SwfdecAsObject * next; /* GC management */
SwfdecAsContext * context; /* the context that manages the object */
gboolean array:1; /* TRUE if object is an array */
gboolean super:1; /* TRUE if object is a super object */
diff --git a/swfdec/swfdec_as_types.h b/swfdec/swfdec_as_types.h
index 756e8c15..b5a96e33 100644
--- a/swfdec/swfdec_as_types.h
+++ b/swfdec/swfdec_as_types.h
@@ -36,14 +36,12 @@ typedef enum {
SWFDEC_AS_TYPE_OBJECT = 6,
SWFDEC_AS_TYPE_MOVIE = 7
} SwfdecAsValueType;
-#define SWFDEC_AS_TYPE_IS_GCABLE(type) ((type) & 4)
typedef struct _SwfdecAsContext SwfdecAsContext;
typedef struct _SwfdecAsDebugger SwfdecAsDebugger;
typedef struct _SwfdecAsDoubleValue SwfdecAsDoubleValue;
typedef struct _SwfdecAsFrame SwfdecAsFrame;
typedef struct _SwfdecAsFunction SwfdecAsFunction;
-typedef struct _SwfdecAsGcable SwfdecAsGcable;
typedef struct _SwfdecAsObject SwfdecAsObject;
typedef struct _SwfdecAsRelay SwfdecAsRelay;
typedef struct _SwfdecAsScope SwfdecAsScope;
@@ -83,7 +81,7 @@ typedef struct _SwfdecScript SwfdecScript;
} G_STMT_END
struct _SwfdecAsDoubleValue {
- SwfdecAsGcable * next;
+ SwfdecAsDoubleValue * next;
double number;
};