Hi,

The prototype for DirectFBInit is:

DFBResult DirectFBInit(int *argc, char *(*argv[]));

It modifies argc/argv to remove the --dfb: arguments.

However, I believe that although the argument list is modified, the 
actual arguments are not.  Let me be more explicit:  there is a pointer 
argv, which points to an array of pointers X, which points to a series 
of arrays of characters Y.  X is changed but Y is not.  If that's 
correct then the prototype should indicate that the chars are const:

DFBResult DirectFBInit(int *argc, const char *(*argv[]));

Writing const there only says that the chars are const, not that the 
array of pointers to them is const.  I think.

Have I got that right?


Phil.




_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to