what if we introduce signed intptr type and use that instead
of introducing ptrdiff? ape already has a signed intptr_t
type.

then use 'z' as a modifier to mean "intptr size" so that
%zd would print signed intptr and %zud is for uintptr?

the %t and %T space seems rather crowded...

term% grep 'fmtinstall\(''[zZtT]' */*.c */*/*.c */*/*/*.c */*/*/*/*.c
cmd/timepic.c:  fmtinstall('T', Tfmt);
cmd/trace.c:    fmtinstall('t', timeconv);
libhtml/lex.c:  fmtinstall('T', Tconv);
libmach/kdb.c:          fmtinstall('T', Tfmt);
libmach/udb.c:          fmtinstall('T', Tfmt);
libventi/log.c:         fmtinstall('T', timefmt);
9/mtx/pci.c:    fmtinstall('T', tbdffmt);
9/pc/pci.c:     fmtinstall('T', tbdffmt);
9/port/edf.c:           fmtinstall('t', timeconv);
9/teg2/pci.c:   fmtinstall('T', tbdffmt);
cmd/cc/lex.c:   fmtinstall('T', Tconv);
cmd/cwfs/sub.c: fmtinstall('Z', Zfmt);  /* print devices */
cmd/cwfs/sub.c: fmtinstall('T', Tfmt);  /* print times */
cmd/db/output.c:        fmtinstall('t', tconv);
cmd/disk/rd9660.c:      fmtinstall('T', asciiTfmt);
cmd/disk/rd9660.c:      fmtinstall('T', runeTfmt);
cmd/hjfs/buf.c: fmtinstall('T', Tfmt);
cmd/vac/unvac.c:        fmtinstall('t', mtimefmt);
cmd/upas/fs/imap4.c:    fmtinstall('Z', doublequote);
cmd/upas/marshal/marshal.c:     fmtinstall('Z', doublequote);
cmd/venti/srv/fixarenas.c:      fmtinstall('z', zfmt);
cmd/venti/srv/fixarenas.c:      fmtinstall('t', tfmt);
cmd/venti/srv/utils.c:  fmtinstall('T', vttimefmt);

--
cinap

Reply via email to