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
Make functions public, they are need by macros SMPI_SAMPLE_{DELAY,FLOPS}.
[simgrid.git]
/
src
/
smpi
/
smpif2c.in
diff --git
a/src/smpi/smpif2c.in
b/src/smpi/smpif2c.in
index
c620b38
..
0a48d50
100755
(executable)
--- a/
src/smpi/smpif2c.in
+++ b/
src/smpi/smpif2c.in
@@
-25,7
+25,6
@@
foreach my $fortran (@ARGV) {
die "F2C failed\n" if $?;
open F2C,"<$output" or die "Unable to open file $output";
my $started = 0;
die "F2C failed\n" if $?;
open F2C,"<$output" or die "Unable to open file $output";
my $started = 0;
- my $cutext = 0;
print $tmp "#ifndef INTEGER_STAR_8\n";
print $tmp "#define INTEGER_STAR_8\n";
print $tmp "#endif\n";
print $tmp "#ifndef INTEGER_STAR_8\n";
print $tmp "#define INTEGER_STAR_8\n";
print $tmp "#endif\n";
@@
-52,17
+51,9
@@
foreach my $fortran (@ARGV) {
if(/\/\* Table of constant values \*\// || /MAIN__/) {
$started = 0;
}
if(/\/\* Table of constant values \*\// || /MAIN__/) {
$started = 0;
}
- if(/extern \/\* Subroutine \*\//) {
- $cutext = 1;
- }
- if($cutext) {
- if(/;$/) {
- $cutext = 0;
- }
- next;
- }
+ $_ =~ s/(mpi_[\w]*_)_/$1/g;
if(/\/* Main program alias \*\/\s*int\s+.*\s*\(\s*\)\s*{(.*)}/) {
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";
}