[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] improved tracing support
From: |
Alexei Podtelezhnikov |
Subject: |
Re: [ft-devel] improved tracing support |
Date: |
Fri, 17 Aug 2018 14:45:00 -0400 |
> objs:3: FT_Open_Face: Requesting number of faces and named instances
> io:1: FT_Stream_Open: opened `arial.ttf' (273020 bytes) successfully
> ttobjs:2: TTF driver
> sfobjs:2: SFNT driver
> sfobjs:3: sfnt_open_font: synthesize TTC
> sfobjs:2: sfnt_init_face: 0x20aa9d0 (index -1)
> ttload:2: tt_face_load_font_dir: 0x20aa9d0
> ttload:2: -- Number of tables: 23
> ttload:2: -- Format version: 0x00010000
It is ok, but a little bit redundant.
> To implement that, I would use variadic macro support introduced to
> the C99 preprocessor – in case this is not available, the tracing will
> look as of today.
__func__ is also useful in C99. Imagine how many function names we
could hide. That would require C99 for tracing.
I see a lot of 0x%X, which can be shortened to %#X, crazy of me to even mention.