瀏覽代碼

Added prototype

ceriel 31 年之前
父節點
當前提交
adf94d48e8
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 4 0
      modules/src/idf/idf_pkg.body
  2. 5 0
      modules/src/idf/idf_pkg.spec

+ 4 - 0
modules/src/idf/idf_pkg.body

@@ -17,6 +17,10 @@ static struct idf *IDF_hashtable[IDF_HASHSIZE];
 		(variable, selector, structure tag, etc.).
 	*/
 
+#if __STDC__
+static struct idf *IDF_new(char *, int, int);
+#endif
+
 static struct idf *
 IDF_new(tg, size, cpy)
 	register char *tg;

+ 5 - 0
modules/src/idf/idf_pkg.spec

@@ -37,6 +37,11 @@ struct idf	{
 	is used.
 	If cp < 0, the string is not entered, but only looked for.
 */
+
+#if __STDC__ > 0
+struct idf *str2idf(char *, int);
+#else
 extern struct idf *	str2idf();
+#endif
 
 #define	findidf(tg)	str2idf(tg, -1)