diff options
author | das <das@noemail.net> | 2008-04-02 21:32:31 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2008-04-02 21:32:31 (GMT) |
commit | 4985e9dc59b1857f5a272bc9c40715ff9362d45c (patch) | |
tree | a561d1b1c33b5cc093840e3640e2c0eee7854dca /generic/tkDecls.h | |
parent | 26330c54898e671ab711fb0a23fead782fd27822 (diff) | |
download | tk-4985e9dc59b1857f5a272bc9c40715ff9362d45c.zip tk-4985e9dc59b1857f5a272bc9c40715ff9362d45c.tar.gz tk-4985e9dc59b1857f5a272bc9c40715ff9362d45c.tar.bz2 |
* generic/tkDecls.h: make genstubs
* generic/tkIntDecls.h:
* generic/tkIntPlatDecls.h:
* generic/tkIntXlibDecls.h:
* generic/tkPlatDecls.h:
* generic/tkStubInit.c:
FossilOrigin-Name: 52e4bdf25b4e4768432cf833c343ee20bc1e6c08
Diffstat (limited to 'generic/tkDecls.h')
-rw-r--r-- | generic/tkDecls.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/generic/tkDecls.h b/generic/tkDecls.h index b0dca8b..c0e0ac5 100644 --- a/generic/tkDecls.h +++ b/generic/tkDecls.h @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkDecls.h,v 1.31 2008/04/01 16:30:53 dgp Exp $ + * RCS: @(#) $Id: tkDecls.h,v 1.32 2008/04/02 21:32:32 das Exp $ */ #ifndef _TKDECLS @@ -1696,15 +1696,15 @@ EXTERN void Tk_CreateOldPhotoImageFormat ( #endif typedef struct TkStubHooks { - struct TkPlatStubs *tkPlatStubs; - struct TkIntStubs *tkIntStubs; - struct TkIntPlatStubs *tkIntPlatStubs; - struct TkIntXlibStubs *tkIntXlibStubs; + CONST struct TkPlatStubs *tkPlatStubs; + CONST struct TkIntStubs *tkIntStubs; + CONST struct TkIntPlatStubs *tkIntPlatStubs; + CONST struct TkIntXlibStubs *tkIntXlibStubs; } TkStubHooks; typedef struct TkStubs { int magic; - struct TkStubHooks *hooks; + CONST struct TkStubHooks *hooks; void (*tk_MainLoop) (void); /* 0 */ XColor * (*tk_3DBorderColor) (Tk_3DBorder border); /* 1 */ @@ -1983,15 +1983,7 @@ typedef struct TkStubs { } TkStubs; #if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) - -#ifdef __cplusplus -extern "C" { -#endif -extern TkStubs *tkStubsPtr; -#ifdef __cplusplus -} -#endif - +EXTERN CONST TkStubs *tkStubsPtr; #endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */ #if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) |