Lines Matching refs:printf
120 printf("%s\n",LUA_COPYRIGHT); in doargs()
226 printf("\""); in PrintString()
233 printf("\\\""); in PrintString()
236 printf("\\\\"); in PrintString()
239 printf("\\a"); in PrintString()
242 printf("\\b"); in PrintString()
245 printf("\\f"); in PrintString()
248 printf("\\n"); in PrintString()
251 printf("\\r"); in PrintString()
254 printf("\\t"); in PrintString()
257 printf("\\v"); in PrintString()
260 if (isprint(c)) printf("%c",c); else printf("\\%03d",c); in PrintString()
264 printf("\""); in PrintString()
273 printf("N"); in PrintType()
277 printf("B"); in PrintType()
280 printf("F"); in PrintType()
283 printf("I"); in PrintType()
287 printf("S"); in PrintType()
290 printf("?%d",ttypetag(o)); in PrintType()
293 printf("\t"); in PrintType()
302 printf("nil"); in PrintConstant()
305 printf("false"); in PrintConstant()
308 printf("true"); in PrintConstant()
318 printf("%s",buff); in PrintConstant()
319 if (buff[strspn(buff,"-0123456789")]=='\0') printf(".0"); in PrintConstant()
323 printf(LUA_INTEGER_FMT,ivalue(o)); in PrintConstant()
330 printf("?%d",ttypetag(o)); in PrintConstant()
358 printf("\t%d\t",pc+1); in PrintCode()
359 if (line>0) printf("[%d]\t",line); else printf("[-]\t"); in PrintCode()
360 printf("%-9s\t",opnames[o]); in PrintCode()
364 printf("%d %d",a,b); in PrintCode()
367 printf("%d %d",a,sbx); in PrintCode()
370 printf("%d %d",a,sbx); in PrintCode()
373 printf("%d %d",a,bx); in PrintCode()
374 printf(COMMENT); PrintConstant(f,bx); in PrintCode()
377 printf("%d",a); in PrintCode()
378 printf(COMMENT); PrintConstant(f,EXTRAARG); in PrintCode()
381 printf("%d",a); in PrintCode()
384 printf("%d",a); in PrintCode()
387 printf("%d",a); in PrintCode()
390 printf("%d %d",a,b); in PrintCode()
391 printf(COMMENT "%d out",b+1); in PrintCode()
394 printf("%d %d",a,b); in PrintCode()
395 printf(COMMENT "%s",UPVALNAME(b)); in PrintCode()
398 printf("%d %d",a,b); in PrintCode()
399 printf(COMMENT "%s",UPVALNAME(b)); in PrintCode()
402 printf("%d %d %d",a,b,c); in PrintCode()
403 printf(COMMENT "%s",UPVALNAME(b)); in PrintCode()
404 printf(" "); PrintConstant(f,c); in PrintCode()
407 printf("%d %d %d",a,b,c); in PrintCode()
410 printf("%d %d %d",a,b,c); in PrintCode()
413 printf("%d %d %d",a,b,c); in PrintCode()
414 printf(COMMENT); PrintConstant(f,c); in PrintCode()
417 printf("%d %d %d%s",a,b,c,ISK); in PrintCode()
418 printf(COMMENT "%s",UPVALNAME(a)); in PrintCode()
419 printf(" "); PrintConstant(f,b); in PrintCode()
420 if (isk) { printf(" "); PrintConstant(f,c); } in PrintCode()
423 printf("%d %d %d%s",a,b,c,ISK); in PrintCode()
424 if (isk) { printf(COMMENT); PrintConstant(f,c); } in PrintCode()
427 printf("%d %d %d%s",a,b,c,ISK); in PrintCode()
428 if (isk) { printf(COMMENT); PrintConstant(f,c); } in PrintCode()
431 printf("%d %d %d%s",a,b,c,ISK); in PrintCode()
432 printf(COMMENT); PrintConstant(f,b); in PrintCode()
433 if (isk) { printf(" "); PrintConstant(f,c); } in PrintCode()
436 printf("%d %d %d",a,b,c); in PrintCode()
437 printf(COMMENT "%d",c+EXTRAARGC); in PrintCode()
440 printf("%d %d %d%s",a,b,c,ISK); in PrintCode()
441 if (isk) { printf(COMMENT); PrintConstant(f,c); } in PrintCode()
444 printf("%d %d %d",a,b,sc); in PrintCode()
447 printf("%d %d %d",a,b,c); in PrintCode()
448 printf(COMMENT); PrintConstant(f,c); in PrintCode()
451 printf("%d %d %d",a,b,c); in PrintCode()
452 printf(COMMENT); PrintConstant(f,c); in PrintCode()
455 printf("%d %d %d",a,b,c); in PrintCode()
456 printf(COMMENT); PrintConstant(f,c); in PrintCode()
459 printf("%d %d %d",a,b,c); in PrintCode()
460 printf(COMMENT); PrintConstant(f,c); in PrintCode()
463 printf("%d %d %d",a,b,c); in PrintCode()
464 printf(COMMENT); PrintConstant(f,c); in PrintCode()
467 printf("%d %d %d",a,b,c); in PrintCode()
468 printf(COMMENT); PrintConstant(f,c); in PrintCode()
471 printf("%d %d %d",a,b,c); in PrintCode()
472 printf(COMMENT); PrintConstant(f,c); in PrintCode()
475 printf("%d %d %d",a,b,c); in PrintCode()
476 printf(COMMENT); PrintConstant(f,c); in PrintCode()
479 printf("%d %d %d",a,b,c); in PrintCode()
480 printf(COMMENT); PrintConstant(f,c); in PrintCode()
483 printf("%d %d %d",a,b,c); in PrintCode()
484 printf(COMMENT); PrintConstant(f,c); in PrintCode()
487 printf("%d %d %d",a,b,sc); in PrintCode()
490 printf("%d %d %d",a,b,sc); in PrintCode()
493 printf("%d %d %d",a,b,c); in PrintCode()
496 printf("%d %d %d",a,b,c); in PrintCode()
499 printf("%d %d %d",a,b,c); in PrintCode()
502 printf("%d %d %d",a,b,c); in PrintCode()
505 printf("%d %d %d",a,b,c); in PrintCode()
508 printf("%d %d %d",a,b,c); in PrintCode()
511 printf("%d %d %d",a,b,c); in PrintCode()
514 printf("%d %d %d",a,b,c); in PrintCode()
517 printf("%d %d %d",a,b,c); in PrintCode()
520 printf("%d %d %d",a,b,c); in PrintCode()
523 printf("%d %d %d",a,b,c); in PrintCode()
526 printf("%d %d %d",a,b,c); in PrintCode()
529 printf("%d %d %d",a,b,c); in PrintCode()
530 printf(COMMENT "%s",eventname(c)); in PrintCode()
533 printf("%d %d %d %d",a,sb,c,isk); in PrintCode()
534 printf(COMMENT "%s",eventname(c)); in PrintCode()
535 if (isk) printf(" flip"); in PrintCode()
538 printf("%d %d %d %d",a,b,c,isk); in PrintCode()
539 printf(COMMENT "%s ",eventname(c)); PrintConstant(f,b); in PrintCode()
540 if (isk) printf(" flip"); in PrintCode()
543 printf("%d %d",a,b); in PrintCode()
546 printf("%d %d",a,b); in PrintCode()
549 printf("%d %d",a,b); in PrintCode()
552 printf("%d %d",a,b); in PrintCode()
555 printf("%d %d",a,b); in PrintCode()
558 printf("%d",a); in PrintCode()
561 printf("%d",a); in PrintCode()
564 printf("%d",GETARG_sJ(i)); in PrintCode()
565 printf(COMMENT "to %d",GETARG_sJ(i)+pc+2); in PrintCode()
568 printf("%d %d %d",a,b,isk); in PrintCode()
571 printf("%d %d %d",a,b,isk); in PrintCode()
574 printf("%d %d %d",a,b,isk); in PrintCode()
577 printf("%d %d %d",a,b,isk); in PrintCode()
578 printf(COMMENT); PrintConstant(f,b); in PrintCode()
581 printf("%d %d %d",a,sb,isk); in PrintCode()
584 printf("%d %d %d",a,sb,isk); in PrintCode()
587 printf("%d %d %d",a,sb,isk); in PrintCode()
590 printf("%d %d %d",a,sb,isk); in PrintCode()
593 printf("%d %d %d",a,sb,isk); in PrintCode()
596 printf("%d %d",a,isk); in PrintCode()
599 printf("%d %d %d",a,b,isk); in PrintCode()
602 printf("%d %d %d",a,b,c); in PrintCode()
603 printf(COMMENT); in PrintCode()
604 if (b==0) printf("all in "); else printf("%d in ",b-1); in PrintCode()
605 if (c==0) printf("all out"); else printf("%d out",c-1); in PrintCode()
608 printf("%d %d %d%s",a,b,c,ISK); in PrintCode()
609 printf(COMMENT "%d in",b-1); in PrintCode()
612 printf("%d %d %d%s",a,b,c,ISK); in PrintCode()
613 printf(COMMENT); in PrintCode()
614 if (b==0) printf("all out"); else printf("%d out",b-1); in PrintCode()
619 printf("%d",a); in PrintCode()
622 printf("%d %d",a,bx); in PrintCode()
623 printf(COMMENT "to %d",pc-bx+2); in PrintCode()
626 printf("%d %d",a,bx); in PrintCode()
627 printf(COMMENT "exit to %d",pc+bx+3); in PrintCode()
630 printf("%d %d",a,bx); in PrintCode()
631 printf(COMMENT "to %d",pc+bx+2); in PrintCode()
634 printf("%d %d",a,c); in PrintCode()
637 printf("%d %d",a,bx); in PrintCode()
638 printf(COMMENT "to %d",pc-bx+2); in PrintCode()
641 printf("%d %d %d",a,b,c); in PrintCode()
642 if (isk) printf(COMMENT "%d",c+EXTRAARGC); in PrintCode()
645 printf("%d %d",a,bx); in PrintCode()
646 printf(COMMENT "%p",VOID(f->p[bx])); in PrintCode()
649 printf("%d %d",a,c); in PrintCode()
650 printf(COMMENT); in PrintCode()
651 if (c==0) printf("all out"); else printf("%d out",c-1); in PrintCode()
654 printf("%d",a); in PrintCode()
657 printf("%d",ax); in PrintCode()
661 printf("%d %d %d",a,b,c); in PrintCode()
662 printf(COMMENT "not handled"); in PrintCode()
666 printf("\n"); in PrintCode()
683 printf("\n%s <%s:%d,%d> (%d instruction%s at %p)\n", in PrintHeader()
687 printf("%d%s param%s, %d slot%s, %d upvalue%s, ", in PrintHeader()
690 printf("%d local%s, %d constant%s, %d function%s\n", in PrintHeader()
698 printf("constants (%d) for %p:\n",n,VOID(f)); in PrintDebug()
701 printf("\t%d\t",i); in PrintDebug()
704 printf("\n"); in PrintDebug()
707 printf("locals (%d) for %p:\n",n,VOID(f)); in PrintDebug()
710 printf("\t%d\t%s\t%d\t%d\n", in PrintDebug()
714 printf("upvalues (%d) for %p:\n",n,VOID(f)); in PrintDebug()
717 printf("\t%d\t%s\t%d\t%d\n", in PrintDebug()