Re: Did You Know That FT_Done_Face Can Return An Error?
Lawrence D'Oliveiro <[email protected]> Mon, 7 May 2018 15:29:35 +1200
| Newsgroups | gmane.comp.fonts.fontconfig |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
On Mon, 7 May 2018 12:09:11 +0900, Akira TAGOH wrote: > That said this is the case-by-case. it wouldn't be a reason to ignore > for others. I think there should never be a reason in general for a dispose call to return an error code. The example to follow is free(3) <https://linux.die.net/man/3/free>: if you pass this a valid pointer, it frees it; pass it NULL, and it returns successfully without doing anything. Passing an invalid pointer is a program bug, so there is no point reporting this with a status code; the best thing is to print an error message and abort. _______________________________________________ Fontconfig mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/fontconfig