mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
Modify header guards, __FILE_H__ is reserved for system headers
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
b613db2afb
commit
a70a933698
@ -18,8 +18,8 @@
|
||||
* ever read sources, credits must appear in the documentation.
|
||||
* 4. This notice may not be removed or altered.
|
||||
*/
|
||||
#ifndef __EDITLINE_H__
|
||||
#define __EDITLINE_H__
|
||||
#ifndef EDITLINE_H_
|
||||
#define EDITLINE_H_
|
||||
|
||||
/* Handy macros when binding keys. */
|
||||
#define CTL(x) ((x) & 0x1F)
|
||||
@ -109,4 +109,4 @@ int rl_getc(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __EDITLINE_H__ */
|
||||
#endif /* EDITLINE_H_ */
|
||||
|
@ -19,8 +19,8 @@
|
||||
* 4. This notice may not be removed or altered.
|
||||
*/
|
||||
|
||||
#ifndef __PRIVATE_EDITLINE_H__
|
||||
#define __PRIVATE_EDITLINE_H__
|
||||
#ifndef EDITLINE_PRIVATE_H_
|
||||
#define EDITLINE_PRIVATE_H_
|
||||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
@ -95,4 +95,4 @@ extern char *strdup(const char *s);
|
||||
#endif
|
||||
|
||||
#include "../include/editline.h"
|
||||
#endif /* __PRIVATE_EDITLINE_H__ */
|
||||
#endif /* EDITLINE_PRIVATE_H_ */
|
||||
|
@ -19,8 +19,8 @@
|
||||
* 4. This notice may not be removed or altered.
|
||||
*/
|
||||
|
||||
#ifndef __EDITLINE_UNIX_H__
|
||||
#define __EDITLINE_UNIX_H__
|
||||
#ifndef EDITLINE_UNIX_H_
|
||||
#define EDITLINE_UNIX_H_
|
||||
|
||||
#define CRLF "\r\n"
|
||||
#define FORWARD STATIC
|
||||
@ -32,4 +32,4 @@
|
||||
#include <dirent.h>
|
||||
typedef struct dirent DIRENTRY;
|
||||
|
||||
#endif /* __EDITLINE_UNIX_H__ */
|
||||
#endif /* EDITLINE_UNIX_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user