Allow newlines after a header comment in lib.bc
diff --git a/gen/lib.bc b/gen/lib.bc
index 3789379..6725a37 100644
--- a/gen/lib.bc
+++ b/gen/lib.bc
@@ -19,6 +19,7 @@
* The bc math library.
*
*/
+
scale=20
define e(x){
auto b,s,n,r,d,i,p,f,v
diff --git a/gen/strgen.c b/gen/strgen.c
index 20cd9a3..5d44825 100644
--- a/gen/strgen.c
+++ b/gen/strgen.c
@@ -102,7 +102,11 @@
goto error;
}
- while ((c = fgetc(in)) >= 0) {
+ c = fgetc(in);
+
+ if (c == '\n') c = fgetc(in);
+
+ while (c >= 0) {
int val;
@@ -131,6 +135,8 @@
goto error;
}
}
+
+ c = fgetc(in);
}
if (!count) {