mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-26 00:54:08 +01:00
KAIZEN formatting and linting, header files
This commit is contained in:
parent
e59420363a
commit
e6085172d5
45 changed files with 5153 additions and 5238 deletions
|
|
@ -1,21 +1,21 @@
|
|||
/**
|
||||
* @file improved-edit.h
|
||||
* The basic and improved editor.
|
||||
*
|
||||
*
|
||||
* Part of the core tbaMUD source code distribution, which is a derivative
|
||||
* of, and continuation of, CircleMUD.
|
||||
*
|
||||
* This set of code was not originally part of the circlemud distribution.
|
||||
*
|
||||
* This set of code was not originally part of the circlemud distribution.
|
||||
*/
|
||||
#ifndef _IMPROVED_EDIT_H_
|
||||
#define _IMPROVED_EDIT_H_
|
||||
|
||||
/* This is here to allow different code for the basic and improved editor. If
|
||||
* you do not wish to use the improved editor, put #if 0 below, otherwise you
|
||||
/* This is here to allow different code for the basic and improved editor. If
|
||||
* you do not wish to use the improved editor, put #if 0 below, otherwise you
|
||||
* should leave the setting at #if 1. */
|
||||
#define CONFIG_IMPROVED_EDITOR 1
|
||||
#define CONFIG_IMPROVED_EDITOR 1
|
||||
|
||||
#define using_improved_editor CONFIG_IMPROVED_EDITOR
|
||||
#define using_improved_editor CONFIG_IMPROVED_EDITOR
|
||||
|
||||
void parse_edit_action(int command, char *string, struct descriptor_data *d);
|
||||
int improved_editor_execute(struct descriptor_data *d, char *string);
|
||||
|
|
@ -29,18 +29,18 @@ void send_editor_help(struct descriptor_data *d);
|
|||
#define PARSE_HELP 2
|
||||
#define PARSE_DELETE 3
|
||||
#define PARSE_INSERT 4
|
||||
#define PARSE_LIST_NORM 5
|
||||
#define PARSE_LIST_NORM 5
|
||||
#define PARSE_LIST_NUM 6
|
||||
#define PARSE_EDIT 7
|
||||
#define PARSE_TOGGLE 8
|
||||
|
||||
/* Defines for the action variable. */
|
||||
#define STRINGADD_OK 0 /* Just keep adding text. */
|
||||
#define STRINGADD_SAVE 1 /* Save current text. */
|
||||
#define STRINGADD_ABORT 2 /* Abort edit, restore old text. */
|
||||
#define STRINGADD_ACTION 4 /* Editor action, don't append \r\n. */
|
||||
#define STRINGADD_OK 0 /* Just keep adding text. */
|
||||
#define STRINGADD_SAVE 1 /* Save current text. */
|
||||
#define STRINGADD_ABORT 2 /* Abort edit, restore old text. */
|
||||
#define STRINGADD_ACTION 4 /* Editor action, don't append \r\n. */
|
||||
|
||||
/* Settings for formatter. */
|
||||
#define FORMAT_INDENT (1 << 0)
|
||||
#define FORMAT_INDENT (1 << 0)
|
||||
|
||||
#endif /* _IMPROVED_EDIT_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue