Delyan Angelov
53c64abdeb
compiler: make compiler an ordinary vlib/compiler module
...
* Move compiler/ under vlib/compiler/ .
* Add a minimal compiler/main.v driver program.
* Cleanup compiler/main.v .
* Make most compiler tests pass again.
* Apply the fix by @joe-conigliaro , so that the rest of the compiler tests are fixed too.
* Thanks to @avitkauskas, now the vlib/vcompiler/tests/str_gen_test.v test does not need to be special cased anymore.
* Reapply @joe-conigliaro fix for vgen.
2019-10-13 16:37:43 +03:00
joe-conigliaro
40156392f8
compiler: cached modules - windows fixes & organise cached module path ( #2302 )
...
compiler: cached modules - windows fixes & organise cached module path (#2302 )
2019-10-12 16:41:41 +11:00
joe-conigliaro
51388fea75
compiler: module init function & init consts for cached modules
2019-10-12 01:17:37 +03:00
vitalyster
e64609387d
term: colors on Windows console
...
* isConsole moved to builtin is_atty function
* Windows console initialization moved to builtin.init
2019-10-10 20:08:36 +03:00
lhmwzy
de36b61931
compiler: fix symbol error in DragonFlyBSD
2019-10-10 20:05:22 +03:00
Alexander Medvednikov
cdfb7428c8
array/map: use get() instead of _get() etc
2019-10-10 01:07:00 +03:00
sunnylcw
2403abe1ee
compiler: Add C headers to avoid undefined symbol error in FreeBSD
2019-10-09 14:28:30 +03:00
vitalyster
0963328aed
windows: make redirected console detection available to other modules
2019-10-08 03:11:26 +03:00
Delyan Angelov
9a0a8e89fb
compiler: generate a v.c that is compatible with latest tcc
2019-10-05 15:46:13 +03:00
hazohelet
f35f6083cd
add C default comparison operator macros for future bitwise comparisons
2019-10-01 21:21:05 +03:00
hazohelet
21f9dc6b7c
cheaders: add DEFAULT_EQUAL for future float eqbit()
2019-09-29 17:39:38 +03:00
vitalyster
9834ccfcd9
windows: Unicode and IPv6 http/sockets
...
cleanup schannel implementation (drop NT4.0 compatibility, use unicode strings, etc)
restore http tests
fix socket test: it did not throw before
2019-09-26 22:54:15 +03:00
vitalyster
377956e969
js: no need to generate ES6 classes
2019-09-19 00:03:54 +03:00
Alexander Medvednikov
d1500511e6
"none" keyword for optionals + more memory fixes
2019-09-18 14:15:10 +03:00
vitalyster
52c5f0172e
compiler: always define _UNICODE and UNICODE on Windows
2019-09-17 14:56:32 +03:00
joe-conigliaro
155fecadb7
compiler: fix empty structs
2019-09-16 14:44:12 +03:00
joe-conigliaro
cbd4478b5e
compiler: fix msvc empty struct & enable travis msvc
2019-09-16 13:01:07 +03:00
Delyan Angelov
854de4e7e0
repl: add more stats and tests; compiler: tcc fixes
2019-09-16 00:41:12 +03:00
Delyan Angelov
e3bd72e8e2
travis: spawn 2 separate windows instances
2019-09-15 15:52:12 +03:00
joe-conigliaro
b71bb95f7d
msvc: empty struct decl fix
2019-09-15 12:27:28 +03:00
Alexander Medvednikov
5cc81b91cb
JavaSript backend (early stage)
2019-09-15 03:49:57 +03:00
Delyan Angelov
3588c3363d
backtraces: on android (bionic), there is no execinfo.h
2019-09-11 13:31:29 +03:00
Delyan Angelov
c9a39dfdb5
compiler: build tetris executable on windows with both msvc and mingw gcc
2019-09-03 16:09:43 +03:00
F1ssi0N
892c948a44
Make sure to actually generate the empty struct declaration
2019-09-02 15:33:03 +03:00
Alexander Medvednikov
1c6d51f271
remove u8 and i32 from tests and examples
2019-09-02 15:02:25 +03:00
Alexander Medvednikov
29b4114bc0
compiler: simplify [0; n]
2019-08-31 01:34:43 +03:00
Alexander Medvednikov
d5d1b74f90
time: do not include <unistd.h> on windows
2019-08-30 01:10:29 +03:00
Alexander Medvednikov
3c5087902d
fix msvc build
2019-08-30 01:06:10 +03:00
Delyan Angelov
c92654a044
fix building v on alpine with musl libc
2019-08-28 19:26:18 +03:00
Delyan Angelov
73c6bae480
print backtraces on panic on mac and linux
2019-08-27 23:29:13 +03:00
Alexander Medvednikov
d4b6b6c833
freetype: render all Unicode characters
2019-08-27 00:20:54 +03:00
Alexander Medvednikov
031e7fe113
os: libproc.h on macos only
2019-08-24 02:53:11 +03:00
Alexander Medvednikov
7fd9827318
all: add missing includes
2019-08-24 02:48:47 +03:00
Alexander Medvednikov
d98c20466e
cc.v: build with "implicit-function-declaration" and fix declarations
...
required for the webassembly backend
2
2019-08-24 00:20:53 +03:00
Alexander Medvednikov
7086547471
compiler: replace STRUCT_DEFAULT_VALUE with {0}
2019-08-23 02:38:18 +03:00
Alexander Medvednikov
6c6cbe0821
changelog for the upcoming V 0.1.19
2019-08-23 00:26:59 +03:00
Alexander Medvednikov
eb5fcafa77
table: TypeCategory; freetype: remove C code; [typedef] C structs;
...
Objective-C interfaces
2019-08-22 22:18:55 +03:00
Delyan Angelov
9ff8793666
compiler: refactoring - extract cheaders.v and live.v from main.v .
2019-08-20 11:26:50 +03:00