diff conv/c.c @ 66:0b068058dd67

*** empty log message ***
author kono
date Sat, 22 Feb 2003 01:32:47 +0900
parents 8ad746efa4f8
children 254a0c576114
line wrap: on
line diff
--- a/conv/c.c	Thu Feb 20 08:56:29 2003 +0900
+++ b/conv/c.c	Sat Feb 22 01:32:47 2003 +0900
@@ -2,23 +2,20 @@
 
 #include "mc.h"
 
-static void open(char *);
-static void print(char *);
-static void close();
-
-Converter c_converter = {
-    &open,
-    &print,
-    &close,
-};
+#include "conv/convdef.h"
 
 static FILE *vout;
 
 static void
-open(char *s)
+comment_(char *s)
+{
+}
+
+static void
+open_(char *s)
 {
     char *p=cheapp;
-    while((*cheapp++ = *s++)) {
+    while ((*cheapp++ = *s++)) {
 	if (*s=='.') {
 	    *cheapp++=*s++; *cheapp++='c';
 	    *cheapp++='c'; *cheapp++=0;
@@ -26,17 +23,314 @@
 	}
     }
     vout = fopen(p,"w");
-    if(!vout) error(-1);
+    if (!vout) error(-1);
 }
 
 static void
-print(char *s)
+print_(char *s)
 {
     fprintf(vout,"c: %s\n",s);
 }
 
 static void
-close()
+close_()
 {
     fclose(vout);
 }
+
+void
+case_(int cases,int def){
+
+}
+
+void
+code_(NMTBL *fnptr,int arglist){
+
+}
+
+void
+code_end_(){
+
+}
+
+void
+comma_(){
+
+}
+
+void
+cond_(){
+
+}
+
+void
+cond1_(){
+
+}
+
+void
+cond2_(){
+
+}
+
+void
+cond_end_(){
+
+}
+
+void
+decl_data_begin_(){
+
+}
+
+void
+decl_data_end_(){
+
+}
+
+void
+def_(NMTBL *n){
+
+}
+
+void
+dowhile_(){
+
+}
+
+void
+dowhile_cond_(){
+
+}
+
+void
+dowhile_end_(){
+
+}
+
+int
+error_(n){
+    return 0;
+}
+
+void
+expr16_end_(){
+
+}
+
+void
+extern_(){
+
+}
+
+void
+for_(){
+
+}
+
+void
+for1_(){
+
+}
+
+void
+for2_(){
+
+}
+
+void
+for3_(){
+
+}
+
+void
+for_body_(){
+
+}
+
+void
+for_end_(){
+
+}
+
+void
+funcall_(int type){
+
+}
+
+void
+funcall_args_(){
+
+}
+
+void
+function_(){
+
+}
+
+void
+function_end_(){
+
+}
+
+void
+goto_(){
+
+}
+
+void
+goto_label_(){
+
+}
+
+void
+id_(int sy,NMTBL *nptr){
+
+}
+
+void
+if_(){
+
+}
+
+void
+if_else_(){
+
+}
+
+void
+if_endif_(){
+
+}
+
+void
+if_then_(){
+
+}
+
+void
+jump_(int env){
+
+}
+
+void
+label_(){
+
+}
+
+void
+lbra_(int sym){
+
+}
+
+void
+lc_(){
+
+}
+
+void
+localvar_end_(){
+
+}
+
+void
+lpar_(){
+
+}
+
+void
+op_(int sym){
+
+}
+
+void
+postfix_(int sym){
+
+}
+
+void
+prefix_(int sym){
+
+}
+
+void
+rbra_(int sym){
+
+}
+
+void
+rc_(){
+
+}
+
+void
+register_(){
+
+}
+
+void
+return_(){
+
+}
+
+void
+return_end_(){
+
+}
+
+void
+return_type_(int t){
+
+}
+
+void
+rpar_(){
+
+}
+
+void
+sm_(){
+
+}
+
+void
+static_(){
+
+}
+
+void
+switch_(){
+
+}
+
+void
+switch_body_(){
+
+}
+
+void
+switch_end_(){
+
+}
+
+void
+typedef_(){
+
+}
+
+void
+while_(){
+
+}
+
+void
+while_body_(){
+
+}
+
+void
+while_end_(){
+
+}
+
+/* end */