SF.net SVN: geany:[3316] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Dec 4 16:17:04 UTC 2008


Revision: 3316
          http://geany.svn.sourceforge.net/geany/?rev=3316&view=rev
Author:   eht16
Date:     2008-12-04 16:17:04 +0000 (Thu, 04 Dec 2008)

Log Message:
-----------
Add command line option to suppress status output.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/plugins/geanyfunctions.h
    trunk/plugins/genapi.py

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-12-04 15:56:54 UTC (rev 3315)
+++ trunk/ChangeLog	2008-12-04 16:17:04 UTC (rev 3316)
@@ -5,6 +5,9 @@
  * src/main.c, src/document.c, src/symbols.c:
    Don't mark console messages as translatable.
    Add two comments for translators.
+ * plugins/genapi.py:
+   Beatify the header comments of the generated API file.
+   Add command line option to suppress status output.
 
 
 2008-12-04  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/plugins/geanyfunctions.h
===================================================================
--- trunk/plugins/geanyfunctions.h	2008-12-04 15:56:54 UTC (rev 3315)
+++ trunk/plugins/geanyfunctions.h	2008-12-04 16:17:04 UTC (rev 3316)
@@ -1,6 +1,9 @@
-/* @file geanyfunctions.h @ref geany_functions wrappers. 
-This allows the use of normal API function names in plugins.
-You need to declare the @ref geany_functions symbol yourself. */
+/* This file is generated automatically by genapi.py - do not edit.
+ *
+ * @file geanyfunctions.h @ref geany_functions wrappers.
+ * This allows the use of normal API function names in plugins.
+ * You need to declare the @ref geany_functions symbol yourself.
+ */
 
 #ifndef GEANY_FUNCTIONS_H
 #define GEANY_FUNCTIONS_H

Modified: trunk/plugins/genapi.py
===================================================================
--- trunk/plugins/genapi.py	2008-12-04 15:56:54 UTC (rev 3315)
+++ trunk/plugins/genapi.py	2008-12-04 16:17:04 UTC (rev 3316)
@@ -63,9 +63,10 @@
 		sys.exit("No function names read!")
 
 	f = open(outfile, 'w')
-	print >>f, '/* @file %s @ref geany_functions wrappers. \n' % (outfile) +\
-		'This allows the use of normal API function names in plugins.\n' +\
-		'You need to declare the @ref geany_functions symbol yourself. */\n'
+	print >>f, '/* This file is generated automatically by genapi.py - do not edit.\n *\n' +\
+		' * @file %s @ref geany_functions wrappers.\n' % (outfile) +\
+		' * This allows the use of normal API function names in plugins.\n' +\
+		' * You need to declare the @ref geany_functions symbol yourself.\n */\n'
 	print >>f, '#ifndef GEANY_FUNCTIONS_H'
 	print >>f, '#define GEANY_FUNCTIONS_H\n'
 	for fname in fnames:
@@ -74,4 +75,5 @@
 	print >>f, '\n#endif'
 	f.close
 
-	print 'Generated ' + outfile
+	if not '-q' in sys.argv:
+		print 'Generated ' + outfile


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list