From d4d84dcd3d0c7be5ddeb092bf808882179fb335e Mon Sep 17 00:00:00 2001 From: "Steffen \"Daode\" Nurpmeso" Date: Wed, 1 Jan 2014 14:24:44 +0100 Subject: [PATCH] Move get_pager() cmd1.c -> auxlily.c --- auxlily.c | 11 +++++++++++ cmd1.c | 11 ----------- extern.h | 4 +++- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/auxlily.c b/auxlily.c index 96e44526..1d603382 100644 --- a/auxlily.c +++ b/auxlily.c @@ -243,6 +243,17 @@ colalign(const char *cp, int col, int fill, int *cols_decr_used_or_null) return nb; } +FL char const * +get_pager(void) +{ + char const *cp; + + cp = ok_vlook(PAGER); + if (cp == NULL || *cp == '\0') + cp = XPAGER; + return cp; +} + FL size_t paging_seems_sensible(void) { diff --git a/cmd1.c b/cmd1.c index 4aa51cf8..e2cb3876 100644 --- a/cmd1.c +++ b/cmd1.c @@ -593,17 +593,6 @@ ccmdnotsupp(void *v) /* TODO -> lex.c */ return (1); } -FL char const * -get_pager(void) -{ - char const *cp; - - cp = ok_vlook(PAGER); - if (cp == NULL || *cp == '\0') - cp = XPAGER; - return cp; -} - FL int headers(void *v) { diff --git a/extern.h b/extern.h index 8a796da7..2b9570cb 100644 --- a/extern.h +++ b/extern.h @@ -145,6 +145,9 @@ FL int argcount(char **argv); FL char * colalign(const char *cp, int col, int fill, int *cols_decr_used_or_null); +/* Get our PAGER */ +FL char const *get_pager(void); + /* Check wether using a pager is possible/makes sense and is desired by user * (*crt* set); return number of screen lines (or *crt*) if so, 0 otherwise */ FL size_t paging_seems_sensible(void); @@ -272,7 +275,6 @@ FL enum okay cache_dequeue(struct mailbox *mp); /* cmd1.c */ FL int ccmdnotsupp(void *v); -FL char const *get_pager(void); FL int headers(void *v); FL int scroll(void *v); FL int Scroll(void *v); -- 2.11.4.GIT