浏览代码

Amend information on use of "return" statements

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33678 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 年之前
父节点
当前提交
90871eb07e
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      SUBMITTING

+ 4 - 4
SUBMITTING

@@ -96,7 +96,9 @@ following rules:
 
 
 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 @@ following rules:
     void G_something(void)
     {
     	/* Snipped out code */
-	
-	return;
     }
     
     int G_something_else(int x, int y)
     {
     	/* Snipped out code */
 	
-	return(0);
+	return 0;
     }