Patch for building libcroco-0.3.0 with GCC 2.95
- From: Danilo Segan <dsegan gmx net>
- To: garnome-list gnome org
- Subject: Patch for building libcroco-0.3.0 with GCC 2.95
- Date: Thu, 18 Sep 2003 23:51:43 +0200
Even though libcroco in Gnome CVS already has this fixed, it might be
nice to include this patch in Garnome if there's no new tarball before
the next Garnome release.
I'll follow with more patches as I come into issues (I am building on a
NFS partition on a slow system, so I'll be back this century -- or
perhaps even sooner).
Cheers,
Danilo
--- libcroco-0.3.0/src/seleng/cr-sel-eng.c~ Sun Jun 29 17:49:40 2003
+++ libcroco-0.3.0/src/seleng/cr-sel-eng.c Thu Sep 18 21:42:59 2003
@@ -130,14 +130,14 @@
id_add_sel_matches_node (CRAdditionalSel *a_add_sel,
xmlNode *a_node)
{
+ xmlChar *id = NULL ;
+ gboolean result = FALSE ;
g_return_val_if_fail (a_add_sel
&& a_add_sel->type == ID_ADD_SELECTOR
&& a_add_sel->content.id_name
&& a_add_sel->content.id_name->str
&& a_node, FALSE) ;
- gboolean result = FALSE ;
- xmlChar *id = NULL ;
g_return_val_if_fail (a_add_sel
&& a_add_sel->type == ID_ADD_SELECTOR
@@ -786,10 +786,10 @@
for (cur_decl = a_stmt->kind.ruleset->decl_list ;
cur_decl ; cur_decl = cur_decl->next)
{
+ CRDeclaration *decl = NULL ;
+
if (!cur_decl->property || !cur_decl->property->str)
continue ;
-
- CRDeclaration *decl = NULL ;
/*
*First, test if the property is not
--- libcroco-0.3.0/src/layeng/cr-lay-eng.c~ Sat Jul 5 23:08:56 2003
+++ libcroco-0.3.0/src/layeng/cr-lay-eng.c Thu Sep 18 21:45:39 2003
@@ -1214,11 +1214,12 @@
CRBox *a_cur_box)
{
enum CRStatus status = CR_OK ;
+ CRBox *cont_box = NULL;
g_return_val_if_fail (a_cur_box && a_cur_box->style,
CR_BAD_PARAM_ERROR) ;
- CRBox *cont_box = a_cur_box->parent ;
+ cont_box = a_cur_box->parent ;
/************************************
*We are in a block formating context
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]