Modify header guards, __FILE_H__ is reserved for system headers

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2017-11-29 17:17:50 +01:00
parent b613db2afb
commit a70a933698
3 changed files with 9 additions and 9 deletions

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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_ */