[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-107-g62a38ee)



The branch, master has been updated
       via  62a38eefd8d3d9f84d8aeb78e2a1e365080d819c (commit)
      from  b47f576ff69476362941eaa7ad592e6d98ec233f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/include/prototype.h  |    8 ++++----
 gschem/src/o_attrib.c       |    2 +-
 gschem/src/o_slot.c         |    2 +-
 gschem/src/x_dialog.c       |    4 ++--
 libgeda/include/prototype.h |    6 +++---
 libgeda/src/o_text_basic.c  |    8 ++++----
 6 files changed, 15 insertions(+), 15 deletions(-)


=================
 Commit Messages
=================

commit 62a38eefd8d3d9f84d8aeb78e2a1e365080d819c
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Fri Aug 15 22:48:11 2008 +0100

    Make some string arguments const.
    
    In a few places, strings are being passed into functions and no
    changes are made to them. Mark these arguments as const.

:100644 100644 d7ddece... 91e4fc9... M	gschem/include/prototype.h
:100644 100644 6da82a8... fb817a3... M	gschem/src/o_attrib.c
:100644 100644 a47d7c4... 353486e... M	gschem/src/o_slot.c
:100644 100644 42330ee... 2578a39... M	gschem/src/x_dialog.c
:100644 100644 0bdaec9... 974c97f... M	libgeda/include/prototype.h
:100644 100644 a62a939... 7ff723f... M	libgeda/src/o_text_basic.c

=========
 Changes
=========

commit 62a38eefd8d3d9f84d8aeb78e2a1e365080d819c
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Fri Aug 15 22:48:11 2008 +0100

    Make some string arguments const.
    
    In a few places, strings are being passed into functions and no
    changes are made to them. Mark these arguments as const.

diff --git a/gschem/include/prototype.h b/gschem/include/prototype.h
index d7ddece..91e4fc9 100644
--- a/gschem/include/prototype.h
+++ b/gschem/include/prototype.h
@@ -476,7 +476,7 @@ void o_arc_erase_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
 void o_attrib_add_selected(GSCHEM_TOPLEVEL *w_current, SELECTION *selection, OBJECT *selected);
 void o_attrib_toggle_visibility(GSCHEM_TOPLEVEL *w_current, OBJECT *object);
 void o_attrib_toggle_show_name_value(GSCHEM_TOPLEVEL *w_current, OBJECT *object, int new_show_name_value);
-OBJECT *o_attrib_add_attrib(GSCHEM_TOPLEVEL *w_current, char *text_string, int visibility, int show_name_value, OBJECT *object);
+OBJECT *o_attrib_add_attrib(GSCHEM_TOPLEVEL *w_current, const char *text_string, int visibility, int show_name_value, OBJECT *object);
 /* o_basic.c */
 void o_redraw_all(GSCHEM_TOPLEVEL *w_current);
 void o_redraw(GSCHEM_TOPLEVEL *w_current, OBJECT *object_list, gboolean draw_selected);
@@ -704,7 +704,7 @@ void o_select_unselect_all(GSCHEM_TOPLEVEL *w_current);
 void o_select_move_to_place_list(GSCHEM_TOPLEVEL *w_current);
 /* o_slot.c */
 void o_slot_start(GSCHEM_TOPLEVEL *w_current, OBJECT *list);
