Commit Graph

576 Commits (a4fb851f3d3c8f45e2b8482b0b82d6cf813e22ad)

Author SHA1 Message Date
Delyan Angelov 8193efb379
v.markused: mark all `pub` functions on `-shared -skip-unused` 2021-04-12 09:29:34 +03:00
Louis Schmieder 67d8639917
orm: add unique fields & add drop table stmt (#9684) 2021-04-11 23:57:25 +02:00
Louis Schmieder 64391efa4d
orm: add mysql support (#9630)
* add mysql to orm

* fix got to big packet error

* format sql.v

* format example

* custom sql types

* add mysql table cration

* add documentation

* format sql.v

* fix markdown

* start implementing select_expr for mysql

* remove orm.c

* format sql.v

* finish mysql expr

* remove c

* remove unessecary files

* change to c implementation

* remove c

* added str interpolation for idents

* fix string insert

* fix compilation problems

* fix gitly compilation

* fix typing mistake

* add link to orm docs
2021-04-10 17:38:27 +03:00
penguindark 73238a81e2
examples: sokol: update the comments on how to compile the shaderes (#9633) 2021-04-08 02:11:41 +02:00
Larpon 8caabf0e9e
sokol: update to floooh/sokol@c602d83 (#9607) 2021-04-07 20:39:23 +02:00
penguindark a016ac39c0
examples: change byteptr to &byte in sokol examples and regex (#9606) 2021-04-05 18:17:45 +03:00
Alexander Medvednikov ed37512ea9 ci: run wkhtmltopdf only on linux again 2021-04-05 07:55:32 +03:00
Alexander Medvednikov 22b4ac2266 examples: fix C interop example 2021-04-05 06:43:46 +03:00
Delyan Angelov accd4d83bf
ci: fix compilation 2021-04-04 20:14:51 +03:00
Alexander Medvednikov 57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
Delyan Angelov bcb3992406
log: implement .log_to_console_too() method 2021-04-02 10:12:52 +03:00
Atakan Yenel 89082de5d1
semver: add custom errors (#9493) 2021-03-29 11:17:00 +02:00
penguindark f0e36ca845
examples: fix fireworks exiting when minimized on windows (issue: #9485) (#9487) 2021-03-27 17:28:09 +02:00
penguindark a2ef9967fe
examples: add .obj viewer as a sokol example (#9456) 2021-03-25 16:53:13 +01:00
Delyan Angelov 9e48826bcb
dl: add dl.open_opt/2, dl.sym_opt/2 and dl.dlerror/0 utility functions 2021-03-24 11:47:04 +02:00
zakuro c8416f9a54
all: deprecate write_str and replace it with write_string (#9369) 2021-03-20 17:25:51 +01:00
zakuro e3c0f305b2
os: deprecate `os.File.write_bytes` and add `os.File.write_ptr` (#9370) 2021-03-20 09:02:28 +02:00
Delyan Angelov 4f6306f6d4
examples: fix `v -cflags "-Werror" test examples/` 2021-03-19 13:13:56 +02:00
Emeric MARTINEAU 125236694f
cli: improve multiple value management (#8310) 2021-03-19 13:09:56 +02:00
Delyan Angelov 04095f4088
ci: fix failing `v -W build-tools` and `v -W build-examples`; run vfmt. 2021-03-19 09:49:26 +02:00
Delyan Angelov c2b574384f
examples: fix dropping pieces with -autofree for tetris.v 2021-03-17 14:45:32 +02:00
crthpl fafb035fb5
all: reimplement inline assembly (#8645) 2021-03-17 01:43:17 +01:00
Leah Lundqvist 64d0006ff9
jsgen: fix string and array for loops and improve casting (#9295) 2021-03-14 08:20:01 +02:00
Delyan Angelov 2fbacd0e79
examples: remove unused 629KB demo.gif animation 2021-03-12 11:57:47 +02:00
Lukas Neubert a67d49050c
math: add a pure V `math.mathutil`, with generic `min`, `max` and `abs` functions (#9176), and use it consistently 2021-03-12 11:28:04 +02:00
Delyan Angelov d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
StunxFS 9a7d9e047b
dl: move 'example' to 'examples/dynamic_library_loading' (#9187) 2021-03-08 18:21:43 +02:00
Delyan Angelov 849cde245c
v: support dump(expr) (#9160) 2021-03-06 18:09:28 +01:00
joe-conigliaro 2d73411396
checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03:00
Delyan Angelov cd423251da
vweb: add .mount_static_folder_at/2 , use it instead of app.handle_static in the server_sent_events example 2021-03-02 21:30:18 +02:00
Miccah d0fab60981
vweb: refactor routing logic (#9025) 2021-03-01 11:50:52 +01:00
spaceface b712af56fd
all: bring back `panic(err.msg)` -> `panic(err)` (#9022) 2021-03-01 00:18:14 +01:00
spaceface d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Miccah 7e08e84bc1
vweb: refactor HTTP request parsing (#8874) 2021-02-27 23:18:25 +01:00
penguindark 1d69a0bd22
gg: window_size_real_pixels that for 3D without dpi scaling (#9004) 2021-02-27 22:11:26 +01:00
Alexander Medvednikov 3a2d696fac time: time.wait() => time.sleep() 2021-02-27 20:41:06 +03:00
Uwe Krüger f67bff1696
all: support `thread` handles and `wait()` for functions returning optionals (#8990) 2021-02-27 10:16:55 +02:00
Nick Treleaven aed348fb80
os: tag some File methods that take voidptr as unsafe - write_bytes, write_bytes_at (#8985) 2021-02-27 10:11:17 +02:00
Miccah 66c85aa5cb
docs: update concurrency docs and examples to use []thread{} (#8933) 2021-02-24 10:41:12 +01:00
Delyan Angelov 9e06af8bf9
vfmt: vfmt examples/*.v 2021-02-23 20:21:50 +02:00
Delyan Angelov d1cebcb608
2048: remove `[no_inline]` (no longer needed) 2021-02-22 21:40:55 +02:00
spaceface b4dc6c83cd
gg: handle Android's own native dpi scaling factor (#8908) 2021-02-22 21:24:18 +02:00
spaceface 8033203ef6
builtin: add an Option2 struct (#8890) 2021-02-22 18:44:15 +02:00
Louis Schmieder 7a35131721
vweb: add handle static root & documentation (#8865) 2021-02-21 20:01:29 +02:00
zakuro ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
spaceface 260f677469
term.ui: use the new `[flag]` enums (#8881) 2021-02-21 16:07:49 +02:00
Delyan Angelov 3a65ccd060
examples: make examples/templates/templates.v runable from everywhere, not just . 2021-02-19 17:29:35 +02:00
Miccah a153ec5951
cli: ensure that required flags are set (#8826) 2021-02-19 12:43:18 +02:00
kristof de spiegeleer 3f3bec45fa
examples: add a template example, update the regex examples (#8829) 2021-02-19 12:39:15 +02:00
penguindark 198b395cde
examples: add examples/sokol/05_instancing_glsl, cleanup code (#8809) 2021-02-18 11:11:26 +02:00