File vbcc-noquestions.patch of Package vbcc

--- vbcc/datatypes/dtgen.c
+++ vbcc/datatypes/dtgen.c
@@ -131,10 +131,13 @@
 {
   char in[8];
   do{
-    printf("Type y or n [%s]: ",def);
+    printf("Type y or n [%s]: \n",def);
+#if 0
     fflush(stdout);
     fgets(in,127,stdin);
-    if(*in=='\n') strcpy(in,def);
+    if(*in=='\n')
+#endif
+     strcpy(in,def);
   }while(*in!='y'&&*in!='n');
   return *in=='y';
 }
@@ -142,11 +145,14 @@
 char *asktype(char *def)
 {
   char *in=mymalloc(128);
-  printf("Enter that type[%s]: ",def);
+  printf("Enter that type[%s]: \n",def);
+#if 0
   fflush(stdout);
   fgets(in,127,stdin);
   if(in[strlen(in)-1]=='\n') in[strlen(in)-1]=0;
-  if(!*in) strcpy(in,def);
+  if(!*in)
+#endif
+   strcpy(in,def);
   return in;
 }
 
openSUSE Build Service is sponsored by