100 Commits

Author SHA1 Message Date
LemonBoy
3640c682a2 Run zig fmt 2020-02-01 11:32:53 +01:00
Andrew Kelley
0cc2489d22
Merge pull request #4317 from Vexu/std-c
Add (unfinished) C parser to std lib
2020-01-29 12:13:53 -05:00
Vexu
abd1a7c91c
std-c add todos to unfinished parsing functioins 2020-01-29 12:12:28 +02:00
LemonBoy
d5c2a20d8e Unify the two DWARF interpreters
* Let's consolidate the special-cased DWARF interpreter for OSX with the
  general purpose one

* Drop the assumption that all the debug data is contained in a single
  contiguous slice of memory. This is a good news for freestanding
  targets and paves the way for supporting compressed debug sections.
2020-01-27 09:46:20 -05:00
Vexu
ad327fed05
std-c redo scoping, do string concatanation in parser 2020-01-19 20:44:55 +02:00
daurnimator
72ec445677 std: turn EAI_ constants into a non-exhaustive enum 2020-01-18 17:46:44 -05:00
Vexu
28daddae81
std-c todos and small fixes 2020-01-14 16:18:32 +02:00
Vexu
4c0776b2a5
std-c parse switch 2020-01-11 21:48:12 +02:00
LemonBoy
5ab5de89c0 New @export() handling
Use a struct as second parameter to be future proof (and also allows to
specify default values for the parameters)

Closes #2679 as it was just a matter of a few lines of code.
2020-01-09 13:43:06 -05:00
Vexu
e21ea5bd95
std-c parser loops 2020-01-08 00:00:14 +02:00
Vexu
83b4163591
std-c parser declaratorIsFunction and small fixes 2020-01-07 23:25:38 +02:00
Vexu
8b713ce889
std-c parser add options 2020-01-07 22:43:44 +02:00
Vexu
dbc0457068
std-c declaration parsing 2020-01-07 20:15:57 +02:00
Vexu
4184d4c66a
std-c parser record and enum specifiers 2020-01-07 19:05:46 +02:00
Vexu
df12c1328e
std-c parser typing improvements 2020-01-07 16:05:13 +02:00
Vexu
3ed6d7d245
std-c parser declarator 2020-01-06 20:06:17 +02:00
Vexu
d5d52af26e
std-c parse pointer 2020-01-06 00:06:33 +02:00
Vexu
5feeff7123
std-c improve error reporting and decl parsing 2020-01-05 20:25:52 +02:00
Vexu
795a503999
std-c tokenizer always add newline token 2020-01-05 20:25:51 +02:00
Vexu
f934f9b419
std-c parser fndef and static assert 2020-01-05 20:25:51 +02:00
Vexu
46f292982d
std-c parser DeclSpec 2020-01-05 20:25:51 +02:00
Vexu
25f7f66b8f
std-c type parsing 2020-01-05 20:25:51 +02:00
Vexu
dccf1247b2
std-c ifstmt compoundstmt and errors 2020-01-05 20:25:51 +02:00
Vexu
a20c0b31de
std-c parser and ast organization 2020-01-05 20:25:51 +02:00
Vexu
73a53fa263
std-c outline parser 2020-01-05 20:25:50 +02:00
Vexu
e1b01d32f0
std-c ast base 2020-01-05 20:25:50 +02:00
Vexu
2183c4bb44
std-c tokenizer string concatenation 2020-01-05 20:25:50 +02:00
Vexu
a5d1fb1e49
std-c tokenizer line continuation, tests and fixes 2020-01-05 20:25:50 +02:00
Vexu
c221593d7d
std-c tokenizer better special case handling 2020-01-05 20:25:50 +02:00
Vexu
472ca947c9
std-c tokenizer add tests 2020-01-05 20:25:50 +02:00
Vexu
d75697a6a3
std-c tokenizer keywords 2020-01-05 20:25:50 +02:00
Vexu
26bf410b06
std-c finish tokenizer 2020-01-05 20:25:49 +02:00
Vexu
f14a5287e9
std-c tokenizer strings, floats and comments 2020-01-05 20:25:49 +02:00
Vexu
05acc0b0c1
std-c tokenizer more stuff 2020-01-05 20:25:49 +02:00
Vexu
04b7cec42e
std-c tokenizer base 2020-01-05 20:25:49 +02:00
Luna
13c9faaa2d
c.linux: add memfd_create 2019-12-31 15:58:03 -05:00
Jethro Nederhof
ba1d213f48 freebsd: add missing OS and libc bits 2019-12-22 02:27:23 -05:00
Andrew Kelley
fd6b7b160d
improve dynamic library API 2019-12-10 12:28:28 -05:00
emekoi
29fd727b79
fixed windows dynamic library loading and added loading for darwin 2019-12-10 11:41:54 -05:00
Vexu
bfb15f1c9f fix casts 2019-12-05 15:47:06 -05:00
Andrew Kelley
e0db54e89d
update the codebase to use @as 2019-11-08 15:57:24 -05:00
Andrew Kelley
2723ffc2b2
fixups and zig fmt 2019-11-08 01:52:23 -05:00
daurnimator
6e635c6406
std: close is OSX specific 2019-11-05 02:16:30 +11:00
Andrew Kelley
61d5a0bf48
Merge branch 'std.net' 2019-10-30 21:30:16 -04:00
Tse
33cc204481 DragonFlyBSD support 2019-10-30 21:21:58 -04:00
Andrew Kelley
618ee5b63a fixes for macos and 32 bit arches 2019-10-30 14:43:55 -04:00
Andrew Kelley
d5865f5319
move libc/linux bits around 2019-10-28 15:29:50 -04:00
Andrew Kelley
60cd11bd4b
get rid of std.os.foo.is_the_target
It had the downside of running all the comptime blocks and resolving
all the usingnamespaces of each system, when just trying to discover if
the current system is a particular one.

For Darwin, where it's nice to use `std.Target.current.isDarwin()`, this
demonstrates the utility that #425 would provide.
2019-10-24 01:14:52 -04:00
meme
f7bf61a983 support Android NDK and bionic 2019-09-27 16:51:42 -04:00
Andrew Kelley
ed36dbbd9c
mv std/ lib/
that's all this commit does. further commits will fix cli flags and
such.

see #2221
2019-09-25 23:35:41 -04:00