Patch for missing implementations of function prototypes.



Patches attached.

Havoc Pennington wrote:
> 
> "Sam O'Connor" <oconnor@eiffel.com> writes:
> > We would like
> > out customers to be able to type make, have the wrapper
> > library built along with the application that uses it,
> > and not have to change it by hand to remove the undefined
> > functions.
> >
> 
> Your wrapper-generator should be able to trivially special-case these
> functions, I hope this isn't more than a few lines of code, so
> hopefully it doesn't actually matter for your customers.
> 
> Most likely a patch to clean it up would be accepted of course.
> 
> Havoc
> 
> --
>          To unsubscribe: mail gtk-devel-list-request@redhat.com with
>                        "unsubscribe" as the Subject.
diff -c -r gtk+-1.2.7/gdk/gdk.h gtk+-1.2.7.patched/gdk/gdk.h
*** gtk+-1.2.7/gdk/gdk.h	Wed Feb 16 03:18:01 2000
--- gtk+-1.2.7.patched/gdk/gdk.h	Wed Feb 16 15:47:57 2000
***************
*** 710,724 ****
  			  gint		ydest,
  			  gint		width,
  			  gint		height);
- void gdk_draw_bitmap	 (GdkDrawable  *drawable,
- 			  GdkGC	       *gc,
- 			  GdkDrawable  *src,
- 			  gint		xsrc,
- 			  gint		ysrc,
- 			  gint		xdest,
- 			  gint		ydest,
- 			  gint		width,
- 			  gint		height);
  void gdk_draw_image	 (GdkDrawable  *drawable,
  			  GdkGC	       *gc,
  			  GdkImage     *image,
--- 710,715 ----
diff -c -r gtk+-1.2.7/gtk/gtkaccelgroup.h gtk+-1.2.7.patched/gtk/gtkaccelgroup.h
*** gtk+-1.2.7/gtk/gtkaccelgroup.h	Mon Aug 23 12:40:33 1999
--- gtk+-1.2.7.patched/gtk/gtkaccelgroup.h	Wed Feb 16 15:48:32 2000
***************
*** 158,171 ****
  guint		gtk_accel_group_create_remove	(GtkType	 class_type,
  						 GtkSignalRunType signal_flags,
  						 guint		 handler_offset);
- void		gtk_accel_group_marshal_add	(GtkObject	*object,
- 						 GtkSignalFunc	 func,
- 						 gpointer	 func_data,
- 						 GtkArg		*args);
- void		gtk_accel_group_marshal_remove	(GtkObject	*object,
- 						 GtkSignalFunc	 func,
- 						 gpointer	 func_data,
- 						 GtkArg		*args);
  
  /* Miscellaneous (internal)
   */
--- 158,163 ----
diff -c -r gtk+-1.2.7/gtk/gtkthemes.h gtk+-1.2.7.patched/gtk/gtkthemes.h
*** gtk+-1.2.7/gtk/gtkthemes.h	Wed Feb 16 03:18:08 2000
--- gtk+-1.2.7.patched/gtk/gtkthemes.h	Wed Feb 16 15:49:03 2000
***************
*** 81,99 ****
  void            gtk_theme_engine_ref   (GtkThemeEngine *engine);
  void            gtk_theme_engine_unref (GtkThemeEngine *engine);
  
- #ifdef __cplusplus
- extern "C" {
- #endif /* __cplusplus */
- 
- /* Initialization, exit, mainloop and miscellaneous routines
-  */
- void	   gtk_themes_init	 (int	       *argc,
- 				  char	     ***argv);
- void	   gtk_themes_exit	 (gint		error_code);
- 
- #ifdef __cplusplus
- }
- #endif /* __cplusplus */
- 
  
  #endif /* __GTK_THEMES_H__ */
--- 81,85 ----
diff -c -r glib-1.2.7/glib.h glib-1.2.7.patched/glib.h
*** glib-1.2.7/glib.h	Wed Feb 16 03:00:59 2000
--- glib-1.2.7.patched/glib.h	Wed Feb 16 16:03:16 2000
***************
*** 2684,2695 ****
  GUTILS_C_VAR gboolean		g_thread_use_default_impl;
  GUTILS_C_VAR gboolean		g_threads_got_initialized;
  
- /* initializes the mutex/cond/private implementation for glib, might
-  * only be called once, and must not be called directly or indirectly
-  * from another glib-function, e.g. as a callback.
-  */
- void	g_thread_init	(GThreadFunctions	*vtable);
- 
  /* internal function for fallback static mutex implementation */
  GMutex*	g_static_mutex_get_mutex_impl	(GMutex	**mutex);
  
--- 2684,2689 ----
diff -c -r glib-1.2.7/gmain.c glib-1.2.7.patched/gmain.c
*** glib-1.2.7/gmain.c	Wed Feb 16 03:00:59 2000
--- glib-1.2.7.patched/gmain.c	Wed Feb 16 16:10:06 2000
***************
*** 1386,1389 ****
--- 1386,1397 ----
  g_idle_remove_by_data (gpointer data)
  {
    return g_source_remove_by_funcs_user_data (&idle_funcs, data);
+ 
+ }
+ 
+ /* Prevent symbol not defined  errors for binding writers */
+ 
+ void
+ glib_dummy_decl (void)
+ {
  }


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