@@ -372,21 +372,19 @@ int prlevel;
372
372
printstr (ctx ,n ,vec -> c .str .chars ,f ); break ;
373
373
case ELM_INT :
374
374
writestr (f ,(byte * )"#i(" ,3 );
375
- while (i < n && (nullprlen || prlength > 0 )) {
375
+ while (i < n && (nullprlen || prlength -- > 0 )) {
376
376
printint (ctx ,vec -> c .ivec .iv [i ++ ],f ,intval (Spevalof (PRINTBASE )),
377
377
0 ,0 );
378
- if (i < n ) writech (f ,' ' );
379
- prlength -- ; }
380
- if (i < n ) writestr (f ,(byte * )"... " ,4 );
378
+ if (i < n ) writech (f ,' ' ); }
379
+ if (i < n ) writestr (f ,(byte * )"..." ,3 );
381
380
writech (f ,')' );
382
381
break ;
383
382
case ELM_FLOAT :
384
383
writestr (f ,(byte * )"#f(" ,3 );
385
- while (i < n && (nullprlen || prlength > 0 )) {
384
+ while (i < n && (nullprlen || prlength -- > 0 )) {
386
385
printflt (vec -> c .fvec .fv [i ++ ],f );
387
- if (i < n ) writech (f ,' ' );
388
- prlength -- ; }
389
- if (i < n ) writestr (f ,(byte * )"... " ,4 );
386
+ if (i < n ) writech (f ,' ' ); }
387
+ if (i < n ) writestr (f ,(byte * )"..." ,3 );
390
388
writech (f ,')' );
391
389
break ;
392
390
case ELM_FOREIGN :
@@ -401,11 +399,10 @@ int prlevel;
401
399
writech (f ,' ' );
402
400
printint (ctx ,(eusinteger_t )vec -> c .vec .size ,f ,intval (Spevalof (PRINTBASE )),0 ,0 );
403
401
writech (f ,' ' );}
404
- while (i < n && (nullprlen || prlength > 0 )) {
402
+ while (i < n && (nullprlen || prlength -- > 0 )) {
405
403
prin1 (ctx ,vec -> c .vec .v [i ++ ],f ,prlevel );
406
- if (i < n ) writech (f ,' ' );
407
- prlength -- ; }
408
- if (i < n ) writestr (f ,(byte * )"... " ,4 );
404
+ if (i < n ) writech (f ,' ' ); }
405
+ if (i < n ) writestr (f ,(byte * )"..." ,3 );
409
406
writech (f ,')' );}
410
407
return (vec );}
411
408
@@ -495,16 +492,14 @@ register int prlevel;
495
492
prin1 (ctx ,ccar (rest ),f ,prlevel - 1 );
496
493
return ;}
497
494
writech (f ,'(' );
498
- prin1 (ctx ,fobj ,f ,prlevel );
499
- x = rest ;
500
495
while (islist (x ) && !s_marked (x )) {
501
- if (!nullprlen && -- prlength <=0 ) {
502
- writestr (f ,(byte * )" ..." ,4 );
496
+ if (!nullprlen && prlength -- <=0 ) {
497
+ writestr (f ,(byte * )"..." ,3 );
503
498
x = NIL ; break ;}
504
499
else {
505
- writech (f ,' ' );
506
500
prin1 (ctx ,ccar (x ),f ,prlevel );
507
- x = ccdr (x );} }
501
+ x = ccdr (x );
502
+ if (islist (x )) writech (f ,' ' );} }
508
503
if (x != NIL ) { writestr (f ,(byte * )" . " ,3 ); prin1 (ctx ,x ,f ,prlevel );}
509
504
writech (f ,')' ); }
510
505
0 commit comments