internals.h revision 1.4.2.2 1 1.4.2.2 wrstuden /* $Id: internals.h,v 1.4.2.2 1999/12/27 18:30:03 wrstuden Exp $ */
2 1.4.2.2 wrstuden
3 1.4.2.2 wrstuden /*-
4 1.4.2.2 wrstuden * Copyright (c) 1998-1999 Brett Lymn (blymn (at) baea.com.au, brett_lymn (at) yahoo.com.au)
5 1.4.2.2 wrstuden * All rights reserved.
6 1.4.2.2 wrstuden *
7 1.4.2.2 wrstuden * Redistribution and use in source and binary forms, with or without
8 1.4.2.2 wrstuden * modification, are permitted provided that the following conditions
9 1.4.2.2 wrstuden * are met:
10 1.4.2.2 wrstuden * 1. Redistributions of source code must retain the above copyright
11 1.4.2.2 wrstuden * notice, this list of conditions and the following disclaimer.
12 1.4.2.2 wrstuden * 2. The name of the author may not be used to endorse or promote products
13 1.4.2.2 wrstuden * derived from this software withough specific prior written permission
14 1.4.2.2 wrstuden *
15 1.4.2.2 wrstuden * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 1.4.2.2 wrstuden * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 1.4.2.2 wrstuden * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 1.4.2.2 wrstuden * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 1.4.2.2 wrstuden * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 1.4.2.2 wrstuden * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 1.4.2.2 wrstuden * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 1.4.2.2 wrstuden * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 1.4.2.2 wrstuden * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 1.4.2.2 wrstuden * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 1.4.2.2 wrstuden *
26 1.4.2.2 wrstuden *
27 1.4.2.2 wrstuden */
28 1.4.2.2 wrstuden
29 1.4.2.2 wrstuden #include <menu.h>
30 1.4.2.2 wrstuden
31 1.4.2.2 wrstuden #ifndef INTERNALS_H
32 1.4.2.2 wrstuden #define INTERNALS_H
33 1.4.2.2 wrstuden
34 1.4.2.2 wrstuden #define MATCH_FORWARD 1
35 1.4.2.2 wrstuden #define MATCH_REVERSE 2
36 1.4.2.2 wrstuden #define MATCH_NEXT_FORWARD 3
37 1.4.2.2 wrstuden #define MATCH_NEXT_REVERSE 4
38 1.4.2.2 wrstuden
39 1.4.2.2 wrstuden /* stole this from curses.h */
40 1.4.2.2 wrstuden #define max(a,b) ((a) > (b) ? a : b)
41 1.4.2.2 wrstuden
42 1.4.2.2 wrstuden /* function prototypes */
43 1.4.2.2 wrstuden
44 1.4.2.2 wrstuden void _menui_draw_item __P((MENU *, int));
45 1.4.2.2 wrstuden int _menui_draw_menu __P((MENU *));
46 1.4.2.2 wrstuden int _menui_goto_item __P((MENU *, ITEM *, int));
47 1.4.2.2 wrstuden int _menui_match_pattern __P((MENU *, char, int, int *));
48 1.4.2.2 wrstuden int _menui_match_items __P((MENU *, int, int *));
49 1.4.2.2 wrstuden void _menui_max_item_size __P((MENU *));
50 1.4.2.2 wrstuden int _menui_stitch_items __P((MENU *));
51 1.4.2.2 wrstuden
52 1.4.2.2 wrstuden #endif
53