mirror of
https://github.com/janet-lang/janet
synced 2024-12-25 07:50:27 +00:00
Try to remove build issues on windows.
This commit is contained in:
parent
3b94adc7f3
commit
6185af7227
@ -27,7 +27,7 @@
|
||||
|
||||
/* Generated bytes */
|
||||
extern const unsigned char *janet_gen_core;
|
||||
extern size_t janet_gen_core_size;
|
||||
extern int32_t janet_gen_core_size;
|
||||
|
||||
/* Use LoadLibrary on windows or dlopen on posix to load dynamic libaries
|
||||
* with native code. */
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "line.h"
|
||||
|
||||
extern const unsigned char *janet_gen_init;
|
||||
extern size_t janet_gen_init_size;
|
||||
extern int32_t janet_gen_init_size;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int i, status;
|
||||
|
@ -36,7 +36,7 @@ int main(int argc, const char **argv) {
|
||||
static const char hex[] = "0123456789ABCDEF";
|
||||
char buf[BUFSIZE];
|
||||
size_t bytesRead = 0;
|
||||
size_t totalRead = 0;
|
||||
int32_t totalRead = 0;
|
||||
int lineIndex = 0;
|
||||
int line = 0;
|
||||
|
||||
@ -59,7 +59,7 @@ int main(int argc, const char **argv) {
|
||||
}
|
||||
|
||||
/* Write the header */
|
||||
fprintf(out, "/* Auto generated - DO NOT EDIT */\n\n#include <stddef.h>\n\n");
|
||||
fprintf(out, "/* Auto generated - DO NOT EDIT */\n\n#include <stdint.h>\n\n");
|
||||
fprintf(out, "static const unsigned char bytes[] = {");
|
||||
|
||||
/* Read in chunks from buffer */
|
||||
@ -94,7 +94,7 @@ int main(int argc, const char **argv) {
|
||||
fprintf(out, "const unsigned char *%s = bytes;\n\n", argv[3]);
|
||||
|
||||
/* Write chunk size */
|
||||
fprintf(out, "size_t %s_size = %ld;\n", argv[3], totalRead);
|
||||
fprintf(out, "int32_t %s_size = %d;\n", argv[3], totalRead);
|
||||
|
||||
/* Close the file handles */
|
||||
fclose(in);
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <emscripten.h>
|
||||
|
||||
extern const unsigned char *janet_gen_webinit;
|
||||
extern size_t janet_gen_webinit_size;
|
||||
extern int32_t janet_gen_webinit_size;
|
||||
|
||||
static JanetFiber *repl_fiber = NULL;
|
||||
static JanetBuffer *line_buffer = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user