Fix __glXDispatchInfo::dispatch_functions and

__glXDispatchInfo::size_table.  dispatch_functions had the const in
the wrong place, and size_table was declared as an array of two
pointers to int_fast16_t instead of a pointer to an array of 2
int_fast16_t.  cdecl to the rescue!
This commit is contained in:
Ian Romanick 2006-08-23 16:00:48 -07:00
parent 39a620d178
commit 7ae82b5fc8

View File

@ -53,7 +53,7 @@ struct __glXDispatchInfo {
* is the non-byte-swapped version, and the second element is the * is the non-byte-swapped version, and the second element is the
* byte-swapped version. * byte-swapped version.
*/ */
void * const (*dispatch_functions)[2]; const void *(*dispatch_functions)[2];
/** /**
* Pointer to size validation data. This table is indexed with the same * Pointer to size validation data. This table is indexed with the same
@ -70,7 +70,7 @@ struct __glXDispatchInfo {
* If size checking is not to be performed on this type of protocol * If size checking is not to be performed on this type of protocol
* data, this pointer will be \c NULL. * data, this pointer will be \c NULL.
*/ */
const int_fast16_t * size_table[2]; const int_fast16_t (*size_table)[2];
/** /**
* Array of functions used to calculate the variable-size portion of * Array of functions used to calculate the variable-size portion of
@ -81,7 +81,7 @@ struct __glXDispatchInfo {
* If size checking is not to be performed on this type of protocol * If size checking is not to be performed on this type of protocol
* data, this pointer will be \c NULL. * data, this pointer will be \c NULL.
*/ */
const gl_proto_size_func * size_func_table; const gl_proto_size_func *size_func_table;
}; };
/** /**