Skip to content

Commit

Permalink
Merge pull request JuliaParallel#158 from JuliaParallel/eschnett/deps
Browse files Browse the repository at this point in the history
Use String instead of ASCIIString in auto-generated code
  • Loading branch information
eschnett committed Jun 4, 2016
2 parents 25d3570 + 4c85e3b commit 187f122
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deps/gen_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ typedef int check_sizeof_MPI_Aint[sizeof(MPI_Aint) == sizeof(ptrdiff_t) ? 1 : -1
#define STRING(s) STRING1(s)

int main(int argc, char *argv[]) {
printf("using Compat\n");
printf("import Compat.String\n");
printf("\n");
printf("const WRAPPER_VERSION = \"%s\"\n", VERSION);
printf("\n");
printf("const _mpi_functions = Dict{Symbol, ASCIIString}(\n");
printf("const _mpi_functions = Dict{Symbol, String}(\n");
printf(" :MPI_ABORT => \"%s\",\n", STRING(MPI_ABORT));
printf(" :MPI_ALLGATHER => \"%s\",\n", STRING(MPI_ALLGATHER));
printf(" :MPI_ALLGATHERV => \"%s\",\n", STRING(MPI_ALLGATHERV));
Expand Down

0 comments on commit 187f122

Please sign in to comment.