mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 13:28:03 +02:00
[type1] Add comment to warn about read() as macro.
In case we are ever tempted to simplify the function pointer, warn that it may alias with a macro.
This commit is contained in:
parent
ff9ee74b37
commit
c1164a574d
1 changed files with 5 additions and 0 deletions
|
|
@ -1215,6 +1215,11 @@ cairo_type1_font_subset_generate (void *abstract_font,
|
|||
}
|
||||
|
||||
if (font->face->stream->read != NULL) {
|
||||
/* Note that read() may be implemented as a macro, thanks POSIX!, so we
|
||||
* need to wrap the following usage in parentheses in order to
|
||||
* disambiguate it for the pre-processor - using the verbose function
|
||||
* pointer dereference for clarity.
|
||||
*/
|
||||
ret = (* font->face->stream->read) (font->face->stream, 0,
|
||||
(unsigned char *) font->type1_data,
|
||||
font->type1_length);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue