From: Andrea Zagli Date: Thu, 14 Aug 2025 05:46:46 +0000 (+0200) Subject: Missing includes. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=reptool%2Flibreptool Missing includes. --- diff --git a/src/rptcommon.c b/src/rptcommon.c index 04f34d8..41fa07f 100644 --- a/src/rptcommon.c +++ b/src/rptcommon.c @@ -1,16 +1,16 @@ /* - * Copyright (C) 2007-2011 Andrea Zagli + * Copyright (C) 2007-2025 Andrea Zagli * * 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 #include +#include + #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); diff --git a/src/rptreport.c b/src/rptreport.c index 978d509..20c6546 100644 --- a/src/rptreport.c +++ b/src/rptreport.c @@ -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) {