9 This file was auto-generated by Meson from zip.h and zipint.h
14 #define L ZIP_ET_LIBZIP
19 #define E ZIP_DETAIL_ET_ENTRY
20 #define G ZIP_DETAIL_ET_GLOBAL
22 const struct _zip_err_info _zip_err_str[] = {{
26 const int _zip_err_str_count = sizeof(_zip_err_str)/sizeof(_zip_err_str[0]);
28 const struct _zip_err_info _zip_err_details[] = {{
32 const int _zip_err_details_count = sizeof(_zip_err_details)/sizeof(_zip_err_details[0]);
35 zip_err_str_c = sys.argv[1]
37 zipint_h = sys.argv[3]
40 return x[x.index(
'/* ') + 3:x.index(
'*/')]
44 val = comment.split(
' ')[0]
45 comment_str = comment.split(
' ')[1]
46 return f
'{{{val}, "{comment_str}"}}'
50 val = comment.split(
' ')[0]
51 comment_str = comment.split(
' ')[1]
52 return f
'{{{val}, "{comment_str}"}}'
54 defines = [l
for l
in open(zip_h,
'r').
read().split(
'\n')
if l.startswith(
'#define ZIP_ER')]
55 zip_err_strs =
'\n'.join([
def2errstr(x) +
',' for x
in defines])
57 defines = [l
for l
in open(zipint_h,
'r').
read().split(
'\n')
if l.startswith(
'#define ZIP_ER_DETAIL')]
60 open(zip_err_str_c,
'w').
write(TEMPLATE.format(zip_err_strs=zip_err_strs, zip_err_details=zip_err_details))
int read(izstream &zs, T *x, Items items)