Re: [9fans] subtracting pointers on amd64 6c

2016-01-06 Thread cinap_lenrek
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 'fmt

Re: [9fans] subtracting pointers on amd64 6c

2016-01-06 Thread erik quanstrom
On Tue Jan 5 23:02:59 PST 2016, cinap_len...@felloff.net wrote: > it appears that %t and %z are already used by a bunch of programs, > including the kernel: > > term% grep -n 'fmtinstall\(''[zt]''' */*.c */*/*.c */*/*/*.c > cmd/trace.c:137: fmtinstall('t', timeconv); > 9/port/edf.c:122: