Generate table short libname to numeric code.
(args)
| 158 | |
| 159 | |
| 160 | def gen_library_codes(args): |
| 161 | """Generate table short libname to numeric code.""" |
| 162 | yield "/* generated from args.lib2errnum */" |
| 163 | yield "static struct py_ssl_library_code library_codes[] = {" |
| 164 | for libname in sorted(args.lib2errnum): |
| 165 | yield f"#ifdef ERR_LIB_{libname}" |
| 166 | yield f' {{"{libname}", ERR_LIB_{libname}}},' |
| 167 | yield "#endif" |
| 168 | yield " {NULL, 0} /* sentinel */" |
| 169 | yield "};" |
| 170 | |
| 171 | |
| 172 | def gen_error_codes(args): |
no outgoing calls
no test coverage detected
searching dependent graphs…