better printing
[lambda.git] / lambda.y
index 040d834..b7e51a8 100644 (file)
--- a/lambda.y
+++ b/lambda.y
@@ -85,7 +85,11 @@ void decls_print()
 
        c = decls;
        while(c != NULL){
-               printf("% -*s = ", maxlen, c->ident);
+               printf("%s ", c->ident);
+               len = strlen(c->ident);
+               for(unsigned int i = 1; i<maxlen-len; i++)
+                       putchar(' ');
+               printf("= ");
                lambda_print(c->value, NULL);
                c = c->next;
        }