*.h: do not use the C reserved identifiers for the include guards

This commit is contained in:
Koichi Murase 2022-03-04 23:14:11 +09:00
parent 50ea966dff
commit a6ca0111de
46 changed files with 92 additions and 92 deletions

View File

@ -1,5 +1,5 @@
#ifndef _ABOUT_H__ #ifndef TERMINOLOGY_ABOUT_H_
#define _ABOUT_H__ 1 #define TERMINOLOGY_ABOUT_H_ 1
void about_show(Evas_Object *win, Evas_Object *base, Evas_Object *term, void about_show(Evas_Object *win, Evas_Object *base, Evas_Object *term,
void (*donecb) (void *data), void *donedata); void (*donecb) (void *data), void *donedata);

View File

@ -1,5 +1,5 @@
#ifndef _BACKLOG_H__ #ifndef TERMINOLOGY_BACKLOG_H_
#define _BACKLOG_H__ 1 #define TERMINOLOGY_BACKLOG_H_ 1
void termpty_save_register(Termpty *ty); void termpty_save_register(Termpty *ty);
void termpty_save_unregister(Termpty *ty); void termpty_save_unregister(Termpty *ty);

View File

@ -1,5 +1,5 @@
#ifndef _COLORS_H__ #ifndef TERMINOLOGY_COLORS_H_
#define _COLORS_H__ 1 #define TERMINOLOGY_COLORS_H_ 1
#include <Evas.h> #include <Evas.h>
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _CONFIG_H__ #ifndef TERMINOLOGY_CONFIG_H_
#define _CONFIG_H__ 1 #define TERMINOLOGY_CONFIG_H_ 1
#include <Evas.h> #include <Evas.h>

View File

@ -1,5 +1,5 @@
#ifndef _CONTROLS_H__ #ifndef TERMINOLOGY_CONTROLS_H_
#define _CONTROLS_H__ 1 #define TERMINOLOGY_CONTROLS_H_ 1
void controls_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg, void controls_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg,
Evas_Object *term, Evas_Object *term,

View File

@ -1,5 +1,5 @@
#ifndef _EXTNS_H__ #ifndef TERMINOLOGY_EXTNS_H_
#define _EXTNS_H__ 1 #define TERMINOLOGY_EXTNS_H_ 1
extern const char *extn_img[]; extern const char *extn_img[];
extern const char *extn_scale[]; extern const char *extn_scale[];

View File

@ -1,5 +1,5 @@
#ifndef _GRAVATAR_H__ #ifndef TERMINOLOGY_GRAVATAR_H_
#define _GRAVATAR_H__ 1 #define TERMINOLOGY_GRAVATAR_H_ 1
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _IPC_H__ #ifndef TERMINOLOGY_IPC_H_
#define _IPC_H__ 1 #define TERMINOLOGY_IPC_H_ 1
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _KEYIN_H__ #ifndef TERMINOLOGY_KEYIN_H_
#define _KEYIN_H__ 1 #define TERMINOLOGY_KEYIN_H_ 1
typedef struct _Keys_Handler Keys_Handler; typedef struct _Keys_Handler Keys_Handler;

View File

@ -1,5 +1,5 @@
#ifndef _MAIN_H__ #ifndef TERMINOLOGY_MAIN_H_
#define _MAIN_H__ 1 #define TERMINOLOGY_MAIN_H_ 1
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _MD5_H_ #ifndef TERMINOLOGY_MD5_H_
#define _MD5_H_ #define TERMINOLOGY_MD5_H_
#include <stdint.h> #include <stdint.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -1,5 +1,5 @@
#ifndef _MEDIA_H__ #ifndef TERMINOLOGY_MEDIA_H_
#define _MEDIA_H__ 1 #define TERMINOLOGY_MEDIA_H_ 1
#define MEDIA_SIZE_MASK 0x000f #define MEDIA_SIZE_MASK 0x000f
#define MEDIA_OPTIONS_MASK 0x00f0 #define MEDIA_OPTIONS_MASK 0x00f0

View File

@ -1,5 +1,5 @@
#ifndef _MINIVIEW_H__ #ifndef TERMINOLOGY_MINIVIEW_H_
#define _MINIVIEW_H__ 1 #define TERMINOLOGY_MINIVIEW_H_ 1
#include "termpty.h" #include "termpty.h"

View File

