@@ -120,10 +120,6 @@ $sed -i 's!#include "fstar_uint128_struct_endianness.h"!#include "krml/fstar_uin
120120#  use KRML_VERIFIED_UINT128
121121$sed  -i -z ' s!#define KRML_TYPES_H!#define KRML_TYPES_H\n#define KRML_VERIFIED_UINT128!g'   include/krml/internal/types.h
122122
123- #  FStar_UInt_8_16_32_64 contains definitions useful in the general case, but not
124- #  for us; trim!
125- $sed  -i -z ' s!\(extern\|typedef\)[^;]*;\n\n!!g'   include/krml/FStar_UInt_8_16_32_64.h
126- 
127123#  This contains static inline prototypes that are defined in
128124#  FStar_UInt_8_16_32_64; they are by default repeated for safety of separate
129125#  compilation, but this is not necessary.
@@ -132,13 +128,6 @@ $sed -i 's!#include.*Hacl_Krmllib.h"!!g' "${all_files[@]}"
132128#  Use globally unique names for the Hacl_ C APIs to avoid linkage conflicts.
133129$sed  -i -z ' s!#include <string.h>!#include <string.h>\n#include "python_hacl_namespaces.h"!'   Hacl_Hash_* .h
134130
135- #  Finally, we remove a bunch of ifdefs from target.h that are, again, useful in
136- #  the general case, but not exercised by the subset of HACL* that we vendor.
137- $sed  -z -i ' s!#ifndef KRML_\(HOST_TIME\)\n\(\n\|#  [^\n]*\n\|[^#][^\n]*\n\)*#endif\n\n!!g'   include/krml/internal/target.h
138- $sed  -z -i ' s!\n\n\([^#][^\n]*\n\)*#define KRML_\(EABORT\|EXIT\)[^\n]*\(\n  [^\n]*\)*!!g'   include/krml/internal/target.h
139- $sed  -z -i ' s!\n\n\([^#][^\n]*\n\)*#if [^\n]*\n\(  [^\n]*\n\)*#define  KRML_\(EABORT\|EXIT\|CHECK_SIZE\)[^\n]*\(\n  [^\n]*\)*!!g'   include/krml/internal/target.h
140- $sed  -z -i ' s!\n\n\([^#][^\n]*\n\)*#if [^\n]*\n\(  [^\n]*\n\)*#  define _\?KRML_\(DEPRECATED\|HOST_SNPRINTF\)[^\n]*\n\([^#][^\n]*\n\|#el[^\n]*\n\|#  [^\n]*\n\)*#endif!!g'   include/krml/internal/target.h
141- 
142131#  Step 3: trim whitespace (for the linter)
143132
144133find .  -name ' *.c'   -or -name ' *.h'   |  xargs $sed  -i ' s![[:space:]]\+$!!' 
0 commit comments