mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Finish move of prewarm launcher into its own compilation unit
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user