diff Paper/source/regi-id.c @ 47:e07c7952f237

add sources
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Wed, 23 Nov 2011 02:27:44 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Paper/source/regi-id.c	Wed Nov 23 02:27:44 2011 +0900
@@ -0,0 +1,24 @@
+ case RID_CbC_CODE:
+if (specs->long_p)
+  error_at (loc,(
+                           "both %<long%> and %<void%> in "
+                           "declaration specifiers"));
+ else if (specs->short_p)
+   error_at (loc,
+	     ("both %<short%> and %<void%> in "
+	      "declaration specifiers"));
+ else if (specs->signed_p)
+   error_at (loc,
+	     ("both %<signed%> and %<void%> in "
+	      "declaration specifiers"));
+ else if (specs->unsigned_p)
+   error_at (loc,
+	     ("both %<unsigned%> and %<void%> in "
+	      "declaration specifiers"));
+ else if (specs->complex_p)
+   error_at (loc,
+	     ("both %<complex%> and %<void%> in "
+	      "declaration specifiers"));
+ else
+   specs->typespec_word = cts_CbC_code;
+return specs;