title: In C header tclPlatDecls.h where is TclPlatStubHooks defined?
body: <p>I'm porting tcl/tk C headers to D and i've run into a type that doesn't seem to be defined anywhere. Inside the file <code>tclPlatDecls.h</code> there is the following definition:</p>
  
  <pre><code>typedef struct TclPlatStubs {
      int magic;
      struct TclPlatStubHooks *hooks;
  
  #ifdef __WIN32__ /* WIN */
      TCHAR * (*tcl_WinUtfToTChar) (CONST char *str, int len, Tcl_DString *dsPtr); /* 0 */
      char * (*tcl_WinTCharToUtf) (CONST TCHAR *str, int len, Tcl_DString *dsPtr); /* 1 */
  #endif /* WIN */
  #ifdef MAC_OSX_TCL /* MACOSX */
      int (*tcl_MacOSXOpenBundleResources) (Tcl_Interp *interp, CONST char *bundleName, int hasResourceFile, int maxPathLen, char *libraryPath); /* 0 */
      int (*tcl_MacOSXOpenVersionedBundleResources) (Tcl_Interp *interp, CONST char *bundleName, CONST char *bundleVersion, int hasResourceFile, int maxPathLen, char *libraryPath); /* 1 */
  #endif /* MACOSX */
  } TclPlatStubs;
  </code></pre>
  
  <p>I can't find the definition of <code>TclPlatStubHooks</code>. Any idea where this is? I've grep'ed the entire code base and there is no definition anywhere. Even searching on the net yields no results.</p>