From 75b7ce0bc9a0e2e70bffe60d6dcafdbe01dcad69 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 16 Mar 2012 15:56:37 +0100 Subject: [PATCH] Mark zathura->global.page_padding as deprecated. --- Makefile | 2 +- macros.h | 11 +++++++++++ zathura.h | 6 ++---- 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 macros.h diff --git a/Makefile b/Makefile index 5814feb..155e3ab 100644 --- a/Makefile +++ b/Makefile @@ -147,7 +147,7 @@ endif install-headers: ${PROJECT}.pc $(ECHO) installing header files $(QUIET)mkdir -p ${DESTDIR}${INCLUDEDIR}/${PROJECT} - $(QUIET)install -m 644 zathura.h document.h version.h ${DESTDIR}${INCLUDEDIR}/${PROJECT} + $(QUIET)install -m 644 zathura.h document.h version.h macros.h ${DESTDIR}${INCLUDEDIR}/${PROJECT} $(ECHO) installing pkgconfig file $(QUIET)mkdir -p ${DESTDIR}${LIBDIR}/pkgconfig $(QUIET)install -m 644 ${PROJECT}.pc ${DESTDIR}${LIBDIR}/pkgconfig diff --git a/macros.h b/macros.h new file mode 100644 index 0000000..86ced61 --- /dev/null +++ b/macros.h @@ -0,0 +1,11 @@ +/* See LICENSE file for license and copyright information */ + +#ifndef ZATHURA_MACROS_H +#define ZATHURA_MACROS_H + +#include + +#define UNUSED(x) GIRARA_UNUSED(x) +#define DEPRECATED(x) GIRARA_DEPRECATED(x) + +#endif diff --git a/zathura.h b/zathura.h index 34d7be9..f657f79 100644 --- a/zathura.h +++ b/zathura.h @@ -5,10 +5,8 @@ #include #include -#include #include - -#define UNUSED(x) GIRARA_UNUSED(x) +#include "macros.h" enum { NEXT, PREVIOUS, LEFT, RIGHT, UP, DOWN, BOTTOM, TOP, HIDE, HIGHLIGHT, DELETE_LAST_WORD, DELETE_LAST_CHAR, DEFAULT, ERROR, WARNING, NEXT_GROUP, @@ -84,7 +82,7 @@ typedef struct zathura_s struct { - unsigned int page_padding; /**< Padding between the pages */ + unsigned int DEPRECATED(page_padding); /**< Padding between the pages */ bool recolor; /**< Recoloring mode switch */ bool update_page_number; /**< Update current page number */ } global;