[beast] BSE: compile bsecategories as C++ source
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] BSE: compile bsecategories as C++ source
- Date: Mon, 4 Jul 2011 20:01:02 +0000 (UTC)
commit a4bf88c653739580fdf4c558b9651c22f686ca88
Author: Stefan Westerfeld <stefan space twc de>
Date: Fri Jul 1 16:59:20 2011 +0200
BSE: compile bsecategories as C++ source
bse/Makefile.am | 2 +-
bse/{bsecategories.c => bsecategories.cc} | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index 035bcd5..718c455 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -67,7 +67,7 @@ bse_sources = $(strip \
gslwaveosc.c gslosctable.c gslmagic.c \
\
bseengine.c bseenginemaster.c bseengineschedule.c bseengineutils.c \
- bsebus.cc bsecategories.c \
+ bsebus.cc bsecategories.cc \
bsefilter.cc bsebiquadfilter.cc bsefilter-ellf.c \
bseconstant.c bseconstvalues.c bsecontainer.c bsecontextmerger.c \
bsedatapocket.c bseeditablesample.c bseenums.c bsegconfig.c \
diff --git a/bse/bsecategories.c b/bse/bsecategories.cc
similarity index 97%
rename from bse/bsecategories.c
rename to bse/bsecategories.cc
index ad53034..1df9ff3 100644
--- a/bse/bsecategories.c
+++ b/bse/bsecategories.cc
@@ -160,7 +160,7 @@ centry_new (const gchar *caller,
g_trash_stack_push (&free_entries, centry++);
}
else
- centry = g_trash_stack_pop (&free_entries);
+ centry = (CEntry*) g_trash_stack_pop (&free_entries);
centry->next = cat_entries;
cat_entries = centry;
@@ -226,8 +226,8 @@ static gint
centries_strorder (gconstpointer a,
gconstpointer b)
{
- const CEntry *e1 = a;
- const CEntry *e2 = b;
+ const CEntry *e1 = (const CEntry*) a;
+ const CEntry *e2 = (const CEntry*) b;
gchar *c1 = g_quark_to_string (e1->category);
gchar *c2 = g_quark_to_string (e2->category);
@@ -249,7 +249,7 @@ cats_sort (void)
last = NULL;
for (slist = clist; slist; slist = slist->next)
{
- centry = slist->data;
+ centry = (CEntry*) slist->data;
centry->next = last;
last = centry;
}
@@ -346,7 +346,7 @@ bse_category_from_id (guint id)
g_return_val_if_fail (id > 0, NULL);
- centry = sfi_ustore_lookup (category_ustore, id);
+ centry = (CEntry*) sfi_ustore_lookup (category_ustore, id);
if (centry)
{
BseCategory *cat = bse_category_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]