@ -1,5 +1,5 @@
#ifndef _TERMINOLOGY_OPTIONS_H__ #ifndef TERMINOLOGY_TERMINOLOGY_OPTIONS_H_
#define _TERMINOLOGY_OPTIONS_H__ 1 #define TERMINOLOGY_TERMINOLOGY_OPTIONS_H_ 1
void options_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg, void options_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg,
Evas_Object *term, Evas_Object *term,

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_BACKGROUND_H__ #ifndef TERMINOLOGY_OPTIONS_BACKGROUND_H_
#define _OPTIONS_BACKGROUND_H__ 1 #define TERMINOLOGY_OPTIONS_BACKGROUND_H_ 1
void options_background(Evas_Object *opbox, Evas_Object *term); void options_background(Evas_Object *opbox, Evas_Object *term);
void options_background_clear(void); void options_background_clear(void);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_BEHAVIOR_H__ #ifndef TERMINOLOGY_OPTIONS_BEHAVIOR_H_
#define _OPTIONS_BEHAVIOR_H__ 1 #define TERMINOLOGY_OPTIONS_BEHAVIOR_H_ 1
void options_behavior(Evas_Object *opbox, Evas_Object *term); void options_behavior(Evas_Object *opbox, Evas_Object *term);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_COLORS_H__ #ifndef TERMINOLOGY_OPTIONS_COLORS_H_
#define _OPTIONS_COLORS_H__ 1 #define TERMINOLOGY_OPTIONS_COLORS_H_ 1
void options_colors(Evas_Object *opbox, Evas_Object *term); void options_colors(Evas_Object *opbox, Evas_Object *term);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_ELM_H__ #ifndef TERMINOLOGY_OPTIONS_ELM_H_
#define _OPTIONS_ELM_H__ 1 #define TERMINOLOGY_OPTIONS_ELM_H_ 1
void options_elm(Evas_Object *opbox, Evas_Object *term); void options_elm(Evas_Object *opbox, Evas_Object *term);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_FONT_H__ #ifndef TERMINOLOGY_OPTIONS_FONT_H_
#define _OPTIONS_FONT_H__ 1 #define TERMINOLOGY_OPTIONS_FONT_H_ 1
void options_font(Evas_Object *opbox, Evas_Object *term); void options_font(Evas_Object *opbox, Evas_Object *term);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_KEYS_H__ #ifndef TERMINOLOGY_OPTIONS_KEYS_H_
#define _OPTIONS_KEYS_H__ 1 #define TERMINOLOGY_OPTIONS_KEYS_H_ 1
void options_keys(Evas_Object *opbox, Evas_Object *term); void options_keys(Evas_Object *opbox, Evas_Object *term);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_MOUSE_H__ #ifndef TERMINOLOGY_OPTIONS_MOUSE_H_
#define _OPTIONS_MOUSE_H__ 1 #define TERMINOLOGY_OPTIONS_MOUSE_H_ 1
void options_mouse(Evas_Object *opbox, Evas_Object *term); void options_mouse(Evas_Object *opbox, Evas_Object *term);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_THEME_H__ #ifndef TERMINOLOGY_OPTIONS_THEME_H_
#define _OPTIONS_THEME_H__ 1 #define TERMINOLOGY_OPTIONS_THEME_H_ 1
void options_theme(Evas_Object *opbox, Evas_Object *term); void options_theme(Evas_Object *opbox, Evas_Object *term);

View File

@ -1,5 +1,5 @@
#ifndef _OPTIONS_THEMEPV_H__ #ifndef TERMINOLOGY_OPTIONS_THEMEPV_H_
#define _OPTIONS_THEMEPV_H__ 1 #define TERMINOLOGY_OPTIONS_THEMEPV_H_ 1
#include "colors.h" #include "colors.h"
Evas_Object * Evas_Object *

View File

@ -1,5 +1,5 @@
#ifndef _PRIVATE_H__ #ifndef TERMINOLOGY_PRIVATE_H_
#define _PRIVATE_H__ 1 #define TERMINOLOGY_PRIVATE_H_ 1
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "terminology_config.h" #include "terminology_config.h"

View File

@ -1,5 +1,5 @@
#ifndef _SB_H__ #ifndef TERMINOLOGY_SB_H_
#define _SB_H__ #define TERMINOLOGY_SB_H_
#include <stddef.h> #include <stddef.h>

