Also, I trust that you know what you're doing!   Depending on the 
implementation of C++, a pointer to a function can sometimes be a pointer to a 
function descriptor.  So be careful with what you do with opts_char.  (But you 
say that the resulting code basically works so that is good.)

Also, on USS
ahk> cat cm.C

extern "OS" typedef int mytype(void *);

extern mytype M;
void p()
   {
   char *x;
   x = reinterpret_cast<char *>(M);
   }
ahk> xlC -c cm.C
"./cm.C", line 8.33: CCN5216 (W) An expression of type "extern "OS" int 
(*)(void *)" cannot be converted to type "char *".
ahk> xlC -c -qsuppress=CCN5216 cm.C
ahk>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to