Revision: 1643 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1643&view=re... Author: frlan Date: 2010-10-09 00:03:32 +0000 (Sat, 09 Oct 2010)
Log Message: ----------- GeanyLaTeX: Use "" rather then "\0" for empty strings
Modified Paths: -------------- trunk/geanylatex/src/bibtex.c
Modified: trunk/geanylatex/src/bibtex.c =================================================================== --- trunk/geanylatex/src/bibtex.c 2010-10-09 00:00:26 UTC (rev 1642) +++ trunk/geanylatex/src/bibtex.c 2010-10-09 00:03:32 UTC (rev 1643) @@ -32,72 +32,72 @@
switch(doctype) { case GLATEX_BIBTEX_ARTICLE: - g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_JOURNAL) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_JOURNAL) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup(""); break; case GLATEX_BIBTEX_BOOK: - g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_EDITOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_PUBLISHER) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_EDITOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_PUBLISHER) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup(""); break; case GLATEX_BIBTEX_BOOKLET: - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); break; case GLATEX_BIBTEX_CONFERENCE: case GLATEX_BIBTEX_INCOLLECTION: case GLATEX_BIBTEX_INPROCEEDINGS: - g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_BOOKTITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_BOOKTITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup(""); break; case GLATEX_BIBTEX_INBOOK: - g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_EDITOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_CHAPTER) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_PAGES) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_PUBLISHER) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_EDITOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_CHAPTER) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_PAGES) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_PUBLISHER) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup(""); break; case GLATEX_BIBTEX_MANUAL: - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); break; case GLATEX_BIBTEX_MASTERSTHESIS: case GLATEX_BIBTEX_PHDTHESIS: - g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_SCHOOL) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_SCHOOL) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup(""); break; case GLATEX_BIBTEX_MISC: for (i = 0; i < GLATEX_BIBTEX_N_ENTRIES; i++) { - g_ptr_array_index(entry, i) = g_strdup("\0"); + g_ptr_array_index(entry, i) = g_strdup(""); } case GLATEX_BIBTEX_TECHREPORT: - g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_INSTITUTION) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_INSTITUTION) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup(""); break; case GLATEX_BIBTEX_UNPUBLISHED: - g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_NOTE) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_AUTHOR) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_NOTE) = g_strdup(""); break; case GLATEX_BIBTEX_PROCEEDINGS: - g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup("\0"); - g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup("\0"); + g_ptr_array_index(entry, GLATEX_BIBTEX_TITLE) = g_strdup(""); + g_ptr_array_index(entry, GLATEX_BIBTEX_YEAR) = g_strdup(""); break; default: for (i = 0; i < GLATEX_BIBTEX_N_ENTRIES; i++) { - g_ptr_array_index(entry, i) = g_strdup("\0"); + g_ptr_array_index(entry, i) = g_strdup(""); } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org