-void o_slot_end(GSCHEM_TOPLEVEL *w_current, char *string, int len);
+void o_slot_end(GSCHEM_TOPLEVEL *w_current, const char *string, int len);
 /* o_text.c */
 void o_text_draw_lowlevel(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
 void o_text_draw_rectangle(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
@@ -754,14 +754,14 @@ void text_input_dialog_apply(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
 void text_input_dialog(GSCHEM_TOPLEVEL *w_current);
 gint change_alignment(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
 void text_edit_dialog_ok(GtkWidget *w, GSCHEM_TOPLEVEL *w_current);
-void text_edit_dialog(GSCHEM_TOPLEVEL *w_current, char *string, int text_size, int text_alignment);
+void text_edit_dialog(GSCHEM_TOPLEVEL *w_current, const char *string, int text_size, int text_alignment);
 void line_type_dialog(GSCHEM_TOPLEVEL *w_current, GList *objects);
 void fill_type_dialog(GSCHEM_TOPLEVEL *w_current, GList *objects);
 void arc_angle_dialog(GSCHEM_TOPLEVEL *w_current);
 void translate_dialog(GSCHEM_TOPLEVEL *w_current);
 void text_size_dialog(GSCHEM_TOPLEVEL *w_current);
 void snap_size_dialog(GSCHEM_TOPLEVEL *w_current);
-void slot_edit_dialog(GSCHEM_TOPLEVEL *w_current, char *string);
+void slot_edit_dialog(GSCHEM_TOPLEVEL *w_current, const char *string);
 void about_dialog(GSCHEM_TOPLEVEL *w_current);
 void coord_display_update(GSCHEM_TOPLEVEL *w_current, int x, int y);
 void coord_dialog(GSCHEM_TOPLEVEL *w_current, int x, int y);
diff --git a/gschem/src/o_attrib.c b/gschem/src/o_attrib.c
index 6da82a8..fb817a3 100644
--- a/gschem/src/o_attrib.c
+++ b/gschem/src/o_attrib.c
@@ -169,7 +169,7 @@ void o_attrib_toggle_show_name_value(GSCHEM_TOPLEVEL *w_current,
 /* This function no longer returns NULL, but will always return the new */
 /* text item */
 OBJECT *o_attrib_add_attrib(GSCHEM_TOPLEVEL *w_current,
-			    char *text_string, int visibility, 
+			    const char *text_string, int visibility, 
 			    int show_name_value, OBJECT *object)
 {
   TOPLEVEL *toplevel = w_current->toplevel;
diff --git a/gschem/src/o_slot.c b/gschem/src/o_slot.c
index a47d7c4..353486e 100644
--- a/gschem/src/o_slot.c
+++ b/gschem/src/o_slot.c
@@ -105,7 +105,7 @@ void o_slot_start(GSCHEM_TOPLEVEL *w_current, OBJECT *list)
  *  \par Function Description
  *
  */
-void o_slot_end(GSCHEM_TOPLEVEL *w_current, char *string, int len)
+void o_slot_end(GSCHEM_TOPLEVEL *w_current, const char *string, int len)
 {
   TOPLEVEL *toplevel = w_current->toplevel;
   OBJECT *object;
diff --git a/gschem/src/x_dialog.c b/gschem/src/x_dialog.c
index 42330ee..2578a39 100644
--- a/gschem/src/x_dialog.c
+++ b/gschem/src/x_dialog.c
@@ -491,7 +491,7 @@ void text_edit_dialog_response(GtkWidget * widget, gint response, GSCHEM_TOPLEVE
  *  \todo Check why there's no color in the calling parameters
  *  \todo If more than one text element is selected, add an unchanged option
  */
-void text_edit_dialog (GSCHEM_TOPLEVEL *w_current, char *string, int text_size,
+void text_edit_dialog (GSCHEM_TOPLEVEL *w_current, const char *string, int text_size,
                        int text_alignment)
 {
   GtkWidget *label = NULL;
@@ -1910,7 +1910,7 @@ void slot_edit_dialog_response(GtkWidget *widget, gint response, GSCHEM_TOPLEVEL
  *  \par Function Description
  *  This function creates the slot edit dialog.
  */
-void slot_edit_dialog (GSCHEM_TOPLEVEL *w_current, char *string)
+void slot_edit_dialog (GSCHEM_TOPLEVEL *w_current, const char *string)
 {
   GtkWidget *label = NULL;
   GtkWidget *textentry;
diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 0bdaec9..974c97f 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -284,11 +284,11 @@ OBJECT *o_text_add_head(void);
 void o_text_init(void);
 void o_text_print_set(void);
 OBJECT *o_text_load_font(TOPLEVEL *toplevel, gunichar needed_char);
-int o_text_num_lines(char *string);
-int o_text_height(char *string, int size);
+int o_text_num_lines(const char *string);
+int o_text_height(const char *string, int size);
 int o_text_width(TOPLEVEL *toplevel, char *string, int size);
 OBJECT *o_text_create_string(TOPLEVEL *toplevel, OBJECT *object_list, char *string, int size, int color, int x, int y, int alignment, int angle);
-OBJECT *o_text_add(TOPLEVEL *toplevel, OBJECT *object_list, char type, int color, int x, int y, int alignment, int angle, char *string, int size, int visibility, int show_name_value);
+OBJECT *o_text_add(TOPLEVEL *toplevel, OBJECT *object_list, char type, int color, int x, int y, int alignment, int angle, const char *string, int size, int visibility, int show_name_value);
 void o_text_set_info_font(char buf[]);
 void o_text_recreate(TOPLEVEL *toplevel, OBJECT *o_current);
 void o_text_translate_world(TOPLEVEL *toplevel, int dx, int dy, OBJECT *o_current);
diff --git a/libgeda/src/o_text_basic.c b/libgeda/src/o_text_basic.c
index a62a939..7ff723f 100644
--- a/libgeda/src/o_text_basic.c
+++ b/libgeda/src/o_text_basic.c
@@ -247,10 +247,10 @@ OBJECT *o_text_load_font(TOPLEVEL *toplevel, gunichar needed_char)
  *  \par Function Description
  *
  */
-int o_text_num_lines(char *string) 
+int o_text_num_lines(const char *string) 
 {
   int line_count = 0;
-  gchar *aux;
+  const gchar *aux;
   gunichar current_char;
 
   if (string == NULL) {
@@ -277,7 +277,7 @@ int o_text_num_lines(char *string)
  *
  */
 /* You do not need to divide the size in half here. */
-int o_text_height(char *string, int size) 
+int o_text_height(const char *string, int size) 
 {
   int line_count = 0;
 
@@ -884,7 +884,7 @@ OBJECT *o_text_create_string(TOPLEVEL *toplevel, OBJECT *object_list,
  */
 OBJECT *o_text_add(TOPLEVEL *toplevel, OBJECT *object_list,
 		   char type, int color, int x, int y, int alignment,
-		   int angle, char *string, int size, 
+		   int angle, const char *string, int size, 
 		   int visibility, int show_name_value)
 {
   OBJECT *new_node=NULL;




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs