Revision: 2207
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2207&view=rev
Author: colombanw
Date: 2011-09-21 16:56:38 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
PrettyPrinter: fix printError()
A va_list isn't equal to the argument it represents, and needs an
appropriate function expecting itself a va_list.
Also, it is not possible to do implicit concatenation of strings when
one of the strings is not a literal.
Modified Paths:
--------------
trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c
Modified: trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c
===================================================================
--- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-21 16:56:19 UTC (rev 2206)
+++ trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-21 16:56:38 UTC (rev 2207)
@@ -1085,9 +1085,10 @@
va_list va;
va_start(va, msg);
#ifdef HAVE_GLIB
- g_warning(msg, va);
+ g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, msg, va);
#else
- PP_ERROR(msg, va);
+ vfprintf(stderr, msg, va);
+ putc('\n', stderr);
#endif
va_end(va);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2206
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2206&view=rev
Author: colombanw
Date: 2011-09-21 16:56:19 +0000 (Wed, 21 Sep 2011)
Log Message:
-----------
PrettyPrinter: use proper C prototypes
Modified Paths:
--------------
trunk/geany-plugins/pretty-printer/src/ConfigUI.c
trunk/geany-plugins/pretty-printer/src/ConfigUI.h
trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c
trunk/geany-plugins/pretty-printer/src/PrettyPrinter.h
Modified: trunk/geany-plugins/pretty-printer/src/ConfigUI.c
===================================================================
--- trunk/geany-plugins/pretty-printer/src/ConfigUI.c 2011-09-19 21:54:03 UTC (rev 2205)
+++ trunk/geany-plugins/pretty-printer/src/ConfigUI.c 2011-09-21 16:56:19 UTC (rev 2206)
@@ -82,7 +82,7 @@
return container;
}
-void saveSettings()
+void saveSettings(void)
{
PrettyPrintingOptions* ppo = prettyPrintingOptions;
Modified: trunk/geany-plugins/pretty-printer/src/ConfigUI.h
===================================================================
--- trunk/geany-plugins/pretty-printer/src/ConfigUI.h 2011-09-19 21:54:03 UTC (rev 2205)
+++ trunk/geany-plugins/pretty-printer/src/ConfigUI.h 2011-09-21 16:56:19 UTC (rev 2206)
@@ -32,6 +32,6 @@
//========================================== FUNCTIONS ========================================================
GtkWidget* createPrettyPrinterConfigUI(GtkDialog* dialog);
-void saveSettings();
+void saveSettings(void);
#endif
Modified: trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c
===================================================================
--- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-19 21:54:03 UTC (rev 2205)
+++ trunk/geany-plugins/pretty-printer/src/PrettyPrinter.c 2011-09-21 16:56:19 UTC (rev 2206)
@@ -25,33 +25,33 @@
static void putCharsInBuffer(const char* charsToAdd); //put the chars into the new char buffer
static void putNextCharsInBuffer(int nbChars); //put the next nbChars of the input buffer into the new buffer
static int readWhites(bool considerLineBreakAsWhite); //read the next whites into the input buffer
-static char readNextChar(); //read the next char into the input buffer;
-static char getNextChar(); //returns the next char but do not increase the input buffer index (use readNextChar for that)
-static char getPreviousInsertedChar(); //returns the last inserted char into the new buffer
+static char readNextChar(void); //read the next char into the input buffer;
+static char getNextChar(void); //returns the next char but do not increase the input buffer index (use readNextChar for that)
+static char getPreviousInsertedChar(void); //returns the last inserted char into the new buffer
static bool isWhite(char c); //check if the specified char is a white
static bool isSpace(char c); //check if the specified char is a space
static bool isLineBreak(char c); //check if the specified char is a new line
static bool isQuote(char c); //check if the specified char is a quote (simple or double)
-static int putNewLine(); //put a new line into the new char buffer with the correct number of whites (indentation)
-static bool isInlineNodeAllowed(); //check if it is possible to have an inline node
+static int putNewLine(void); //put a new line into the new char buffer with the correct number of whites (indentation)
+static bool isInlineNodeAllowed(void); //check if it is possible to have an inline node
static bool isOnSingleLine(int skip, char stop1, char stop2); //check if the current node data is on one line (for inlining)
static void resetBackwardIndentation(bool resetLineBreak); //reset the indentation for the current depth (just reset the index in fact)
//specific parsing functions
-static int processElements(); //returns the number of elements processed
-static void processElementAttribute(); //process on attribute of a node
-static void processElementAttributes(); //process all the attributes of a node
-static void processHeader(); //process the header <?xml version="..." ?>
-static void processNode(); //process an XML node
-static void processTextNode(); //process a text node
-static void processComment(); //process a comment
-static void processCDATA(); //process a CDATA node
-static void processDoctype(); //process a DOCTYPE node
-static void processDoctypeElement(); //process a DOCTYPE ELEMENT node
+static int processElements(void); //returns the number of elements processed
+static void processElementAttribute(void); //process on attribute of a node
+static void processElementAttributes(void); //process all the attributes of a node
+static void processHeader(void); //process the header <?xml version="..." ?>
+static void processNode(void); //process an XML node
+static void processTextNode(void); //process a text node
+static void processComment(void); //process a comment
+static void processCDATA(void); //process a CDATA node
+static void processDoctype(void); //process a DOCTYPE node
+static void processDoctypeElement(void); //process a DOCTYPE ELEMENT node
//debug function
static void printError(const char *msg, ...); //just print a message like the printf method
-static void printDebugStatus(); //just print some variables into the console for debugging
+static void printDebugStatus(void); //just print some variables into the console for debugging
//============================================ PRIVATE PROPERTIES ======================================
@@ -145,7 +145,7 @@
return result;
}
-PrettyPrintingOptions* createDefaultPrettyPrintingOptions()
+PrettyPrintingOptions* createDefaultPrettyPrintingOptions(void)
{
PrettyPrintingOptions* defaultOptions = (PrettyPrintingOptions*)malloc(sizeof(PrettyPrintingOptions));
if (defaultOptions == NULL)
@@ -212,12 +212,12 @@
}
}
-char getPreviousInsertedChar()
+char getPreviousInsertedChar(void)
{
return xmlPrettyPrinted[xmlPrettyPrintedIndex-1];
}
-int putNewLine()
+int putNewLine(void)
{
putCharsInBuffer(options->newLineChars);
int spaces = currentDepth*options->indentLength;
@@ -230,12 +230,12 @@
return spaces;
}
-char getNextChar()
+char getNextChar(void)
{
return inputBuffer[inputBufferIndex];
}
-char readNextChar()
+char readNextChar(void)
{
return inputBuffer[inputBufferIndex++];
}
@@ -278,7 +278,7 @@
c == '\r');
}
-bool isInlineNodeAllowed()
+bool isInlineNodeAllowed(void)
{
//the last action was not an opening => inline not allowed
if (!lastNodeOpen) { return FALSE; }
@@ -403,7 +403,7 @@
//-----------------------------------------------------------------------------------------------------------------------------------------
//#########################################################################################################################################
-int processElements()
+int processElements(void)
{
int counter = 0;
++currentDepth;
@@ -474,7 +474,7 @@
return counter;
}
-void processElementAttribute()
+void processElementAttribute(void)
{
//process the attribute name
char nextChar = readNextChar();
@@ -502,7 +502,7 @@
putCharInBuffer(quote);
}
-void processElementAttributes()
+void processElementAttributes(void)
{
char current = getNextChar(); //should not be a white
if (isWhite(current))
@@ -529,7 +529,7 @@
}
}
-void processHeader()
+void processHeader(void)
{
int firstChar = inputBuffer[inputBufferIndex]; //should be '<'
int secondChar = inputBuffer[inputBufferIndex+1]; //must be '?'
@@ -556,7 +556,7 @@
}
}
-void processNode()
+void processNode(void)
{
int opening = readNextChar();
if (opening != '<')
@@ -632,7 +632,7 @@
{
//the tag is just closed (maybe some content)
putNextCharsInBuffer(1);
- subElementsProcessed = processElements(TRUE);
+ subElementsProcessed = processElements();
}
else
{
@@ -694,7 +694,7 @@
currentNodeName = NULL;
}
-void processComment()
+void processComment(void)
{
bool inlineAllowed = FALSE;
if (options->inlineComment) { inlineAllowed = isInlineNodeAllowed(); }
@@ -799,7 +799,7 @@
lastNodeOpen = FALSE;
}
-void processTextNode()
+void processTextNode(void)
{
//checks if inline is allowed
bool inlineTextAllowed = FALSE;
@@ -891,7 +891,7 @@
lastNodeOpen = FALSE;
}
-void processCDATA()
+void processCDATA(void)
{
bool inlineAllowed = FALSE;
if (options->inlineCdata) { inlineAllowed = isInlineNodeAllowed(); }
@@ -1013,7 +1013,7 @@
lastNodeOpen = FALSE;
}
-void processDoctype()
+void processDoctype(void)
{
putNextCharsInBuffer(9); //put the '<!DOCTYPE' into the buffer
@@ -1074,7 +1074,7 @@
}
}
-void processDoctypeElement()
+void processDoctypeElement(void)
{
printError("ELEMENT is currently not supported by PrettyPrinter\n");
result = PRETTY_PRINTING_NOT_SUPPORTED_YET;
@@ -1094,7 +1094,7 @@
printDebugStatus();
}
-void printDebugStatus()
+void printDebugStatus(void)
{
#ifdef HAVE_GLIB
g_debug("\n===== INPUT =====\n%s\n=================\ninputLength = %d\ninputIndex = %d\noutputLength = %d\noutputIndex = %d\n",
Modified: trunk/geany-plugins/pretty-printer/src/PrettyPrinter.h
===================================================================
--- trunk/geany-plugins/pretty-printer/src/PrettyPrinter.h 2011-09-19 21:54:03 UTC (rev 2205)
+++ trunk/geany-plugins/pretty-printer/src/PrettyPrinter.h 2011-09-21 16:56:19 UTC (rev 2206)
@@ -85,6 +85,6 @@
//========================================== FUNCTIONS =========================================================
int processXMLPrettyPrinting(char** xml, int* length, PrettyPrintingOptions* ppOptions); //process the pretty-printing on a valid xml string (no check done !!!). The ppOptions ARE NOT FREE-ED after processing. The method returns 0 if the pretty-printing has been done.
-PrettyPrintingOptions* createDefaultPrettyPrintingOptions(); //creates a default PrettyPrintingOptions object
+PrettyPrintingOptions* createDefaultPrettyPrintingOptions(void); //creates a default PrettyPrintingOptions object
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2203
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2203&view=rev
Author: techet
Date: 2011-09-18 13:28:35 +0000 (Sun, 18 Sep 2011)
Log Message:
-----------
gproject: Escape * in README
Modified Paths:
--------------
trunk/geany-plugins/gproject/README
Modified: trunk/geany-plugins/gproject/README
===================================================================
--- trunk/geany-plugins/gproject/README 2011-09-18 13:27:39 UTC (rev 2202)
+++ trunk/geany-plugins/gproject/README 2011-09-18 13:28:35 UTC (rev 2203)
@@ -73,7 +73,7 @@
Upon project creation, you should define the list of file patterns under the
Project->Properties Project tab. For instance, for a typical open source C project,
-use patterns "*.c *h *.am *.ac" to see the source files together with
+use patterns "\*.c \*h \*.am \*.ac" to see the source files together with
automake and autoconf files. After closing the dialog, the files matching the patterns
should appear in the sidebar under the Project tab (unless the GProject plugin
was loaded after the project - see Known Issues for more details).
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2200
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2200&view=rev
Author: alvesh88
Date: 2011-09-18 11:31:46 +0000 (Sun, 18 Sep 2011)
Log Message:
-----------
Update of dutch translation.
Modified Paths:
--------------
trunk/geany-plugins/po/nl.po
Modified: trunk/geany-plugins/po/nl.po
===================================================================
--- trunk/geany-plugins/po/nl.po 2011-09-16 13:47:03 UTC (rev 2199)
+++ trunk/geany-plugins/po/nl.po 2011-09-18 11:31:46 UTC (rev 2200)
@@ -19,15 +19,15 @@
#: ../addons/src/ao_bookmarklist.c:179
msgid "(Empty Line)"
-msgstr ""
+msgstr "(Lege regel)"
#: ../addons/src/ao_bookmarklist.c:304
msgid "_Remove Bookmark"
-msgstr ""
+msgstr "Verwijder bladwijzer"
#: ../addons/src/ao_bookmarklist.c:330
msgid "No."
-msgstr "Nee"
+msgstr "Nee."
#: ../addons/src/ao_bookmarklist.c:338 ../devhelp/src/dhp-object.c:498
msgid "Contents"
@@ -35,7 +35,7 @@
#: ../addons/src/ao_bookmarklist.c:371 ../treebrowser/src/treebrowser.c:607
msgid "Bookmarks"
-msgstr ""
+msgstr "Bladwijzers"
#. complete update
#: ../addons/src/ao_tasks.c:368 ../geanyvc/src/geanyvc.c:2254
@@ -44,7 +44,7 @@
#: ../addons/src/ao_tasks.c:377
msgid "_Hide Message Window"
-msgstr ""
+msgstr "_Verberg berichtenvenster"
#: ../addons/src/ao_tasks.c:407 ../debugger/src/stree.c:214
msgid "File"
@@ -67,7 +67,7 @@
#: ../addons/src/ao_tasks.c:473
#, fuzzy
msgid "Tasks"
-msgstr "Taak"
+msgstr "Taken"
#: ../addons/src/ao_tasks.c:535
msgid "Context:"
@@ -75,18 +75,19 @@
#: ../addons/src/ao_xmltagging.c:52
msgid "XML tagging"
-msgstr ""
+msgstr "XML labelen"
#: ../addons/src/ao_xmltagging.c:63
msgid "Tag name to be inserted:"
-msgstr ""
+msgstr "In te voegen label naam:"
#: ../addons/src/ao_xmltagging.c:67
#, c-format
msgid ""
"%s will be replaced with your current selection. Please keep care on your "
"selection"
-msgstr ""
+msgstr "De huidige selectie zal vervangen worden door \"%s\". Houd alstubieft "
+"de selectie in de gaten"
#: ../addons/src/ao_openuri.c:162
msgid "Open URI"
@@ -94,27 +95,27 @@
#: ../addons/src/ao_openuri.c:168
msgid "Copy URI"
-msgstr ""
+msgstr "KopiÃĢer URI"
#: ../addons/src/ao_doclist.c:204
msgid "Close Ot_her Documents"
-msgstr ""
+msgstr "Sluit andere documenten"
#: ../addons/src/ao_doclist.c:209
msgid "C_lose All"
-msgstr "Alles sluiten"
+msgstr "S_luit alle documenten"
#: ../addons/src/ao_doclist.c:239
msgid "Show Document List"
-msgstr ""
+msgstr "Laat documentlijst zien"
#: ../addons/src/addons.c:52
msgid "Addons"
-msgstr ""
+msgstr "Toevoegingen"
#: ../addons/src/addons.c:53
msgid "Various small addons for Geany."
-msgstr ""
+msgstr "Verscheidene kleine toevoegingen voor Geany"
#: ../addons/src/addons.c:290
msgid "Focus Bookmark List"
@@ -122,15 +123,15 @@
#: ../addons/src/addons.c:292
msgid "Focus Tasks List"
-msgstr ""
+msgstr "Focus bladwijzerlijst"
#: ../addons/src/addons.c:294
msgid "Update Tasks List"
-msgstr ""
+msgstr "Update takenlijst"
#: ../addons/src/addons.c:296
msgid "Run XML tagging"
-msgstr ""
+msgstr "XML labelen uitvoeren"
#: ../addons/src/addons.c:396 ../geanylatex/src/geanylatex.c:234
#: ../geanysendmail/src/geanysendmail.c:125
@@ -138,82 +139,86 @@
#: ../spellcheck/src/scplugin.c:146 ../treebrowser/src/treebrowser.c:1816
#: ../updatechecker/src/updatechecker.c:253
msgid "Plugin configuration directory could not be created."
-msgstr ""
+msgstr "Plug-in configuratiemap kon niet worden aangemaakt."
#: ../addons/src/addons.c:423
msgid "Show toolbar item to show a list of currently open documents"
-msgstr ""
+msgstr "Laat een toolbar item zien om een lijst met geopende documenten"
+"te tonen"
#: ../addons/src/addons.c:427
msgid "Sort documents by _name"
-msgstr ""
+msgstr "Sorteer documenten op _naam"
#: ../addons/src/addons.c:429
msgid "Sort the documents in the list by their filename"
-msgstr ""
+msgstr "Sorteer de documenten in de lijst op hun bestandsnaam"
#: ../addons/src/addons.c:432
msgid "Sort documents by _occurrence"
-msgstr ""
+msgstr "Sorteer documenten op aantal v_oorkomens"
#: ../addons/src/addons.c:434
msgid "Sort the documents in the order of the document tabs"
-msgstr ""
+msgstr "Sorteer de documenten in de volgorde van de tabs"
#: ../addons/src/addons.c:437
msgid "Sort documents by _occurrence (reversed)"
-msgstr ""
+msgstr "Sorteer documenten op aantal v_oorkomens (achteruit)"
#: ../addons/src/addons.c:439
msgid "Sort the documents in the order of the document tabs (reversed)"
-msgstr ""
+msgstr "Sorteer de documenten in de volgorde van de tabs (achteruit)"
#. TODO fix the string
#: ../addons/src/addons.c:467
msgid "Show a 'Open URI' menu item in the editor menu"
-msgstr ""
+msgstr "Laat een 'Open URI' menu item in het editor menu zien"
#: ../addons/src/addons.c:473
msgid "Show available Tasks in the Messages Window"
-msgstr ""
+msgstr "Laat beschikbare taken in het berichtenvenster zien"
#: ../addons/src/addons.c:479
msgid "Show tasks of all documents"
-msgstr ""
+msgstr "Laat alle taken van alle documenten zien"
#: ../addons/src/addons.c:483
msgid ""
"Whether to show the tasks of all open documents in the list or only those of "
"the current document."
msgstr ""
+"Laat de taken van alle open documenten in de lijst zien of alleen die van het "
+"huidige document"
#: ../addons/src/addons.c:490
msgid "Specify a semicolon separated list of search tokens."
-msgstr ""
+msgstr "Geef een lijst van zoektermen gescheiden door puntkommas"
+
#: ../addons/src/addons.c:492
msgid "Search tokens:"
-msgstr ""
+msgstr "Zoektermen:"
#: ../addons/src/addons.c:509
msgid "Show status icon in the Notification Area"
-msgstr ""
+msgstr "Laat het status icoon in het Meldingsgebied"
#: ../addons/src/addons.c:515
msgid "Show defined bookmarks (marked lines) in the sidebar"
-msgstr ""
+msgstr "Laat bladwijzers (gemarkeerde regels) in de zijbalk zien"
#: ../addons/src/addons.c:521
msgid "Mark all occurrences of a word when double-clicking it"
-msgstr ""
+msgstr "Markeer alle verschijningen van een gedubbelklikt woord"
#: ../addons/src/addons.c:527
msgid "Strip trailing blank lines"
-msgstr ""
+msgstr "Verwijder lege regels aan het einde van het bestand"
#: ../addons/src/addons.c:533
msgid "XML tagging for selection"
-msgstr ""
+msgstr "XML labelen voor selectie"
#. All plugins must set name, description, version and author.
#: ../codenav/src/codenavigation.c:44
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.