From: Arnaud Giersch Date: Wed, 28 Mar 2012 14:56:31 +0000 (+0200) Subject: Backslashes should be doubled in C strings. X-Git-Tag: v3_7~169 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bac023bb1c1ebfc6909be7f4c1fd4927949eda1c Backslashes should be doubled in C strings. Fix xbt_log_extract_hierarchy accordingly. --- diff --git a/src/gras/gras.c b/src/gras/gras.c index 994ab25f20..b0a652dfdb 100644 --- a/src/gras/gras.c +++ b/src/gras/gras.c @@ -26,7 +26,7 @@ #include "portable.h" /* hexa_*(); signalling stuff */ XBT_LOG_NEW_DEFAULT_CATEGORY(gras, - "All GRAS categories (cf. section \ref GRAS_API)"); + "All GRAS categories (cf. section \\ref GRAS_API)"); static int gras_running_process = 0; #if defined(HAVE_SIGNAL) && defined(HAVE_SIGNAL_H) static void gras_sigusr_handler(int sig) diff --git a/tools/doxygen/xbt_log_extract_hierarchy.pl b/tools/doxygen/xbt_log_extract_hierarchy.pl index 7b545500da..f61b020ed3 100755 --- a/tools/doxygen/xbt_log_extract_hierarchy.pl +++ b/tools/doxygen/xbt_log_extract_hierarchy.pl @@ -40,6 +40,7 @@ sub cleanup_ctn { } else { die "Unparsable content: $ctn\n"; } + $elms[2] =~ s/\\\\/\\/gs; return @elms; }