Following the tutorial, I created a new project as specified by:
http://code.google.com/chrome/nativeclient/docs/tutorial.html
Instead if using the default, I used the '-c' switch on python init_project.py
to generate a 'C' project.
While reading the 'C' code to determine how to make the same change as the C++
example, I noticed that
the comment for the first function of the generated C file says:
* Returns a mutable C string contained in the @a var or NULL if @a var is not
* string. This makes a copy of the string in the @a var and adds a NULL
* terminator. Note that VarToUtf8() does not guarantee the NULL terminator on
* the returned string. See the comments for VatToUtf8() in ppapi/c/ppb_var.h
The last line should be 'VarToUtf8' not 'VatToUtf8'.
Original issue reported on code.google.com by noelal...@google.com on 11 Aug 2011 at 6:05
Original issue reported on code.google.com by
noelal...@google.com
on 11 Aug 2011 at 6:05