Revision: 1994 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1994&view=re... Author: frlan Date: 2011-03-17 10:53:50 +0000 (Thu, 17 Mar 2011)
Log Message: ----------- GeanyLaTeX: Attempt to fix a couple of compiling warnings came up with updates of build flags
Modified Paths: -------------- trunk/geany-plugins/geanylatex/ChangeLog trunk/geany-plugins/geanylatex/src/datatypes.h trunk/geany-plugins/geanylatex/src/formatpatterns.c trunk/geany-plugins/geanylatex/src/formatutils.h trunk/geany-plugins/geanylatex/src/latexencodings.h trunk/geany-plugins/geanylatex/src/latexenvironments.c trunk/geany-plugins/geanylatex/src/templates.c trunk/geanylatex/doc/geanylatex.pdf
Modified: trunk/geany-plugins/geanylatex/ChangeLog =================================================================== --- trunk/geany-plugins/geanylatex/ChangeLog 2011-03-17 03:52:29 UTC (rev 1993) +++ trunk/geany-plugins/geanylatex/ChangeLog 2011-03-17 10:53:50 UTC (rev 1994) @@ -1,3 +1,9 @@ +2011-03-17 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + + * Attempt to fix a couple of compiling warnings came up with updates + build flags. + + 2011-01-02 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* Correction of some typos (Thanks to André Glória for reporting)
Modified: trunk/geany-plugins/geanylatex/src/datatypes.h =================================================================== --- trunk/geany-plugins/geanylatex/src/datatypes.h 2011-03-17 03:52:29 UTC (rev 1993) +++ trunk/geany-plugins/geanylatex/src/datatypes.h 2011-03-17 10:53:50 UTC (rev 1994) @@ -33,7 +33,7 @@ typedef struct { gint cat; - gchar *label; + const gchar *label; gboolean sorted; } CategoryName;
@@ -41,7 +41,7 @@ typedef struct { gchar *filepath; - gchar *label; + const gchar *label; GString *template; } TemplateEntry;
@@ -65,15 +65,15 @@
typedef struct { - gchar *latex; - gchar *label; + const gchar *latex; + const gchar *label; } BibTeXType;
typedef struct { - gchar *label_name; + const gchar *label_name; gint page; - gchar *chapter; + const gchar *chapter; } LaTeXLabel;
#endif
Modified: trunk/geany-plugins/geanylatex/src/formatpatterns.c =================================================================== --- trunk/geany-plugins/geanylatex/src/formatpatterns.c 2011-03-17 03:52:29 UTC (rev 1993) +++ trunk/geany-plugins/geanylatex/src/formatpatterns.c 2011-03-17 10:53:50 UTC (rev 1994) @@ -21,7 +21,7 @@
#include "geanylatex.h"
-gchar* glatex_format_pattern[] = { +const gchar* glatex_format_pattern[] = { "\textit", "\textbf", "\underline", @@ -47,7 +47,7 @@ N_("Right side oriented") };
-gchar *glatex_fontsize_pattern[] = { +const gchar *glatex_fontsize_pattern[] = { "\tiny", "\scriptsize", "\footnotesize",
Modified: trunk/geany-plugins/geanylatex/src/formatutils.h =================================================================== --- trunk/geany-plugins/geanylatex/src/formatutils.h 2011-03-17 03:52:29 UTC (rev 1993) +++ trunk/geany-plugins/geanylatex/src/formatutils.h 2011-03-17 10:53:50 UTC (rev 1994) @@ -58,10 +58,10 @@ LATEX_FONTSIZE_END };
-extern gchar* glatex_format_pattern[]; +extern const gchar* glatex_format_pattern[]; extern const gchar *glatex_format_labels[]; extern const gchar *glatex_fontsize_labels[]; -extern gchar *glatex_fontsize_pattern[]; +extern const gchar *glatex_fontsize_pattern[]; void glatex_insert_latex_format(GtkMenuItem * menuitem, gpointer gdata); void glatex_insert_latex_fontsize(GtkMenuItem * menuitem, gpointer gdata);
Modified: trunk/geany-plugins/geanylatex/src/latexencodings.h =================================================================== --- trunk/geany-plugins/geanylatex/src/latexencodings.h 2011-03-17 03:52:29 UTC (rev 1993) +++ trunk/geany-plugins/geanylatex/src/latexencodings.h 2011-03-17 10:53:50 UTC (rev 1994) @@ -44,8 +44,8 @@ typedef struct { LaTeXEncodingIndex charset; - gchar *name; - gchar *latex; + const gchar *name; + const gchar *latex; gint geany_enc; } LaTeXEncodings;
Modified: trunk/geany-plugins/geanylatex/src/latexenvironments.c =================================================================== --- trunk/geany-plugins/geanylatex/src/latexenvironments.c 2011-03-17 03:52:29 UTC (rev 1993) +++ trunk/geany-plugins/geanylatex/src/latexenvironments.c 2011-03-17 10:53:50 UTC (rev 1994) @@ -51,7 +51,7 @@ {0, NULL, NULL}, };
-gchar *glatex_list_environments [] = +const gchar *glatex_list_environments [] = { "description", "enumerate",
Modified: trunk/geany-plugins/geanylatex/src/templates.c =================================================================== --- trunk/geany-plugins/geanylatex/src/templates.c 2011-03-17 03:52:29 UTC (rev 1993) +++ trunk/geany-plugins/geanylatex/src/templates.c 2011-03-17 10:53:50 UTC (rev 1994) @@ -85,8 +85,6 @@ /* Frees all elelements of struct */ void glatex_free_template_entry(TemplateEntry *template, G_GNUC_UNUSED gpointer *data){ if (template->label != NULL) - g_free(template->label); - if (template->label != NULL) g_free(template->filepath); if (template->label != NULL) g_string_free(template->template, TRUE);
Modified: trunk/geanylatex/doc/geanylatex.pdf =================================================================== (Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org