A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new attempt to stabilize the use of underscores on f90/f77/f2c
[simgrid.git]
/
src
/
smpi
/
smpif2c.in
diff --git
a/src/smpi/smpif2c.in
b/src/smpi/smpif2c.in
index
2b77445
..
4b99f2b
100755
(executable)
--- a/
src/smpi/smpif2c.in
+++ b/
src/smpi/smpif2c.in
@@
-55,6
+55,7
@@
foreach my $fortran (@ARGV) {
if(/extern \/\* Subroutine \*\//) {
$cutext = 1;
}
if(/extern \/\* Subroutine \*\//) {
$cutext = 1;
}
+ $_ =~ s/(mpi_[\w]*_)_/$1/g;
if($cutext) {
if(/;$/) {
$cutext = 0;
if($cutext) {
if(/;$/) {
$cutext = 0;
@@
-62,7
+63,7
@@
foreach my $fortran (@ARGV) {
next;
}
if(/\/* Main program alias \*\/\s*int\s+.*\s*\(\s*\)\s*{(.*)}/) {
next;
}
if(/\/* Main program alias \*\/\s*int\s+.*\s*\(\s*\)\s*{(.*)}/) {
- $_ = "int smpi_simulated_main_
_
(int argc, char** argv) { smpi_process_init(&argc, &argv); $1 }\n";
+ $_ = "int smpi_simulated_main_(int argc, char** argv) { smpi_process_init(&argc, &argv); $1 }\n";
}
print $tmp "$_\n";
}
}
print $tmp "$_\n";
}