Commit Graph

1589 Commits (7ddc259acc2c66057cf8f977e80b971c6375d8af)

Author SHA1 Message Date
Andrew Kelley 7ddc259acc add SoftFloat-3d 2017-09-14 01:46:22 -04:00
Jonathan Marler bb44e4b479 Fixed a couple compilation errors for MSVC 64-bit (#475) 2017-09-13 23:59:09 -04:00
Andrew Kelley d9eabde319 add Child property of slice type
also rename child field to Child for pointer and array
2017-09-13 14:30:57 -04:00
Andrew Kelley 5931a6b1a5 Merge branch 'msvc'
Now the supported compilers of Zig are:

 * GCC
 * Clang
 * MSVC
 * MinGW
2017-09-13 02:42:00 -04:00
Andrew Kelley 57ea6e8c9f fix up msvc stuff to make it work on linux and macos too 2017-09-13 02:40:02 -04:00
Jonathan Marler 67021e2bff Modified cmake to use LLVM imported packages. 2017-09-11 18:27:41 -06:00
Jonathan Marler 7c81cd30de Add support for MSVC 2017-09-11 09:26:26 -06:00
jean-dao 373785ae8d c macros: support hex chars (#459)
* c macros: remove add_char redundancies

* c macros: support hex chars

* c macros: add test for hex chars
2017-09-10 16:35:56 -04:00
Andrew Kelley 4f44d49925 fix uninitialized variable 2017-09-10 15:01:37 -04:00
Andrew Kelley 011df61f8a fix not verifying GlobalLinkage and AtomicOrder types
thanks to aep4Ayai on IRC
2017-09-10 14:04:19 -04:00
Jonathan Marler 3f8b26c06a Allow INVALID_HANDLE_VALUE for windows to work on 32-bit and 64-bit. (#457) 2017-09-10 11:16:27 -04:00
jean-dao 0f7544cfca std.io.InStream: add readLine function (#458) 2017-09-10 11:10:55 -04:00
Andrew Kelley b00b7bd290 variables are allowed to be pointers to opaque 2017-09-10 00:34:44 -04:00
Andrew Kelley b5d9584e6f support parens in C macros
closes #454
2017-09-10 00:20:09 -04:00
Andrew Kelley 9dfbdeace6 add import test 2017-09-09 22:54:50 -04:00
Andrew Kelley 4c78142af1 rename some behavior tests 2017-09-09 22:53:32 -04:00
Andrew Kelley bc0a60c7a6 more compile errors for non-const variables of things
closes #456
2017-09-09 22:46:08 -04:00
Andrew Kelley 5fdf3fa195 std.fmt knows how to format &[N]u8 2017-09-09 19:42:31 -04:00
Andrew Kelley 120e2fdf8b build: add more search paths for libclang
thanks @smaeul
2017-09-09 17:17:36 -04:00
Marc Tiehuis f725b20de6 Add appendSlice function (#448) 2017-09-09 13:49:40 -04:00
Marc Tiehuis 67a31befa6 Add exit function (#450) 2017-09-09 13:48:44 -04:00
Jonathan Marler 850a1d2054 Switched find order for llvm, means it will choose llvm version 5.0 before any other version. (#446) 2017-09-08 17:08:24 -04:00
Andrew Kelley d244deb59e fix std.Buffer.endsWith
thanks for the report by jean-dao

closes #443
2017-09-08 09:19:02 -04:00
Andrew Kelley 2c8ff1d47b std.ChildProcess.spawn: handle 0 from waitpid correctly 2017-09-08 01:23:48 -04:00
Andrew Kelley 838d52a8be std.os.ChildProcess: don't expect all SIGCHLD to come from spawn 2017-09-08 00:45:45 -04:00
Andrew Kelley a81e516174 fix ChildProcess.spawn on darwin 2017-09-08 00:04:43 -04:00
Andrew Kelley 9fb4d1fd6c std: os.ChildProcess knows when its child died
using signal handlers
2017-09-07 23:10:51 -04:00
Andrew Kelley 9dfaf3166d README: add notepad++ syntax highlighting project
closes #442
2017-09-07 17:31:26 -04:00
Andrew Kelley 9f7e62b95b std: add ChildProcess.kill 2017-09-06 18:30:45 -04:00
Andrew Kelley 7e59f4ff69 std: add os.sleep 2017-09-06 16:59:22 -04:00
Andrew Kelley 1f2548ec5f better build.zig template 2017-09-06 14:18:14 -04:00
Andrew Kelley e7c3aa7f7c parsec: turn panics into warnings 2017-09-06 01:00:42 -04:00
Andrew Kelley 4b6e278028 travis: use embedded LLD and perform all tests
apt.llvm.org has a new enough LLVM build for trusty
2017-09-05 22:55:56 -04:00
Andrew Kelley 2c9bdad346 rename parseh to parsec 2017-09-05 22:55:03 -04:00
Andrew Kelley 48c44615a4 Merge branch 'c-to-zig' 2017-09-05 18:51:48 -04:00
Andrew Kelley 3ff465e288 add OpaqueType builtin
closes #326
2017-09-05 18:51:07 -04:00
Andrew Kelley c3362c1cb6 fix void return node and param name nodes, fix dupe macros
all tests passing
2017-09-05 03:11:59 -04:00
Andrew Kelley 87970920c4 parseh: fix duplicate definitions 2017-09-05 02:34:06 -04:00
Andrew Kelley 5c386f9911 parseh: remove unneeded hash tables 2017-09-05 01:22:26 -04:00
Andrew Kelley f6c271f8eb parseh tests passing 2017-09-05 00:52:05 -04:00
Andrew Kelley b64843bf70 parseh: fix generating functions from macros 2017-09-05 00:45:09 -04:00
Andrew Kelley cc621cdee3 fix parseh bugs 2017-09-05 00:21:02 -04:00
Andrew Kelley e1d5da20a5 rewrite parseh to use AST instead of direct types
some tests still failing
2017-09-02 04:11:23 -04:00
Josh Wolfe 0f38955ee5 translate while loops and implicit bitcasts 2017-09-01 12:51:45 -07:00
Josh Wolfe fa8912ab78 translate some variable declaration cases 2017-09-01 12:03:21 -07:00
Josh Wolfe 7e1bf6d29b progress toward variable declaration translation 2017-09-01 11:45:06 -07:00
Josh Wolfe a260cfa4dd Merge remote-tracking branch 'origin/c-to-zig' into c-to-zig 2017-09-01 11:42:48 -07:00
Josh Wolfe 0d0fffe4d2 start implementing variable declaration translation 2017-09-01 11:39:48 -07:00
Andrew Kelley 80d75cf3bf here, have trans_qual_type 2017-09-01 14:39:17 -04:00
Andrew Kelley 60bdbe5405 parseh: emit_warning takes SourceLocation 2017-09-01 13:39:16 -04:00