]> saetta.ns0.it Git - reptool/libreptool/commitdiff
Missing includes. develop
authorAndrea Zagli <azagli@libero.it>
Thu, 14 Aug 2025 05:46:46 +0000 (07:46 +0200)
committerAndrea Zagli <azagli@libero.it>
Thu, 14 Aug 2025 05:46:46 +0000 (07:46 +0200)
src/rptcommon.c
src/rptreport.c

index 04f34d80df07f7552808861fd0fc2c9cc8c52410..41fa07f07c7dc9e3776dcc1566f45fe37f7fe548 100644 (file)
@@ -1,16 +1,16 @@
 /*
- * Copyright (C) 2007-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2007-2025 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
  * version 2.1 of the License, or (at your option) any later version.
- * 
+ *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
@@ -19,6 +19,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <ctype.h>
+
 #include "rptcommon.h"
 
 static GArray *rpt_common_parse_style (const gchar *style);
@@ -930,15 +932,15 @@ rpt_common_set_font (xmlNode *xnode, const RptFont *font)
                                                        case PANGO_UNDERLINE_SINGLE:
                                                                xmlSetProp (xnode, "font-underline", "single");
                                                                break;
-               
+
                                                        case PANGO_UNDERLINE_DOUBLE:
                                                                xmlSetProp (xnode, "font-underline", "double");
                                                                break;
-               
+
                                                        case PANGO_UNDERLINE_LOW:
                                                                xmlSetProp (xnode, "font-underline", "low");
                                                                break;
-               
+
                                                        case PANGO_UNDERLINE_ERROR:
                                                                xmlSetProp (xnode, "font-underline", "error");
                                                                break;
@@ -1473,7 +1475,7 @@ GdkColor
        GdkColor *gdk_color;
 
        gdk_color = (GdkColor *)g_malloc0 (sizeof (GdkColor));
-       
+
        gdk_color->red = color->r * 65535;
        gdk_color->green = color->g * 65535;
        gdk_color->blue = color->b * 65535;
@@ -1524,7 +1526,7 @@ static GArray
                                                        val = strtod (values[i], NULL);
                                                        g_array_append_val (ret, val);
                                                }
-               
+
                                        i++;
                                }
                        g_strfreev (values);
index 978d50935165121fb5eb5a6d88b6fabfe71906f8..20c6546d5c4863fe5912d3ea36e64651da8d1527 100644 (file)
@@ -5,12 +5,12 @@
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
  * version 2.1 of the License, or (at your option) any later version.
- * 
+ *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
@@ -39,6 +39,7 @@
 
 #include "rptmarshal.h"
 
+#include "lexycal.yy.h"
 #include "parser.tab.h"
 
 typedef struct
@@ -401,7 +402,7 @@ RptReport
                                                                                                {
                                                                                                        sql = g_strstrip ((gchar *)xmlNodeGetContent (cur_database));
                                                                                                }
-                                                                                       
+
                                                                                        cur_database = cur_database->next;
                                                                                }
 
@@ -1202,7 +1203,7 @@ rpt_report_get_section_height (RptReport *rpt_report,
 }
 
 /**
- * rpt_report_set_section_height: 
+ * rpt_report_set_section_height:
  * @rpt_report: an #RptReport object.
  * @section:
  * @height: the section's height.
@@ -1648,7 +1649,7 @@ xmlDoc
  * rpt_report_get_xml_rptprint:
  * @rpt_report: an #RptReport object.
  *
- * Returns: an #xmlDoc, that represents the generated report, to pass to 
+ * Returns: an #xmlDoc, that represents the generated report, to pass to
  * function rpt_print_new_from_xml().
  */
 xmlDoc
@@ -2399,7 +2400,7 @@ static RptObject
                                                        obj = (RptObject *)list->data;
                                                        break;
                                                }
-                               
+
                                        list = g_list_next (list);
                                }
                }
@@ -2496,13 +2497,13 @@ rpt_report_section_create (RptReport *rpt_report, RptReportSection section)
                }
 }
 
-/** 
+/**
  * rpt_report_object_is_in_section:
  * @rpt_report: an #RptReport object.
  * @rpt_object: an #RptObject object.
  * @section:
  *
- * Returns: TRUE if rpt_object is contained into 
+ * Returns: TRUE if rpt_object is contained into
  */
 static gboolean
 rpt_report_object_is_in_section (RptReport *rpt_report, RptObject *rpt_object, RptReportSection section)
@@ -2789,7 +2790,7 @@ rpt_report_xml_parse_section (RptReport *rpt_report, xmlNode *xnode, RptReportSe
 
                        case RPTREPORT_SECTION_BODY:
                                priv->body->height = height;
-                       
+
                                prop = xmlGetProp (xnode, "new-page-after");
                                if (prop != NULL)
                                        {