File: mainloop.e

package info (click to toggle)
tgif 1%3A4.2.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,784 kB
  • sloc: ansic: 186,444; sh: 10,884; perl: 2,956; awk: 487; makefile: 101
file content (102 lines) | stat: -rw-r--r-- 3,842 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
 * Author:      William Chia-Wei Cheng (bill.cheng@acm.org)
 *
 * Copyright (C) 2001-2009, William Chia-Wei Cheng.
 *
 * This file may be distributed under the terms of the Q Public License
 * as defined by Trolltech AS of Norway and appearing in the file
 * LICENSE.QPL included in the packaging of this file.
 *
 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING
 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/mainloop.e,v 1.8 2011/05/16 16:21:58 william Exp $
 */

#ifndef _MAINLOOP_E_
#define _MAINLOOP_E_

extern int	x11R6OrAbove;
extern int	origArgC;
extern char	* * origArgV;
extern int	cmdLineBW;
extern int	cmdLineRV;
extern int	cmdLineCWO;
extern int	cmdLineBtn1Warp;
extern char	* cmdLineForeground;
extern char	* cmdLineBackground;
extern char	* cmdLineBorder;
extern int	cmdLineMerge;
extern int	cmdLineMergeArgc;
extern char	* * cmdLineMergeArgv;
extern int	geometrySpecified;
extern int	exitNormally;
extern char	geometrySpec[];
extern char	* displayName;
extern int	initializingMain;
extern int	cmdLineUseXlib;
extern int	cmdLineVersion;
extern int	cmdLineNoModeWindow;
extern int	cmdLineNoChatWindow;

extern KeyOrBtnEvInfo	lastKeyOrBtnEvInfo;

extern int	numExtraWins;
extern struct WinInfoRec	* extraWinInfo;

#ifdef _INCLUDE_FROM_MAINLOOP_C_
#undef extern
#define extern
#endif /*_INCLUDE_FROM_MAINLOOP_C_*/

extern int	AddExtraWinInfo ARGS_DECL((Window, int Mapped, int Raise,
				void (*ExposeHandler)ARGS_DECL((XEvent*,
						struct WinInfoRec *)),
				int (*EventHandler)ARGS_DECL((XEvent*,
						struct WinInfoRec *)),
				void (*CleanUpRoutine)ARGS_DECL((
						struct WinInfoRec *)),
				void *userdata));
extern void	CleanUpTalkToSelfFiledes ARGS_DECL((void));
extern int	InitTalkToSelfFiledes ARGS_DECL((void));
extern void	DeallocStrings ARGS_DECL((char **Func,
		                char **Str1, char **Menu1,
		                char **Str2, char **Menu2,
		                char **Str3, char **Menu3));
extern void	CleanUp ARGS_DECL((void));
extern void	ExposeEventHandler ARGS_DECL((XEvent *, int Recursive));
extern int	GzipFile ARGS_DECL((char *fname, char *gzipped_fname));
extern char	*GunzipFileIntoTemp ARGS_DECL((char *gzipped_fname));
extern int	JustInit ARGS_DECL((char *pszFile, int *pnNeedToCheckAutoExec));
extern void	HandleDataInMBuff ARGS_DECL((void));
extern int	TryProcessAnXEvent ARGS_DECL((int *pnNeedToCheckAutoExec));
extern int	TryProcessAnAbortXEvent ARGS_DECL((int esc_to_abort,
		                                   AbortCallbackFunc*, void*));
extern void	MainLoop ARGS_DECL((char *Op, char *FileName, char **Func,
		                    char **Str1, char **Menu1,
		                    char **Str2, char **Menu2,
		                    char **Str3, char **Menu3));
extern void	UrlDump ARGS_DECL((char *FileName));
extern void	DosEpsFilter ARGS_DECL((char *FileName));
extern void	Animate ARGS_DECL((char *Type, char *PolyId, char *Speed,
		                   char *Color, char **ReturnStr));
extern void	UpdAttrVal ARGS_DECL((char *ObjId, char *AttrName,
		                      char *AttrColor, char *AttrVal,
		                      char **ReturnStr));

extern void	SetLastKeyEvInfo ARGS_DECL((XKeyEvent*));
extern void	SetLastBtnEvInfo ARGS_DECL((XButtonEvent*));

#ifdef _INCLUDE_FROM_MAINLOOP_C_
#undef extern
#ifndef _NO_RECURSIVE_EXTERN
#define extern extern
#endif /* ~_NO_RECURSIVE_EXTERN */
#endif /*_INCLUDE_FROM_MAINLOOP_C_*/

#endif /*_MAINLOOP_E_*/