]> www.fi.muni.cz Git - evince.git/blob - backend/dvi/mdvi-lib/private.h
c547cd2d639e3955bea015918962021d5f4a7da7
[evince.git] / backend / dvi / mdvi-lib / private.h
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18 #ifndef _MDVI_PRIVATE_H
19 #define _MDVI_PRIVATE_H 1
20
21 #define HAVE_PROTOTYPES 1
22 #include <kpathsea/debug.h>
23 #include <kpathsea/tex-file.h>
24 #include <kpathsea/tex-glyph.h>
25 #include <kpathsea/cnf.h>
26 #include <kpathsea/proginit.h>
27 #include <kpathsea/progname.h>
28 #include <kpathsea/tex-make.h>
29
30 #define ISSP(p)         (*(p) == ' ' || *(p) == '\t')
31 #define SKIPSP(p)       while(ISSP(p)) p++
32 #define SKIPNSP(p)      while(*(p) && !ISSP(p)) p++
33
34 #ifdef ENABLE_NLS
35 #include <libintl.h>
36 #define _(x)    gettext(x)
37 #define _G(x)   x
38 #else
39 #define _(x)    x
40 #define _G(x)   x
41 #endif /* ENABLE_NLS */
42
43 #if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2
44 #define _BREAKPOINT()           do { __asm__ __volatile__ ("int $03"); } while(0)
45 #elif defined (__alpha__) && defined (__GNUC__) && __GNUC__ >= 2
46 #define _BREAKPOINT()           do { __asm__ __volatile__ ("bpt"); } while(0)
47 #else   /* !__i386__ && !__alpha__ */
48 #define _BREAKPOINT()
49 #endif  /* __i386__ */
50
51 #endif /* _MDVI_PRIVATE_H */