summaryrefslogtreecommitdiff
path: root/mimeview/mimeview.h
diff options
context:
space:
mode:
Diffstat (limited to 'mimeview/mimeview.h')
-rw-r--r--mimeview/mimeview.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/mimeview/mimeview.h b/mimeview/mimeview.h
index 39fb7f44f..0f0d61fbb 100644
--- a/mimeview/mimeview.h
+++ b/mimeview/mimeview.h
@@ -22,6 +22,8 @@
# include <strings.h>
#endif
#include <mailutils/mailutils.h>
+#include <mailutils/locus.h>
+#include <mailutils/yyloc.h>
#include <fnmatch.h>
struct mimetypes_string
@@ -48,29 +50,3 @@ const char *get_file_type (void);
extern char const *mimeview_file;
extern mu_stream_t mimeview_stream;
-struct mu_locus_range
-{
- struct mu_locus beg;
- struct mu_locus end;
-};
-
-#define YYLTYPE struct mu_locus_range
-#define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- { \
- if (N) \
- { \
- (Current).beg = YYRHSLOC(Rhs, 1).beg; \
- (Current).end = YYRHSLOC(Rhs, N).end; \
- } \
- else \
- { \
- (Current).beg = YYRHSLOC(Rhs, 0).end; \
- (Current).end = (Current).beg; \
- } \
- } while (0)
-#define YY_LOCATION_PRINT(File, Loc) \
- fprintf(File, "%s:%u.%u-%u.%u", \
- (Loc).beg.mu_file, \
- (Loc).beg.mu_line, (Loc).beg.mu_col, \
- (Loc).end.mu_line, (Loc).end.mu_col)

Return to:

Send suggestions and report system problems to the System administrator.