Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Fri, 08 Jun 2012 16:37:19 Commit: 86f0d94e71d1d92e419aa66bb70c67c40dc5243b https://github.com/geany/geany-plugins/commit/86f0d94e71d1d92e419aa66bb70c67...
Log Message: ----------- debugger: Add header guards
Modified Paths: -------------- debugger/src/atree.h debugger/src/bptree.h debugger/src/breakpoint.h debugger/src/breakpoints.h debugger/src/btnpanel.h debugger/src/callbacks.h debugger/src/calltip.h debugger/src/dconfig.h debugger/src/debug.h debugger/src/debug_module.h debugger/src/dpaned.h debugger/src/envtree.h debugger/src/gui.h debugger/src/keys.h debugger/src/markers.h debugger/src/pixbuf.h debugger/src/stree.h debugger/src/tabs.h debugger/src/tpage.h debugger/src/utils.h debugger/src/vtree.h debugger/src/watch_model.h debugger/src/wtree.h
Modified: debugger/src/atree.h 6 files changed, 5 insertions(+), 1 deletions(-) =================================================================== @@ -18,6 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - + +#ifndef ATREE_H +#define ATREE_H + GtkWidget* atree_init(watch_expanded_callback expanded, watch_button_pressed buttonpressed);
+#endif /* guard */
Modified: debugger/src/bptree.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef BPTREE_H +#define BPTREE_H + gboolean bptree_init(move_to_line_cb callback); void bptree_destroy(void); void bptree_add_breakpoint(breakpoint* bp); @@ -30,3 +33,5 @@ gchar* bptree_get_condition(breakpoint* bp); void bptree_set_readonly(gboolean readonly); void bptree_update_file_nodes(void); + +#endif /* guard */
Modified: debugger/src/breakpoint.h 7 files changed, 6 insertions(+), 1 deletions(-) =================================================================== @@ -18,7 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - + +#ifndef BREAKPOINT_H +#define BREAKPOINT_H + /* maximum condition length */ #define CONDITION_MAX_LENGTH 1024
@@ -34,3 +37,5 @@
breakpoint* break_new(void); breakpoint* break_new_full(const char* file, int line, const char* condition, int enabled, int hitscount); + +#endif /* guard */
Modified: debugger/src/breakpoints.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef BREAKPOINTS_H +#define BREAKPOINTS_H + #include "breakpoint.h"
typedef enum _break_state { @@ -45,3 +48,5 @@ GList* breaks_get_for_document(const char* file); GList* breaks_get_all(void); breakpoint* breaks_lookup_breakpoint(const gchar* file, int line); + +#endif /* guard */
Modified: debugger/src/btnpanel.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,7 +19,12 @@ * MA 02110-1301, USA. */
+#ifndef BTNPANEL_H +#define BTNPANEL_H + typedef void (*on_toggle)(GtkToggleButton *button, gpointer user_data);
GtkWidget* btnpanel_create(on_toggle cb); void btnpanel_set_debug_state(enum dbs state); + +#endif /* guard */
Modified: debugger/src/callbacks.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,8 +19,13 @@ * MA 02110-1301, USA. */
+#ifndef CALLBACKS_H +#define CALLBACKS_H + void on_document_open(GObject *obj, GeanyDocument *doc, gpointer user_data); void on_document_save(GObject *obj, GeanyDocument *doc, gpointer user_data); void on_document_before_save(GObject *obj, GeanyDocument *doc, gpointer user_data); gboolean on_editor_notify(GObject *object, GeanyEditor *editor, SCNotification *nt, gpointer data); gboolean keys_callback(guint key_id); + +#endif /* guard */
Modified: debugger/src/calltip.h 7 files changed, 6 insertions(+), 1 deletions(-) =================================================================== @@ -18,8 +18,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - + +#ifndef CALLTIP_H +#define CALLTIP_H + #define MAX_CALLTIP_LENGTH 140 #define MAX_CALLTIP_HEIGHT 20
GString* get_calltip_line(variable *var, gboolean firstline); + +#endif /* guard */
Modified: debugger/src/dconfig.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef DCOFIG_H +#define DCOFIG_H + #include <stdarg.h>
/* panel config parts */ @@ -65,3 +68,5 @@ void config_update_project_keyfile(void);
GtkWidget *config_plugin_configure(GtkDialog *dialog); + +#endif /* guard */
Modified: debugger/src/debug.h 6 files changed, 5 insertions(+), 1 deletions(-) =================================================================== @@ -18,7 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - + +#ifndef DEBUG_H +#define DEBUG_H + #include "debug_module.h" #include "markers.h"
@@ -50,3 +53,4 @@ void debug_restart(void); int debug_get_active_frame(void);
+#endif /* guard */
Modified: debugger/src/debug_module.h 7 files changed, 6 insertions(+), 1 deletions(-) =================================================================== @@ -18,7 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - + +#ifndef DEBUG_MODULE_H +#define DEBUG_MODULE_H + /* debug states enumeration */ enum dbs { DBS_IDLE, @@ -165,3 +168,5 @@ enum dbs {
frame* frame_new(void); void frame_free(frame* f); + +#endif /* guard */
Modified: debugger/src/dpaned.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -20,7 +20,12 @@ * MA 02110-1301, USA. */
+#ifndef DPANED_H +#define DPANED_H + void dpaned_init(void); void dpaned_destroy(void); GtkWidget* dpaned_get_paned(void); void dpaned_set_tabbed(gboolean paned); + +#endif /* guard */
Modified: debugger/src/envtree.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,9 +19,14 @@ * MA 02110-1301, USA. */
+#ifndef ENVTREE_H +#define ENVTREE_H + GtkWidget* envtree_init(void); void envtree_destroy(void); void envtree_clear(void); void envtree_set_readonly(gboolean readonly); void envtree_add_environment(const gchar *name, const gchar *value); GList* envpage_get_environment(void); + +#endif /* guard */
Modified: debugger/src/gui.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,8 +19,13 @@ * MA 02110-1301, USA. */
+#ifndef GUI_H +#define GUI_H + GtkWidget* create_button(const gchar *icon, const gchar *tooltip); GtkWidget* create_stock_button(const gchar *stockid, const gchar *tooltip); GtkWidget* create_toggle_button(const gchar *stockid, const gchar *tooltip);
void set_button_image(GtkWidget *btn, const gchar *icon); + +#endif /* guard */
Modified: debugger/src/keys.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef KEYS_H +#define KEYS_H + /* hotkeys enumeration */ enum KEYS { @@ -34,3 +37,5 @@ enum KEYS };
gboolean keys_init(void); + +#endif /* guard */
Modified: debugger/src/markers.h 7 files changed, 5 insertions(+), 2 deletions(-) =================================================================== @@ -18,7 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - + +#ifndef MARKERS_H +#define MARKERS_H + void markers_init(void); void markers_set_for_document(ScintillaObject *sci); void markers_add_breakpoint(breakpoint* bp); @@ -29,4 +32,4 @@ void markers_remove_frame(char* file, int line); void markers_remove_all(GeanyDocument *doc);
- +#endif /* guard */
Modified: debugger/src/pixbuf.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef PIXBUF_H +#define PIXBUF_H + extern GdkPixbuf *break_pixbuf; extern GdkPixbuf *break_disabled_pixbuf; extern GdkPixbuf *break_condition_pixbuf; @@ -32,3 +35,5 @@
void pixbufs_init(void); void pixbufs_destroy(void); + +#endif /* guard */
Modified: debugger/src/stree.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef STREE_H +#define STREE_H + GtkWidget* stree_init(move_to_line_cb ml, select_frame_cb sf); void stree_destroy(void);
@@ -32,3 +35,5 @@ void stree_remove_frames(void);
void stree_set_active_thread_id(int thread_id); + +#endif /* guard */
Modified: debugger/src/tabs.h 4 files changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -20,6 +20,9 @@ * MA 02110-1301, USA. */
+#ifndef TABS_H +#define TABS_H + typedef enum _tab_id { TID_TARGET, @@ -43,3 +46,4 @@ tab_id tabs_get_tab_id(GtkWidget* tab); const gchar* tabs_get_label(tab_id id);
+#endif /* guard */
Modified: debugger/src/tpage.h 4 files changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef TPAGE_H +#define TPAGE_H + void tpage_init(void);
gchar* tpage_get_target(void); @@ -40,3 +43,4 @@
void tpage_pack_widgets(gboolean tabbed);
+#endif /* guard */
Modified: debugger/src/utils.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -18,6 +18,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ + +#ifndef UTILS_H +#define UTILS_H
void editor_open_position(const char* file, int line); GString* get_word_at_position(ScintillaObject *sci, int position); + +#endif /* guard */
Modified: debugger/src/vtree.h 8 files changed, 6 insertions(+), 2 deletions(-) =================================================================== @@ -18,6 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - - GtkWidget* vtree_create(watch_render_name on_render_name, watch_expression_changed on_expression_changed);
+#ifndef VTREE_H +#define VTREE_H + +GtkWidget* vtree_create(watch_render_name on_render_name, watch_expression_changed on_expression_changed); + +#endif /* guard */
Modified: debugger/src/watch_model.h 5 files changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -19,6 +19,9 @@ * MA 02110-1301, USA. */
+#ifndef WATCH_MODEL_H +#define WATCH_MODEL_H + /* tree view columns */ enum { @@ -49,3 +52,5 @@ enum void free_variables_list(GList *vars); void variable_set_name_only(GtkTreeStore *store, GtkTreeIter *iter, gchar *name); void expand_stub(GtkTreeView *tree, GtkTreeIter *parent, GList *vars); + +#endif /* guard */
Modified: debugger/src/wtree.h 7 files changed, 5 insertions(+), 2 deletions(-) =================================================================== @@ -18,7 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. */ - + +#ifndef WTREE_H +#define WTREE_H + GtkWidget* wtree_init(watch_expanded_callback expanded, new_watch_dragged dragged, watch_key_pressed keypressed, @@ -30,4 +33,4 @@ GtkWidget* wtree_init(watch_expanded_callback expanded, void wtree_remove_all(void); void wtree_add_watch(gchar *watch);
- +#endif /* guard */
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).