Renamed numerous functions more sensibly and moved all single protos from .h to appropriate .c

This commit is contained in:
Rumble 2007-01-15 17:48:18 +00:00
parent 6e584e104e
commit 5e5ad41afc
33 changed files with 1626 additions and 689 deletions

View file

@ -19,19 +19,12 @@
#include "handler.h"
#include "improved-edit.h"
/* List each help entry saved, was used for debugging. */
/*------------------------------------------------------------------------*/
/*
* External data structures.
*/
/* external data structures */
extern struct descriptor_data *descriptor_list;
extern void strip_string(char *buffer);
void hedit_disp_menu(struct descriptor_data *d);
/* 'global' vars */
/* external variables */
struct help_index_element *help_table;
int top_of_h_table = 0; /* ref to top of help table */
int top_of_h_file = 0; /* ref of size of help file */
@ -40,6 +33,12 @@ void get_one_line(FILE *fl, char *buf);
int search_help(struct char_data *ch, char *argument);
ACMD(do_reboot);
/* local functions */
void hedit_save_internally(struct descriptor_data *d);
void hedit_save_to_disk(struct descriptor_data *d);
void hedit_setup_new(struct descriptor_data *d, char *new_key);
void hedit_setup_existing(struct descriptor_data *d, int rnum);
void load_help(FILE *fl, char *name)
{
char key[READ_SIZE + 1], next_key[READ_SIZE + 1], entry[32384];