1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-20 07:34:49 +00:00

Merge pull request #329 from pepe/master

Fix typo flie
This commit is contained in:
Calvin Rose 2020-03-31 09:17:39 -05:00 committed by GitHub
commit 47f246ba66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2586,22 +2586,22 @@
(print "#define JANET_BUILD \"" janet/build "\"") (print "#define JANET_BUILD \"" janet/build "\"")
(print ```#define JANET_AMALG```) (print ```#define JANET_AMALG```)
(defn do-one-flie (defn do-one-file
[fname] [fname]
(print "\n/* " fname " */") (print "\n/* " fname " */")
(print "#line 0 \"" fname "\"\n") (print "#line 0 \"" fname "\"\n")
(def source (slurp fname)) (def source (slurp fname))
(print (string/replace-all "\r" "" source))) (print (string/replace-all "\r" "" source)))
(do-one-flie feature-header) (do-one-file feature-header)
(print ```#include "janet.h"```) (print ```#include "janet.h"```)
(each h local-headers (each h local-headers
(do-one-flie h)) (do-one-file h))
(each s core-sources (each s core-sources
(do-one-flie s)) (do-one-file s))
# Create C source file that contains images a uint8_t buffer. This # Create C source file that contains images a uint8_t buffer. This
# can be compiled and linked statically into the main janet library # can be compiled and linked statically into the main janet library