From 588e61dab6123f37be1a7bc660ffca7d36735eb7 Mon Sep 17 00:00:00 2001 From: Reijo Keskitalo Date: Thu, 21 Dec 2017 10:04:45 -0800 Subject: [PATCH 1/3] Replace nonstandard malloc.h with stdlib.h --- libsharp/sharp_legendre.c.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsharp/sharp_legendre.c.in b/libsharp/sharp_legendre.c.in index 63c84b7..cd65012 100644 --- a/libsharp/sharp_legendre.c.in +++ b/libsharp/sharp_legendre.c.in @@ -64,7 +64,7 @@ #include "sharp_legendre.h" #include "sharp_vecsupport.h" -#include +#include /*{ for scalar, T in [("double", ""), ("float", "_s")] }*/ /*{ for cs in range(1, 7) }*/ From c3971099b32820683210f549214abd5c09d08a52 Mon Sep 17 00:00:00 2001 From: Reijo Keskitalo Date: Thu, 21 Dec 2017 10:10:46 -0800 Subject: [PATCH 2/3] Python3 requires encoding the input string. Compatible with (at least) Python2.7 --- runjinja.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runjinja.py b/runjinja.py index fd659fa..fb06737 100755 --- a/runjinja.py +++ b/runjinja.py @@ -15,5 +15,5 @@ env = Environment(block_start_string='/*{', extra_vars = dict(len=len) input = sys.stdin.read() -sys.stdout.write('/* DO NOT EDIT. md5sum of source: %s */' % hashlib.md5(input).hexdigest()) +sys.stdout.write('/* DO NOT EDIT. md5sum of source: %s */' % hashlib.md5(input.encode()).hexdigest()) sys.stdout.write(env.from_string(input).render(**extra_vars)) From 66cac8ccc91b87debb4d3d5f4b75b4cc55679e62 Mon Sep 17 00:00:00 2001 From: Reijo Keskitalo Date: Thu, 21 Dec 2017 10:11:10 -0800 Subject: [PATCH 3/3] New copy of the pre-processed sharp_legendre.c --- libsharp/sharp_legendre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsharp/sharp_legendre.c b/libsharp/sharp_legendre.c index cd54101..24d69b6 100644 --- a/libsharp/sharp_legendre.c +++ b/libsharp/sharp_legendre.c @@ -1,4 +1,4 @@ -/* DO NOT EDIT. md5sum of source: d9499375a254cbf1e7903a249a8676ff *//* +/* DO NOT EDIT. md5sum of source: a8c5c18a7a19c378187dbf461d12eb5c *//* NOTE NOTE NOTE @@ -64,7 +64,7 @@ #include "sharp_legendre.h" #include "sharp_vecsupport.h" -#include +#include