From 4b987f70ac463121f9791eb3493952a77aba495f Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sat, 28 Jul 2007 13:11:42 +0000 Subject: unuseful headers removed and some functions became static --- src/help.c | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) (limited to 'src/help.c') diff --git a/src/help.c b/src/help.c index 255e3a6..b9bff60 100755 --- a/src/help.c +++ b/src/help.c @@ -1,4 +1,4 @@ -/* $calcurse: help.c,v 1.18 2007/07/23 19:29:34 culot Exp $ */ +/* $calcurse: help.c,v 1.19 2007/07/28 13:11:42 culot Exp $ */ /* * Calcurse - text-based organizer @@ -24,28 +24,35 @@ * */ -#include #include -#include #include -#include #include #include #include "i18n.h" #include "help.h" #include "custom.h" -#include "vars.h" #include "utils.h" -#include "apoint.h" #include "notify.h" -#include "wins.h" + +/* Returns the number of lines in an help text. */ +static int +get_help_lines(char *text) +{ + int i; + int nl = 0; + + for (i = 0; text[i]; i++) { + if (text[i] == '\n') nl++; + } + return nl + 1; +} /* * Write the desired help text inside the help pad, and return the number * of lines that were written. - * */ -int + */ +static int write_help_pad(WINDOW *win, char *title, char *text, int pad_width) { int nl_title = 0; @@ -61,18 +68,6 @@ write_help_pad(WINDOW *win, char *title, char *text, int pad_width) return nl_text + nl_title; } -int -get_help_lines(char *text) -{ - int i; - int nl = 0; - - for (i = 0; text[i]; i++) { - if (text[i] == '\n') nl++; - } - return nl + 1; -} - /* Draws the help screen */ void help_screen(void) -- cgit v1.2.3-54-g00ecf