[GRASS-SVN] r33679 - grass/branches/develbranch_6

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 5 15:57:50 EDT 2008


Author: neteler
Date: 2008-10-05 15:57:50 -0400 (Sun, 05 Oct 2008)
New Revision: 33679

Modified:
   grass/branches/develbranch_6/SUBMITTING
Log:
glynn: Amend information on use of "return" statements

Modified: grass/branches/develbranch_6/SUBMITTING
===================================================================
--- grass/branches/develbranch_6/SUBMITTING	2008-10-05 19:22:46 UTC (rev 33678)
+++ grass/branches/develbranch_6/SUBMITTING	2008-10-05 19:57:50 UTC (rev 33679)
@@ -96,7 +96,8 @@
 
 
 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 +109,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