ソースを参照

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;
     }