b1a6d4dcce
ncd: Change the @-syntax to now add __ around the name. Also rename change the basic_functions function names accordingly.
Ambroz Bizjak
2014-11-27 23:14:02 +01:00
3393383a22
ncd: Fix possible crash in @decode_value.
Ambroz Bizjak
2014-11-26 01:29:57 +01:00
24e6edd26f
Refactoring using MemRef.
Ambroz Bizjak
2014-11-26 00:02:21 +01:00
0f28a138b9
ncd: Fix bugs with bad expectations of null-terminated strings.
Ambroz Bizjak
2014-11-25 23:05:43 +01:00
b27f9c105b
Refactoring using MemRef.
Ambroz Bizjak
2014-11-25 22:30:11 +01:00
c1f4c57e8a
Replace cstring with MemRef. MemRef is just a stupid (ptr, len) pair. We no longer need the abstract cstring.
Ambroz Bizjak
2014-11-25 21:18:48 +01:00
98ed187623
ncd: Remove ComposedString type along with the buffer module. It was a fancy feature, but with questionable utility and with a general maintenance burden.
Ambroz Bizjak
2014-11-18 22:49:14 +01:00
5d77b8559f
ncd: Move some NCDVal header code to another file. This will avoid a circular header dependency in the future.
Ambroz Bizjak
2014-11-18 20:49:30 +01:00
1ae3a4011e
ncd: modules: call: Fix bug in call_with_caller_target deinit. We shouldn't free the CallNames stuff when we get the die request, but later when we actually die. We may still try to resolve getobj requests in the mean time.
Ambroz Bizjak
2014-11-16 19:06:27 +01:00
87791bc320
ncd: modules: socket: close: Fix completion order vs closing. When we close, the effects of the close should have execution precedence over the completion of the close statement. This makes sure that we don't go executing extra NCD statements that shouldn't be.
Ambroz Bizjak
2014-11-15 21:11:37 +01:00
e2979251df
ncd: Refactor the function call infrastructure.
Ambroz Bizjak
2014-11-11 00:33:40 +01:00
99536cc18a
ncd: Add --signal-exit-code option. This specifies the exit code of the process when terminated by SIGINT/SIGTERM (after cleanup). When runnign from systemd, it is useful to use 0 (instead of the default 1), so that it doesn't think we crashed.
Ambroz Bizjak
2014-11-09 14:14:24 +01:00
0240db041c
ncd: Fix missing type checks. Refactor to make these bugs less likely.
Ambroz Bizjak
2014-11-09 13:20:25 +01:00
8f7fe765ad
build.nix: Add option to build with assertions.
Ambroz Bizjak
2014-11-01 15:42:29 +01:00
4a2f98c9c7
ncd: NCDConfigParser: Change function call syntax. The new syntax is changed from "func arg" to "func(arg1, ...)". The restricted syntax will allow easier implementation of lazy evaluation, for function calls only.
Ambroz Bizjak
2014-11-01 15:42:07 +01:00
0b3a241355
NCDEvaluator: Use Vector.
Ambroz Bizjak
2014-10-30 23:57:30 +01:00
15723bd4ac
Add a simple Vector data structure.
Ambroz Bizjak
2014-10-30 23:57:14 +01:00
4138b04639
ncd: Refactoring to support upcoming function calls.
Ambroz Bizjak
2014-10-30 01:17:45 +01:00
490fd0c2d6
ncd: NCDInterpProcess: Move struct to c file.
Ambroz Bizjak
2014-10-29 08:33:42 +01:00
922a793239
ncd: NCDInterpProcess: Be more informative when encountering unsupported expression types.
Ambroz Bizjak
2014-10-28 20:20:03 +01:00
6bec211ac7
Add convenience Nix expression for building. Relying on the existing badvpn expression in nixpkgs.
Ambroz Bizjak
2014-10-27 23:29:26 +01:00
670282f014
ncd: NCDVal: Move lots of implementation details out of the header.
Ambroz Bizjak
2014-04-05 14:27:38 +02:00
1ed046a784
ncd: NCDVal: Use maxalign to ensure alignment of fastbuf. This will allow moving lots of implementation details out of the header.
Ambroz Bizjak
2014-04-05 14:24:44 +02:00
cc991c6821
Fix build with BUILD_SHARED_LIBS on.
Ambroz Bizjak
2014-10-15 23:35:18 +02:00
c8b3bfef84
lwip/CMakeLists.txt: Add missing link to the internal 'system' library.
Ambroz Bizjak
2014-10-15 23:10:44 +02:00
b1a808c0bf
NCDVal: Fix assertion. If assertions were enabled this bug would lead to a crash when using a variable key in a literal map expression, like this:
Ambroz Bizjak
2014-08-08 23:44:57 +02:00
628ac69685
ncd/modules/file_open.c: Fix typo in assertion.
ambrop7
2014-02-17 22:04:35 +00:00
ae14d254ac
server: Fix bug forgetting to call BSSLConnection_ReleaseBuffers(). Unless threads are enabled, this is an assert failure if NDEBUG is not defined an a non-issue otherwise.
ambrop7
2014-02-13 19:09:00 +00:00
37058a71df
misc/find_program.h: Look in PATH first.
ambrop7
2014-02-12 18:40:01 +00:00