[GRASS-SVN] r33678 - grass/trunk

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 5 15:22:46 EDT 2008


Author: glynn
Date: 2008-10-05 15:22:46 -0400 (Sun, 05 Oct 2008)
New Revision: 33678

Modified:
   grass/trunk/SUBMITTING
Log:
Amend information on use of "return" statements


Modified: grass/trunk/SUBMITTING
===================================================================
--- grass/trunk/SUBMITTING	2008-10-05 08:47:59 UTC (rev 33677)
+++ grass/trunk/SUBMITTING	2008-10-05 19:22:46 UTC (rev 33678)
@@ -96,7 +96,9 @@
 
 
 7.  Always specify the return type for ALL functions including those that
-    return type "void", and insert return statements for ALL functions.
+    return type "void", and insert return statements for any function
+    which returns a value.
+
     Also, use ANSI C prototypes to declare your functions. 
     For module return values, see "Exit status" below.
 
@@ -108,15 +110,13 @@
     void G_something(void)
     {
     	/* Snipped out code */
-	
-	return;
     }
     
     int G_something_else(int x, int y)
     {
     	/* Snipped out code */
 	
-	return(0);
+	return 0;
     }
 
 



More information about the grass-commit mailing list