Files
magic/tcltk/tclmagic.h
T
R. Timothy Edwards 338b3899bf I broke the CI again for the "wasm" build by adding a Tk routine
to the code (Tk_RestrictEvents()) without an "#ifndef MAGIC_NO_TK"
around it.  This commit fixes that error.
2026-06-24 09:20:06 -04:00

43 lines
911 B
C

/*
* tclmagic.h --
*
* Header file for including Tcl/Tk stuff. Note that this must be
* included prior to all the other magic include files; otherwise
* the definition for "ClientData" is in conflict.
*/
#ifndef _MAGIC__TCLTK__TCLMAGIC_H
#define _MAGIC__TCLTK__TCLMAGIC_H
#ifdef MAGIC_WRAPPER
#include <tcl.h>
#ifndef MAGIC_NO_TK
#include <tk.h>
#endif
/* Externally-defined global variables */
extern Tcl_Interp *magicinterp;
extern Tcl_Interp *consoleinterp;
/* Forward declaration of procedures */
extern char *Tcl_escape();
extern int TagVerify();
/* C99 compat */
extern int Tcl_printf();
extern void MakeWindowCommand();
extern const char *Tclmagic_InitStubsVersion;
extern void TclmagicRegisterCommands(Tcl_Interp *interp);
#ifndef MAGIC_NO_TK
extern Tk_RestrictAction RestrictInputProc(ClientData, XEvent *);
#endif
#endif /* MAGIC_WRAPPER */
#endif /* _MAGIC__TCLTK__TCLMAGIC_H */