1/* 2 * Author: William Chia-Wei Cheng (bill.cheng@acm.org) 3 * 4 * Copyright (C) 2001-2009, William Chia-Wei Cheng. 5 * 6 * This file may be distributed under the terms of the Q Public License 7 * as defined by Trolltech AS of Norway and appearing in the file 8 * LICENSE.QPL included in the packaging of this file. 9 * 10 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 11 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 12 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 13 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 14 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 15 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 16 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * 18 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/shortcut.e,v 1.7 2011/05/16 16:21:59 william Exp $ 19 */ 20 21#ifndef _SHORTCUT_E_ 22#define _SHORTCUT_E_ 23 24#ifdef _INCLUDE_FROM_SHORTCUT_C_ 25#undef extern 26#define extern 27#endif /*_INCLUDE_FROM_SHORTCUT_C_*/ 28 29extern void InitShortCut ARGS_DECL((void)); 30extern void CleanUpShortCut ARGS_DECL((void)); 31extern int FetchShortCut ARGS_DECL((int c, char *code, unsigned int *state, 32 char **name, char *args, int args_sz)); 33extern int FetchFuncKeyShortCut ARGS_DECL((int c, char *code, 34 unsigned int *state, char **name, char *args, 35 int args_sz)); 36extern int FetchCmdById ARGS_DECL((int nCmdId, char *code, 37 unsigned int *state, char **name, char *args)); 38extern int ValidShortCut ARGS_DECL((char *name, int num_args, char *code, 39 unsigned int *state)); 40 41#ifdef _INCLUDE_FROM_SHORTCUT_C_ 42#undef extern 43#ifndef _NO_RECURSIVE_EXTERN 44#define extern extern 45#endif /* ~_NO_RECURSIVE_EXTERN */ 46#endif /*_INCLUDE_FROM_SHORTCUT_C_*/ 47 48#endif /*_SHORTCUT_E_*/ 49