Browse Source

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

master
Koichi Murase 4 months ago
parent
commit
a6ca0111de
  1. 4
      src/bin/about.h
  2. 4
      src/bin/backlog.h
  3. 4
      src/bin/colors.h
  4. 4
      src/bin/config.h
  5. 4
      src/bin/controls.h
  6. 4
      src/bin/extns.h
  7. 4
      src/bin/gravatar.h
  8. 4
      src/bin/ipc.h
  9. 4
      src/bin/keyin.h
  10. 4
      src/bin/main.h
  11. 4
      src/bin/md5.h
  12. 4
      src/bin/media.h
  13. 4
      src/bin/miniview.h
  14. 4
      src/bin/options.h
  15. 4
      src/bin/options_background.h
  16. 4
      src/bin/options_behavior.h
  17. 4
      src/bin/options_colors.h
  18. 4
      src/bin/options_elm.h
  19. 4
      src/bin/options_font.h
  20. 4
      src/bin/options_keys.h
  21. 4
      src/bin/options_mouse.h
  22. 4
      src/bin/options_theme.h
  23. 4
      src/bin/options_themepv.h
  24. 4
      src/bin/private.h
  25. 4
      src/bin/sb.h
  26. 4
      src/bin/sel.h
  27. 4
      src/bin/term_container.h
  28. 4
      src/bin/termcmd.h
  29. 4
      src/bin/termio.h
  30. 4
      src/bin/termiointernals.h
  31. 4
      src/bin/termiolink.h
  32. 4
      src/bin/termpty.h
  33. 4
      src/bin/termptydbl.h
  34. 4
      src/bin/termptyesc.h
  35. 4
      src/bin/termptyext.h
  36. 4
      src/bin/termptygfx.h
  37. 4
      src/bin/termptyops.h
  38. 4
      src/bin/theme.h
  39. 4
      src/bin/tycommon.h
  40. 4
      src/bin/tytest.h
  41. 4
      src/bin/tytest_common.h
  42. 4
      src/bin/unit_tests.h
  43. 4
      src/bin/utf8.h
  44. 4
      src/bin/utils.h
  45. 4
      src/bin/win.h
  46. 4
      tools/unicode_dbl_width.py

4
src/bin/about.h

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

4
src/bin/backlog.h

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

4
src/bin/colors.h

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

4
src/bin/config.h

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

4
src/bin/controls.h

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

4
src/bin/extns.h

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

4
src/bin/gravatar.h

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

4
src/bin/ipc.h

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

4
src/bin/keyin.h

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

4
src/bin/main.h

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

4
src/bin/md5.h

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

4
src/bin/media.h

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

4
src/bin/miniview.h

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

4
src/bin/options.h

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

4
src/bin/options_background.h

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

4
src/bin/options_behavior.h

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

4
src/bin/options_colors.h

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

4
src/bin/options_elm.h

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

4
src/bin/options_font.h

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

4
src/bin/options_keys.h

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

4
src/bin/options_mouse.h

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

4
src/bin/options_theme.h

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

4
src/bin/options_themepv.h

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

4
src/bin/private.h

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

4
src/bin/sb.h

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

4
src/bin/sel.h

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

4
src/bin/term_container.h

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

4
src/bin/termcmd.h

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

4
src/bin/termio.h

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

4
src/bin/termiointernals.h

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

4
src/bin/termiolink.h

@ -1,5 +1,5 @@
#ifndef _TERMIO_LINK_H__
#define _TERMIO_LINK_H__ 1
#ifndef TERMINOLOGY_TERMIO_LINK_H_
#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);
Eina_Bool

4
src/bin/termpty.h

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

4
src/bin/termptydbl.h

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

4
src/bin/termptyesc.h

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

4
src/bin/termptyext.h

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

4
src/bin/termptygfx.h

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

4
src/bin/termptyops.h

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

4
src/bin/theme.h

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

4
src/bin/tycommon.h

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

4
src/bin/tytest.h

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

4
src/bin/tytest_common.h

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

4
src/bin/unit_tests.h

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

4
src/bin/utf8.h

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

4
src/bin/utils.h

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

4
src/bin/win.h

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

4
tools/unicode_dbl_width.py

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

Loading…
Cancel
Save