1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

10 Commits

Author SHA1 Message Date
Turiiya
e9fb5b3fcc
.editorconfig: do not specify an indent size for tabs (#18297) 2023-05-30 14:23:13 +02:00
Roy Ivy III
c015f15d8d
make.bat: fix use of make.bat from v up (#16348)
* .editorconfig: fix EOL for BAT files

* make.bat: fix use of `make.bat` from `v up`

- use move semantics, instead of replace, for `v` executable updates
- fixes [#16184](https://github.com/vlang/v/issues/16184)

# [why]

`v up` updates the executable by directly calling `make.bat`, awaiting
the result, which keeps an open file handle to it's own executable file.
`make.bat` compiles and, crucially, attempts to directly replace that
`v` executable. But, in WinOS, files with open file handles cannot be
deleted/replaced, so the `make` then fails. The other key point is that,
although WinOS files with open file handles can't be deleted/replaced,
they _can be moved/renamed_.

Thus, the technique that most self-updating WinOS executables use is to
move the current executable to some alternate name (ie, *v_old.exe*) and
then move the newly updated executable to the original location (ie,
*v.exe*). The next invocation of the "original" executable will then run
the updated version.

Note, this technique also works correctly for direct invocations of `make.bat`.
2022-11-07 08:48:08 +02:00
jeffmikels
7a2705d8ce
scanner: multibyte rune literals now support unicode, hex, and octal escape codes (#13140) 2022-01-19 03:23:25 +03:00
Paul Dardeau
0115a51de4
makefiles: rename as requested in issues tracker (#11380) 2021-09-04 14:32:42 +03:00
Daniel Däschle
6bba7d4e3a
cgen: enum str() 2020-04-08 15:54:38 +02:00
Daniel Däschle
4aedef367c
cgen: print bool and string correctly in struct 2020-04-07 17:52:15 +02:00
Alexey
48dfa6edc3
.editorconfig: extend rules to .yml and .md files
Added a rule for YAML files
    Ensure we all use the same settings
    Enabled trim_trailing_whitespace for all files, except Markdown ones
    Removed unused comments
    Some of them are even irrelevant
2020-04-05 15:14:19 +03:00
Delyan Angelov
1c915c3bd1
add trim_trailing_whitespace to .editorconfig 2020-02-27 12:01:53 +01:00
Alexander Medvednikov
0a33c9ebf5 .editorconfig: indent_size = 4 2020-01-11 13:23:47 +01:00
Delyan Angelov
9198285688 add .editorconfig file at the top level of the project 2019-12-22 02:05:55 +03:00