Finish move of prewarm launcher into its own compilation unit

This commit is contained in:
Kovid Goyal
2022-07-05 19:18:36 +05:30
parent 4195c239c8
commit 09ddbbf600
3 changed files with 15 additions and 11 deletions

View File

@@ -5,8 +5,6 @@
* Distributed under terms of the GPL3 license.
*/
#include "prewarm-launcher.h"
#include <libgen.h>
#ifdef __APPLE__
#include <mach-o/dyld.h>
@@ -15,6 +13,8 @@
#else
#include <limits.h>
#endif
#include <stdbool.h>
#include <stdint.h>
#include <wchar.h>
#include <Python.h>
@@ -268,6 +268,8 @@ read_exe_path(char *exe, size_t buf_sz) {
}
#endif // }}}
extern void use_prewarmed_process(int argc, char *argv[]);
int main(int argc, char *argv[]) {
if (argc < 1 || !argv) { fprintf(stderr, "Invalid argc/argv\n"); return 1; }
use_prewarmed_process(argc, argv);