Skip to content

Commit 10bdf73

Browse files
authoredJul 24, 2018
Merge pull request #1266 from ziglang/self-hosted-libc-hello-world
Self hosted libc hello world
2 parents 99153ac + 72599d4 commit 10bdf73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5624
-1204
lines changed
 

‎CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ set(ZIG_SOURCES
426426
)
427427
set(ZIG_CPP_SOURCES
428428
"${CMAKE_SOURCE_DIR}/src/zig_llvm.cpp"
429+
"${CMAKE_SOURCE_DIR}/src/windows_sdk.cpp"
429430
)
430431

431432
set(ZIG_STD_FILES
@@ -489,6 +490,7 @@ set(ZIG_STD_FILES
489490
"math/atan.zig"
490491
"math/atan2.zig"
491492
"math/atanh.zig"
493+
"math/big/index.zig"
492494
"math/big/int.zig"
493495
"math/cbrt.zig"
494496
"math/ceil.zig"
@@ -566,8 +568,14 @@ set(ZIG_STD_FILES
566568
"os/linux/x86_64.zig"
567569
"os/path.zig"
568570
"os/time.zig"
571+
"os/windows/advapi32.zig"
569572
"os/windows/error.zig"
570573
"os/windows/index.zig"
574+
"os/windows/kernel32.zig"
575+
"os/windows/ole32.zig"
576+
"os/windows/shell32.zig"
577+
"os/windows/shlwapi.zig"
578+
"os/windows/user32.zig"
571579
"os/windows/util.zig"
572580
"os/zen.zig"
573581
"rand/index.zig"
@@ -616,6 +624,7 @@ set(ZIG_STD_FILES
616624
"zig/ast.zig"
617625
"zig/index.zig"
618626
"zig/parse.zig"
627+
"zig/parse_string_literal.zig"
619628
"zig/render.zig"
620629
"zig/tokenizer.zig"
621630
)

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ clarity.
2121
* Compatible with C libraries with no wrapper necessary. Directly include
2222
C .h files and get access to the functions and symbols therein.
2323
* Provides standard library which competes with the C standard library and is
24-
always compiled against statically in source form. Compile units do not
24+
always compiled against statically in source form. Zig binaries do not
2525
depend on libc unless explicitly linked.
26-
* Nullable type instead of null pointers.
26+
* Optional type instead of null pointers.
2727
* Safe unions, tagged unions, and C ABI compatible unions.
2828
* Generics so that one can write efficient data structures that work for any
2929
data type.
3030
* No header files required. Top level declarations are entirely
3131
order-independent.
3232
* Compile-time code execution. Compile-time reflection.
33-
* Partial compile-time function evaluation with eliminates the need for
33+
* Partial compile-time function evaluation which eliminates the need for
3434
a preprocessor or macros.
3535
* The binaries produced by Zig have complete debugging information so you can,
36-
for example, use GDB or MSVC to debug your software.
36+
for example, use GDB, MSVC, or LLDB to debug your software.
3737
* Built-in unit tests with `zig test`.
3838
* Friendly toward package maintainers. Reproducible build, bootstrapping
3939
process carefully documented. Issues filed by package maintainers are

0 commit comments

Comments
 (0)
Please sign in to comment.