#include "spice.h"
#include "hlpdefs.h"
Go to the source code of this file.
static FILE* db_open |
( |
char * |
word, |
|
|
struct sHlpEnt ** |
pb |
|
) |
| |
|
static |
Definition at line 259 of file readhelp.c.
271 fp = fopen(buf,
"rb");
void cp_pathfix(char *buf)
static char buf[MAXPROMPT]
static struct sHlpEnt * HelpBase
static struct sHlpEnt * find_entry()
static struct sHlpEnt* find_entry |
( |
| ) |
|
|
static |
static struct sHlpEnt* find_entry |
( |
char * |
word | ) |
|
|
static |
Definition at line 363 of file readhelp.c.
static struct sHlpEnt * HelpBase
void hlp_free |
( |
topic * |
top | ) |
|
void hlp_main |
( |
char * |
path, |
|
|
wordlist * |
wl |
|
) |
| |
Definition at line 43 of file readhelp.c.
55 fprintf(stderr,
"Error: no top level topic\n");
63 fprintf(stderr,
"Error: No such topic: %s\n",
66 fprintf(stderr,
"Error: no top level topic\n");
topic * hlp_read(char *word)
struct wordlist * wl_next
topic* hlp_read |
( |
char * |
word | ) |
|
Definition at line 77 of file readhelp.c.
82 int i, seealso, subtopics;
90 if (!(fp =
db_open(word,&bb))) {
91 fprintf(stderr,
"Error: no title for topic %s.\n", word);
122 if (seealso || subtopics) {
124 if (*s ==
'#' || *s ==
'*')
156 if ((s = strchr(buf,
'\n')) !=
NULL)
174 if ((i = strlen(buf)) > top->
maxcols)
static char buf[MAXPROMPT]
struct wordlist * wl_prev
static struct sHlpEnt * find_entry()
struct wordlist * wl_next
static char* my_fgets |
( |
| ) |
|
|
static |
static char* my_fgets |
( |
char * |
buf, |
|
|
int |
size, |
|
|
FILE * |
fp |
|
) |
| |
|
static |
Definition at line 381 of file readhelp.c.
391 for (s =
buf, i = size; i; s++, i--) {
static char buf[MAXPROMPT]
static void read_db |
( |
FILE * |
fp | ) |
|
|
static |
Definition at line 296 of file readhelp.c.
341 if (keyword || title) {
static char buf[MAXPROMPT]
static struct sHlpEnt * HelpBase
Definition at line 217 of file readhelp.c.
221 return (strcmp((*tlp1)->description, (*tlp2)->description));
static void sortlist |
( |
toplink ** |
tlp | ) |
|
|
static |
Definition at line 187 of file readhelp.c.
194 for (num = 0,tl = *tlp; tl; tl = tl->
next) num++;
199 for (tl = *tlp, i = 0; tl; tl = tl->
next, i++)
203 (
int(*)(
const void*,
const void*))
sortcmp);
208 for (i = 0; i < num - 1; i++)
209 vec[i]->
next = vec[i + 1];