#include <Python.h>
#include <marshal.h>
#include "pycore_fileutils.h"
#include <pycore_import.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifndef MS_WINDOWS
# include <unistd.h>
#endif
static const struct _frozen no_modules[] = …;
static const struct _module_alias aliases[] = …;
const struct _frozen *_PyImport_FrozenBootstrap;
const struct _frozen *_PyImport_FrozenStdlib;
const struct _frozen *_PyImport_FrozenTest;
const struct _frozen *PyImport_FrozenModules;
const struct _module_alias *_PyImport_FrozenAliases;
static const char header[] = …;
static void
runtime_init(void)
{ … }
static const char *
read_text(const char *inpath)
{ … }
static PyObject *
compile_and_marshal(const char *name, const char *text)
{ … }
static char *
get_varname(const char *name, const char *prefix)
{ … }
static void
write_code(FILE *outfile, PyObject *marshalled, const char *varname)
{ … }
static int
write_frozen(const char *outpath, const char *inpath, const char *name,
PyObject *marshalled)
{ … }
int
main(int argc, char *argv[])
{ … }