[Spice-devel] [spice-gtk 4/5] Tell ctags to ignore G_GNUC_CONST in declarations

Marc-André Lureau mlureau at redhat.com
Wed Oct 29 08:08:23 PDT 2014


ack

----- Mail original -----
> Without that, it will fail to parse:
> GType spice_uri_get_type(void) G_GNUC_CONST;
> ---
>  gtk/Makefile.am | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/gtk/Makefile.am b/gtk/Makefile.am
> index 1430354..7bc5842 100644
> --- a/gtk/Makefile.am
> +++ b/gtk/Makefile.am
> @@ -677,13 +677,13 @@ endif
>  update-symbol-files:
>  	( echo "SPICEGTK_1 {" ; \
>  	  echo "global:" ; \
> -	  ctags -f - --c-kinds=p $(libspice_client_gtkinclude_HEADERS)
> $(nodist_libspice_client_gtkinclude_HEADERS)
> $(libspice_client_glibinclude_HEADERS)
> $(nodist_libspice_client_glibinclude_HEADERS) | awk '/^spice_/ { print $$1
> ";" }' | sort ; \
> +	  ctags -f - -I G_GNUC_CONST --c-kinds=p
> $(libspice_client_gtkinclude_HEADERS)
> $(nodist_libspice_client_gtkinclude_HEADERS)
> $(libspice_client_glibinclude_HEADERS)
> $(nodist_libspice_client_glibinclude_HEADERS) | awk '/^spice_/ { print $$1
> ";" }' | sort ; \
>  	  echo "local:" ;  \
>  	  echo "*;" ; \
>  	  echo "};" ) > $(srcdir)/map-file
> -	( ctags -f - --c-kinds=p $(libspice_client_glibinclude_HEADERS)
> $(nodist_libspice_client_glibinclude_HEADERS) | awk '/^spice_/ { print $$1
> }' | sort ; \
> +	( ctags -f - -I G_GNUC_CONST --c-kinds=p
> $(libspice_client_glibinclude_HEADERS)
> $(nodist_libspice_client_glibinclude_HEADERS) | awk '/^spice_/ { print $$1
> }' | sort ; \
>  	) > $(srcdir)/spice-glib-sym-file
> -	( ctags -f - --c-kinds=p $(libspice_client_gtkinclude_HEADERS)
> $(nodist_libspice_client_gtkinclude_HEADERS) | awk '/^spice_/ { print $$1 }'
> | sort ; \
> +	( ctags -f - -I G_GNUC_CONST --c-kinds=p
> $(libspice_client_gtkinclude_HEADERS)
> $(nodist_libspice_client_gtkinclude_HEADERS) | awk '/^spice_/ { print $$1 }'
> | sort ; \
>  	) > $(srcdir)/spice-gtk-sym-file
>  
>  -include $(top_srcdir)/git.mk
> --
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list