skia2/experimental/sorttoy
John Stiles 87aa7a9095 Add SK_PRINTF_LIKE to existing variadic print functions.
This shook out a handful of formatting issues:
[SkVMVisualizer]
- We were passing plain text like "width:35%;" through printf.
- One particular opcode type was printing a string as a number.
[Skottie, SortToy]
- Used wrong integer type instead of %zu for size_t

This CL does not update print functions which take printf arguments via
variadic template, as __attribute__((format)) does not support this
style. These could be converted to va_list style, but that's not done in
this CL.

(For some reason, GCC requires the attribute to be set on a prototype
for freestanding functions, so a few of these now have a prototype
immediately followed by a declaration.)

Change-Id: I63a6c2486c785cc38563028fdf8df0662ec04935
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/504698
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-02-07 14:55:39 +00:00
..
Cmds.cpp Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
Cmds.h Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
Fake.cpp Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
Fake.h Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
SortKey.h Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00
sorttoy.cpp Add SK_PRINTF_LIKE to existing variadic print functions. 2022-02-07 14:55:39 +00:00
sorttypes.h Rename experimental app to 'sorttoy' 2021-07-01 19:11:26 +00:00