|
|
gf_cursor_t cursor shape const declaration
|
|
03/24/2009 3:12 AM
post25067
|
gf_cursor_t cursor shape const declaration
gf_cursor_t has the following declaration:
const _uint8 *image0;
const _uint8 *image1;
This "const" declares non-constant pointer to constant data.
when I use this construction:
image0=malloc(size);
compiler will be happy, but when I will try to free this memory, compiler will emit warning about "const qualifier
discarding".
|
|
|
|
|