1 /* 2 * Copyright (C) 2000, Matias Atria 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 #ifndef _MDVI_PRIVATE_H 19 20 #include <config.h> 21 #include <glib/gi18n-lib.h> 22 23 #define _MDVI_PRIVATE_H 1 24 #define HAVE_PROTOTYPES 1 25 26 #if STDC_HEADERS 27 # /* kpathsea's headers (wrongly!) redefine strchr() and strrchr() to 28 # non ANSI C functions if HAVE_STRCHR and HAVE_STRRCHR are not defined. 29 # */ 30 # ifndef HAVE_STRCHR 31 # define HAVE_STRCHR 32 # endif 33 # ifndef HAVE_STRRCHR 34 # define HAVE_STRRCHR 35 # endif 36 #endif 37 38 #include <kpathsea/debug.h> 39 #include <kpathsea/tex-file.h> 40 #include <kpathsea/tex-glyph.h> 41 #include <kpathsea/cnf.h> 42 #include <kpathsea/proginit.h> 43 #include <kpathsea/progname.h> 44 #include <kpathsea/tex-make.h> 45 #include <kpathsea/lib.h> 46 47 #define ISSP(p) (*(p) == ' ' || *(p) == '\t') 48 #define SKIPSP(p) while(ISSP(p)) p++ 49 #define SKIPNSP(p) while(*(p) && !ISSP(p)) p++ 50 51 #if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2 52 #define _BREAKPOINT() do { __asm__ __volatile__ ("int $03"); } while(0) 53 #elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2 54 #define _BREAKPOINT() do { __asm__ __volatile__ ("bpt"); } while(0) 55 #else /* !__i386__ && !__alpha__ */ 56 #define _BREAKPOINT() 57 #endif /* __i386__ */ 58 59 #endif /* _MDVI_PRIVATE_H */ 60