billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=79034500d362d7d9198835d4874b25c3c18e4ed7

commit 79034500d362d7d9198835d4874b25c3c18e4ed7
Author: Boris Faure <bill...@gmail.com>
Date:   Mon Jan 6 22:29:18 2014 +0100

    add header guards
---
 src/bin/about.h             | 5 +++++
 src/bin/controls.h          | 4 ++++
 src/bin/extns.h             | 5 +++++
 src/bin/keyin.h             | 5 +++++
 src/bin/options_behavior.h  | 5 +++++
 src/bin/options_colors.h    | 5 +++++
 src/bin/options_font.h      | 5 +++++
 src/bin/options_helpers.h   | 5 +++++
 src/bin/options_keys.h      | 5 +++++
 src/bin/options_theme.h     | 5 +++++
 src/bin/options_themepv.h   | 5 +++++
 src/bin/options_video.h     | 5 +++++
 src/bin/options_wallpaper.h | 5 +++++
 src/bin/private.h           | 5 +++++
 src/bin/termiolink.h        | 6 +++++-
 src/bin/termptydbl.h        | 4 ++++
 src/bin/termptyesc.h        | 6 +++++-
 src/bin/termptyext.h        | 6 +++++-
 src/bin/termptygfx.h        | 6 +++++-
 src/bin/termptyops.h        | 5 +++++
 src/bin/termptysave.h       | 6 +++++-
 src/bin/utf8.h              | 6 +++++-
 src/bin/win.h               | 4 ++++
 23 files changed, 112 insertions(+), 6 deletions(-)

diff --git a/src/bin/about.h b/src/bin/about.h
index a89e1e6..54e03ac 100644
--- a/src/bin/about.h
+++ b/src/bin/about.h
@@ -1,2 +1,7 @@
+#ifndef _ABOUT_H__
+#define _ABOUT_H__ 1
+
 void about_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term,
                   void (*donecb) (void *data), void *donedata);
+
+#endif
diff --git a/src/bin/controls.h b/src/bin/controls.h
index 827c3e1..078d15b 100644
--- a/src/bin/controls.h
+++ b/src/bin/controls.h
@@ -1,3 +1,7 @@
+#ifndef _CONTROLS_H__
+#define _CONTROLS_H__ 1
+
 void controls_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term,
                      void (*donecb) (void *data), void *donedata);
 
+#endif
diff --git a/src/bin/extns.h b/src/bin/extns.h
index 8f67644..ded11cc 100644
--- a/src/bin/extns.h
+++ b/src/bin/extns.h
@@ -1,5 +1,10 @@
+#ifndef _EXTNS_H__
+#define _EXTNS_H__ 1
+
 extern const char *extn_img[];
 extern const char *extn_scale[];
 extern const char *extn_edj[];
 extern const char *extn_mov[];
 extern const char *extn_aud[];
+
+#endif
diff --git a/src/bin/keyin.h b/src/bin/keyin.h
index 083762b..b7c83f1 100644
--- a/src/bin/keyin.h
+++ b/src/bin/keyin.h
@@ -1 +1,6 @@
+#ifndef _KEYIN_H__
+#define _KEYIN_H__ 1
+
 void keyin_handle(Termpty *ty, Evas_Event_Key_Down *ev);
+
+#endif
diff --git a/src/bin/options_behavior.h b/src/bin/options_behavior.h
index ede2d28..8aa8608 100644
--- a/src/bin/options_behavior.h
+++ b/src/bin/options_behavior.h
@@ -1 +1,6 @@
+#ifndef _OPTIONS_BEHAVIOR_H__
+#define _OPTIONS_BEHAVIOR_H__ 1
+
 void options_behavior(Evas_Object *opbox, Evas_Object *term);
+
+#endif
diff --git a/src/bin/options_colors.h b/src/bin/options_colors.h
index 60f4ebf..0512d98 100644
--- a/src/bin/options_colors.h
+++ b/src/bin/options_colors.h
@@ -1 +1,6 @@
+#ifndef _OPTIONS_COLORS_H__
+#define _OPTIONS_COLORS_H__ 1
+
 void options_colors(Evas_Object *opbox, Evas_Object *term);
+
+#endif
diff --git a/src/bin/options_font.h b/src/bin/options_font.h
index 2798f54..6976c27 100644
--- a/src/bin/options_font.h
+++ b/src/bin/options_font.h
@@ -1,2 +1,7 @@
+#ifndef _OPTIONS_FONT_H__
+#define _OPTIONS_FONT_H__ 1
+
 void options_font_clear(void);
 void options_font(Evas_Object *opbox, Evas_Object *term);
