1 /*************************************************************************** 2 * Pinfo is a ncurses based lynx style info documentation browser 3 * 4 * Copyright (C) 1999 Przemek Borys <pborys@dione.ids.pl> 5 * Copyright (C) 2005 Bas Zoetekouw <bas@debian.org> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of version 2 of the GNU General Public License as 9 * published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 19 * USA 20 ***************************************************************************/ 21 22 #ifndef __MENU_AND_NOTE_UTILS_H 23 #define __MENU_AND_NOTE_UTILS_H 24 25 #define ERRNODE "ERR@!#$$@#!%%^#@!OR" 26 27 /* checks whether a line contains menu */ 28 int ismenu (const char *line); 29 /* checks whether a line contains note */ 30 int isnote (char *line, char *nline); 31 /* reads menu token from line */ 32 int getmenutoken (char *line); 33 /* reads note token from line */ 34 int getnotetoken (char *line, char *nline); 35 /* gets nextnode token from top line */ 36 void getnextnode (char *type, char *node); 37 /* gets prevnode token from top line */ 38 void getprevnode (char *type, char *node); 39 /* gets the up node token from top line */ 40 void getupnode (char *type, char *node); 41 /* reads the nodename from top line */ 42 void getnodename (char *type, char *node); 43 void freeindirect (); 44 void freetagtable (); 45 #endif 46