[Bug 767268] Add missing filename type annotations
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Jun 6 08:59:15 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=767268
--- Comment #2 from Christoph Reiter (lazka) <reiter.christoph at gmail.com> ---
(In reply to Sebastian Dröge (slomo) from comment #1)
> Review of attachment 329156 [details] [review]:
>
> What is the exact difference between a string and a filename, other than the
> semantic difference? How is it handled differently, is the string encoding
> possibly different, ...?
A text string is valid utf-8 while a filename is a null terminated array of
bytes on Unix and valid utf-8 on Windows.
> ::: gst/gst.c
> @@ +318,3 @@
> * @argc: (inout) (allow-none): pointer to application's argc
> + * @argv: (inout) (array length=argc) (element-type filename) (allow-none):
> + * pointer to application's argv
>
> Why is argv an array of "filenames"? It's arbitrary command line arguments
It just matches the semantics stated above, null terminated bytes on Unix,
valid utf-8 on Windows.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list