View File

@ -1,5 +1,5 @@
#ifndef _SEL_H__ #ifndef TERMINOLOGY_SEL_H_
#define _SEL_H__ 1 #define TERMINOLOGY_SEL_H_ 1
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _TERM_CONTAINER_H__ #ifndef TERMINOLOGY_TERM_CONTAINER_H_
#define _TERM_CONTAINER_H__ 1 #define TERMINOLOGY_TERM_CONTAINER_H_ 1
typedef struct _Term_Container Term_Container; typedef struct _Term_Container Term_Container;

View File

@ -1,5 +1,5 @@
#ifndef _TERMCMD_H__ #ifndef TERMINOLOGY_TERMCMD_H_
#define _TERMCMD_H__ 1 #define TERMINOLOGY_TERMCMD_H_ 1
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _TERMIO_H__ #ifndef TERMINOLOGY_TERMIO_H_
#define _TERMIO_H__ 1 #define TERMINOLOGY_TERMIO_H_ 1
#include "config.h" #include "config.h"
#include "main.h" #include "main.h"

View File

@ -1,5 +1,5 @@
#ifndef _TERMIOINTERNALS_H__ #ifndef TERMINOLOGY_TERMIOINTERNALS_H_
#define _TERMIOINTERNALS_H__ 1 #define TERMINOLOGY_TERMIOINTERNALS_H_ 1
#if defined(BINARY_TYFUZZ) || defined(BINARY_TYTEST) #if defined(BINARY_TYFUZZ) || defined(BINARY_TYTEST)
typedef void Term; typedef void Term;

View File

@ -1,5 +1,5 @@
#ifndef _TERMIO_LINK_H__ #ifndef TERMINOLOGY_TERMIO_LINK_H_
#define _TERMIO_LINK_H__ 1 #define TERMINOLOGY_TERMIO_LINK_H_ 1
char *termio_link_find(const Evas_Object *obj, int cx, int cy, int *x1r, int *y1r, int *x2r, int *y2r); char *termio_link_find(const Evas_Object *obj, int cx, int cy, int *x1r, int *y1r, int *x2r, int *y2r);
Eina_Bool Eina_Bool

View File

@ -1,5 +1,5 @@
#ifndef _TERMPTY_H__ #ifndef TERMINOLOGY_TERMPTY_H_
#define _TERMPTY_H__ 1 #define TERMINOLOGY_TERMPTY_H_ 1
#include "config.h" #include "config.h"
#include "media.h" #include "media.h"

View File

@ -1,6 +1,6 @@
/* XXX: Code generated by tool unicode_dbl_width.py */ /* XXX: Code generated by tool unicode_dbl_width.py */
#ifndef _TERMPTY_DBL_H__ #ifndef TERMINOLOGY_TERMPTY_DBL_H_
#define _TERMPTY_DBL_H__ 1 #define TERMINOLOGY_TERMPTY_DBL_H_ 1
Eina_Bool _termpty_is_wide(const Eina_Unicode g); Eina_Bool _termpty_is_wide(const Eina_Unicode g);
Eina_Bool _termpty_is_ambigous_wide(const Eina_Unicode g); Eina_Bool _termpty_is_ambigous_wide(const Eina_Unicode g);

View File

@ -1,5 +1,5 @@
#ifndef _TERMPTY_ESC_H__ #ifndef TERMINOLOGY_TERMPTY_ESC_H_
#define _TERMPTY_ESC_H__ 1 #define TERMINOLOGY_TERMPTY_ESC_H_ 1
int termpty_handle_seq(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce); int termpty_handle_seq(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce);
const char * EINA_PURE termptyesc_safechar(const unsigned int c); const char * EINA_PURE termptyesc_safechar(const unsigned int c);

View File