+
+#endif
diff --git a/src/bin/options_helpers.h b/src/bin/options_helpers.h
index da422e4..41b5f65 100644
--- a/src/bin/options_helpers.h
+++ b/src/bin/options_helpers.h
@@ -1 +1,6 @@
+#ifndef _OPTIONS_HELPERS_H__
+#define _OPTIONS_HELPERS_H__ 1
+
 void options_helpers(Evas_Object *opbox, Evas_Object *term);
+
+#endif
diff --git a/src/bin/options_keys.h b/src/bin/options_keys.h
index 0ab2a32..1fbc285 100644
--- a/src/bin/options_keys.h
+++ b/src/bin/options_keys.h
@@ -1 +1,6 @@
+#ifndef _OPTIONS_KEYS_H__
+#define _OPTIONS_KEYS_H__ 1
+
 void options_keys(Evas_Object *opbox, Evas_Object *term);
+
+#endif
diff --git a/src/bin/options_theme.h b/src/bin/options_theme.h
index ff09725..fe2b66c 100644
--- a/src/bin/options_theme.h
+++ b/src/bin/options_theme.h
@@ -1,2 +1,7 @@
+#ifndef _OPTIONS_THEME_H__
+#define _OPTIONS_THEME_H__ 1
+
 void options_theme_clear(void);
 void options_theme(Evas_Object *opbox, Evas_Object *term);
+
+#endif
diff --git a/src/bin/options_themepv.h b/src/bin/options_themepv.h
index 18d24e8..fac2ea4 100644
--- a/src/bin/options_themepv.h
+++ b/src/bin/options_themepv.h
@@ -1 +1,6 @@
+#ifndef _OPTIONS_THEMEPV_H__
+#define _OPTIONS_THEMEPV_H__ 1
+
 Evas_Object *options_theme_preview_add(Evas_Object *parent, Config *config, 
const char *file, Evas_Coord w, Evas_Coord h);
+
+#endif
diff --git a/src/bin/options_video.h b/src/bin/options_video.h
index 18274d2..b1c373f 100644
--- a/src/bin/options_video.h
+++ b/src/bin/options_video.h
@@ -1 +1,6 @@
+#ifndef _OPTIONS_VIDEO_H__
+#define _OPTIONS_VIDEO_H__ 1
+
 void options_video(Evas_Object *opbox, Evas_Object *term);
+
+#endif
diff --git a/src/bin/options_wallpaper.h b/src/bin/options_wallpaper.h
index 5c68e5b..8e4e092 100644
--- a/src/bin/options_wallpaper.h
+++ b/src/bin/options_wallpaper.h
@@ -1,2 +1,7 @@
+#ifndef _OPTIONS_WALLPAPER_H__
+#define _OPTIONS_WALLPAPER_H__ 1
+
 void options_wallpaper(Evas_Object *opbox, Evas_Object *term);
 void options_wallpaper_clear(void);
+
+#endif
diff --git a/src/bin/private.h b/src/bin/private.h
index c1b0ded..74a661c 100644
--- a/src/bin/private.h
+++ b/src/bin/private.h
@@ -1,3 +1,6 @@
+#ifndef _PRIVATE_H__
+#define _PRIVATE_H__ 1
+
 #ifdef HAVE_CONFIG_H
 #include "terminology_config.h"
 #endif
@@ -9,3 +12,5 @@ extern int _log_domain;
 #define WRN(...)      EINA_LOG_DOM_WARN(_log_domain, __VA_ARGS__)
 #define INF(...)      EINA_LOG_DOM_INFO(_log_domain, __VA_ARGS__)
 #define DBG(...)      EINA_LOG_DOM_DBG(_log_domain, __VA_ARGS__)
+
+#endif
diff --git a/src/bin/termiolink.h b/src/bin/termiolink.h
index c082a5f..82b1b61 100644
--- a/src/bin/termiolink.h
+++ b/src/bin/termiolink.h
@@ -1,2 +1,6 @@
+#ifndef _TERMIO_LINK_H__
+#define _TERMIO_LINK_H__ 1
+
 char *_termio_link_find(Evas_Object *obj, int cx, int cy, int *x1r, int *y1r, 
int *x2r, int *y2r);
-    
+
+#endif
diff --git a/src/bin/termptydbl.h b/src/bin/termptydbl.h
index da9ca5d..8c90623 100644
--- a/src/bin/termptydbl.h
+++ b/src/bin/termptydbl.h
@@ -1,3 +1,6 @@
+#ifndef _TERMPTY_DBL_H__
+#define _TERMPTY_DBL_H__ 1
+
 Eina_Bool _termpty_is_dblwidth_slow_get(Termpty *ty, int g);
 
 static inline Eina_Bool
