Merge pull request #14 from keskitalo/no_malloc_h

No malloc.h
This commit is contained in:
mreineck 2017-12-22 00:39:45 +01:00 committed by GitHub
commit d24879bc27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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 <malloc.h>
#include <stdlib.h>

View file

@ -64,7 +64,7 @@
#include "sharp_legendre.h"
#include "sharp_vecsupport.h"
#include <malloc.h>
#include <stdlib.h>
/*{ for scalar, T in [("double", ""), ("float", "_s")] }*/
/*{ for cs in range(1, 7) }*/

View file

@ -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))