@ -1,5 +1,5 @@
#ifndef _TERMPTY_EXT_H__ #ifndef TERMINOLOGY_TERMPTY_EXT_H_
#define _TERMPTY_EXT_H__ 1 #define TERMINOLOGY_TERMPTY_EXT_H_ 1
Eina_Bool Eina_Bool
termpty_ext_handle(Termpty *ty, termpty_ext_handle(Termpty *ty,

View File

@ -1,5 +1,5 @@
#ifndef _TERMPTY_GFX_H__ #ifndef TERMINOLOGY_TERMPTY_GFX_H_
#define _TERMPTY_GFX_H__ 1 #define TERMINOLOGY_TERMPTY_GFX_H_ 1
#include "termpty.h" #include "termpty.h"

View File

@ -1,5 +1,5 @@
#ifndef _TERMPTY_OPS_H__ #ifndef TERMINOLOGY_TERMPTY_OPS_H_
#define _TERMPTY_OPS_H__ 1 #define TERMINOLOGY_TERMPTY_OPS_H_ 1
typedef enum _Termpty_Clear typedef enum _Termpty_Clear
{ {

View File

@ -1,5 +1,5 @@
#ifndef _THEME_H__ #ifndef TERMINOLOGY_THEME_H_
#define _THEME_H__ #define TERMINOLOGY_THEME_H_
#include <Evas.h> #include <Evas.h>
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _TY_COMMON_H__ #ifndef TERMINOLOGY_TY_COMMON_H_
#define _TY_COMMON_H__ 1 #define TERMINOLOGY_TY_COMMON_H_ 1
int expect_running_in_terminology(void); int expect_running_in_terminology(void);
ssize_t ty_write(int fd, const void *buf, size_t count); ssize_t ty_write(int fd, const void *buf, size_t count);

View File

@ -1,5 +1,5 @@
#ifndef _TYTEST_H__ #ifndef TERMINOLOGY_TYTEST_H_
#define _TYTEST_H__ 1 #define TERMINOLOGY_TYTEST_H_ 1
#if defined(BINARY_TYTEST) #if defined(BINARY_TYTEST)
#define evas_object_textgrid_palette_get test_textgrid_palette_get #define evas_object_textgrid_palette_get test_textgrid_palette_get

View File

@ -1,5 +1,5 @@
#ifndef _TYTEST_COMMON_H__ #ifndef TERMINOLOGY_TYTEST_COMMON_H_
#define _TYTEST_COMMON_H__ 1 #define TERMINOLOGY_TYTEST_COMMON_H_ 1
#define TY_H 24 #define TY_H 24
#define TY_W 80 #define TY_W 80

View File

@ -1,5 +1,5 @@
#ifndef _TY_UNIT_TESTS_H__ #ifndef TERMINOLOGY_TY_UNIT_TESTS_H_
#define _TY_UNIT_TESTS_H__ 1 #define TERMINOLOGY_TY_UNIT_TESTS_H_ 1
/* Unit tests */ /* Unit tests */
typedef int (*tytest_func)(void); typedef int (*tytest_func)(void);

View File

@ -1,5 +1,5 @@
#ifndef _UTF8_H__ #ifndef TERMINOLOGY_UTF8_H_
#define _UTF8_H__ 1 #define TERMINOLOGY_UTF8_H_ 1
#include <Eina.h> #include <Eina.h>
int codepoint_to_utf8(Eina_Unicode g, char *txt); int codepoint_to_utf8(Eina_Unicode g, char *txt);

View File

@ -1,5 +1,5 @@
#ifndef _UTILS_H__ #ifndef TERMINOLOGY_UTILS_H_
#define _UTILS_H__ #define TERMINOLOGY_UTILS_H_
#include <Eina.h> #include <Eina.h>
#include "config.h" #include "config.h"

View File

@ -1,5 +1,5 @@
#ifndef _WIN_H__ #ifndef TERMINOLOGY_WIN_H_
#define _WIN_H__ 1 #define TERMINOLOGY_WIN_H_ 1
#include "config.h" #include "config.h"

View File

@ -72,8 +72,8 @@ def skip_ranges(ranges, width_skipped):
def gen_header(cur_range, file_header): def gen_header(cur_range, file_header):
file_header.write( file_header.write(
"""/* XXX: Code generated by tool unicode_dbl_width.py */ """/* XXX: Code generated by tool unicode_dbl_width.py */
#ifndef _TERMPTY_DBL_H__ #ifndef TERMINOLOGY_TERMPTY_DBL_H_
#define _TERMPTY_DBL_H__ 1 #define TERMINOLOGY_TERMPTY_DBL_H_ 1
Eina_Bool _termpty_is_wide(const Eina_Unicode g); Eina_Bool _termpty_is_wide(const Eina_Unicode g);
Eina_Bool _termpty_is_ambigous_wide(const Eina_Unicode g); Eina_Bool _termpty_is_ambigous_wide(const Eina_Unicode g);