@@ -23,3 +26,4 @@ _termpty_is_dblwidth_get(Termpty *ty, int g)
 #endif
 }
 
+#endif
diff --git a/src/bin/termptyesc.h b/src/bin/termptyesc.h
index c72cf55..982fc6a 100644
--- a/src/bin/termptyesc.h
+++ b/src/bin/termptyesc.h
@@ -1,2 +1,6 @@
+#ifndef _TERMPTY_ESC_H__
+#define _TERMPTY_ESC_H__ 1
+
 int _termpty_handle_seq(Termpty *ty, Eina_Unicode *c, Eina_Unicode *ce);
-    
+
+#endif
diff --git a/src/bin/termptyext.h b/src/bin/termptyext.h
index 95bc894..8e1bdde 100644
--- a/src/bin/termptyext.h
+++ b/src/bin/termptyext.h
@@ -1,2 +1,6 @@
+#ifndef _TERMPTY_EXT_H__
+#define _TERMPTY_EXT_H__ 1
+
 Eina_Bool _termpty_ext_handle(Termpty *ty, const char *txt, Eina_Unicode 
*utxt);
-    
+
+#endif
diff --git a/src/bin/termptygfx.h b/src/bin/termptygfx.h
index e44efbd..770cd9d 100644
--- a/src/bin/termptygfx.h
+++ b/src/bin/termptygfx.h
@@ -1,2 +1,6 @@
+#ifndef _TERMPTY_GFX_H__
+#define _TERMPTY_GFX_H__ 1
+
 Eina_Unicode _termpty_charset_trans(Eina_Unicode g, int chset);
-    
+
+#endif
diff --git a/src/bin/termptyops.h b/src/bin/termptyops.h
index 8d11a41..23ff810 100644
--- a/src/bin/termptyops.h
+++ b/src/bin/termptyops.h
@@ -1,3 +1,6 @@
+#ifndef _TERMPTY_OPS_H__
+#define _TERMPTY_OPS_H__ 1
+
 typedef enum _Termpty_Clear
 {
    TERMPTY_CLR_END,
@@ -20,3 +23,5 @@ void _termpty_reset_state(Termpty *ty);
 void _termpty_cursor_copy(Termstate *state, Termstate *dest);
 
 #define _term_txt_write(ty, txt) termpty_write(ty, txt, sizeof(txt) - 1)
+
+#endif
diff --git a/src/bin/termptysave.h b/src/bin/termptysave.h
index 108185d..ce430a5 100644
--- a/src/bin/termptysave.h
+++ b/src/bin/termptysave.h
@@ -1,3 +1,6 @@
+#ifndef _TERMPTY_SAVE_H__
+#define _TERMPTY_SAVE_H__ 1
+
 void termpty_save_freeze(void);
 void termpty_save_thaw(void);
 void termpty_save_register(Termpty *ty);
@@ -5,4 +8,5 @@ void termpty_save_unregister(Termpty *ty);
 Termsave *termpty_save_extract(Termsave *ts);
 Termsave *termpty_save_new(int w);
 void termpty_save_free(Termsave *ts);
-    
+
+#endif
diff --git a/src/bin/utf8.h b/src/bin/utf8.h
index 75fad79..fc62db2 100644
--- a/src/bin/utf8.h
+++ b/src/bin/utf8.h
@@ -1,2 +1,6 @@
+#ifndef _UTF8_H__
+#define _UTF8_H__ 1
+
 int codepoint_to_utf8(int g, char *txt);
-    
+
+#endif
diff --git a/src/bin/win.h b/src/bin/win.h
index 5e15555..0479610 100644
--- a/src/bin/win.h
+++ b/src/bin/win.h
@@ -1,2 +1,6 @@
+#ifndef _WIN_H__
+#define _WIN_H__ 1
+
 Evas_Object *tg_win_add(const char *name, const char *role, const char *title, 
const char *icon_name);
 
+#endif

-- 


Reply via email to