X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ce045b1504ee39403d038b7f744430ed973ada1d..903b1504798f9d6f6f5e7ec43545341bb88c38fe:/tools/smpi/generate_smpi_defines.pl diff --git a/tools/smpi/generate_smpi_defines.pl b/tools/smpi/generate_smpi_defines.pl index 7aa83d9299..64d1710a98 100755 --- a/tools/smpi/generate_smpi_defines.pl +++ b/tools/smpi/generate_smpi_defines.pl @@ -1,5 +1,6 @@ #!/usr/bin/env perl # Copyright 2016 Vincent Danjean +# Christian Heinrich # # Call this script like this: # C/C++ : ./generate_smpi_defines.pl ../../include/smpi/smpi.h @@ -37,7 +38,8 @@ sub output_macro { # This is a GCC extension. The last statement is the value of the expression # in parentheses. if (defined $options{f}) { - print "#define ". uc($id) ." smpi_trace_set_call_location(__FILE__,__LINE__); call ". lc $id ."\n"; + print "#define ". lc($id) ." smpi_trace_set_call_location(__FILE__,__LINE__); call ". ucfirst $id ."\n"; + print "#define ". uc($id) ." smpi_trace_set_call_location(__FILE__,__LINE__); call ". ucfirst $id ."\n"; } else { if ($id eq "MPI_Init") {