Commit Graph

  • 7bb72a96db ncd: modules: explode: Pass through external strings (avoid copy). Ambroz Bizjak 2014-12-02 21:26:29 +01:00
  • 6d92f687ba ncd: modules: explode: Optimize by not copying the input string. Ambroz Bizjak 2014-12-02 21:00:33 +01:00
  • 05cce5ff59 misc/substring.h: Refactor with MemRef. Ambroz Bizjak 2014-12-02 20:41:45 +01:00
  • c635f2c47c ncd: modules: explode: Implement compiling search strings. Ambroz Bizjak 2014-12-02 00:04:16 +01:00
  • 61c13d81cb ncd: modules: parse: Implement parse_hex_number. Ambroz Bizjak 2014-12-01 20:00:56 +01:00
  • 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
  • 3a1e5a4fb8 ncd: Implement caret syntax sugar. Ambroz Bizjak 2014-11-27 23:06:34 +01:00
  • 98d2fba833 Refactoring using MemRef. Ambroz Bizjak 2014-11-26 22:15:56 +01:00
  • 9314b91783 Refactoring using MemRef. Ambroz Bizjak 2014-11-26 20:07:35 +01:00
  • 562cac1a5b Refactoring using MemRef. Ambroz Bizjak 2014-11-26 19:47:05 +01:00
  • bb2c521ac2 Refactoring using MemRef. Ambroz Bizjak 2014-11-26 19:15:26 +01:00
  • 64e54ba888 Refactoring using MemRef. Ambroz Bizjak 2014-11-26 18:55:21 +01:00
  • e06adb7720 Refactoring using MemRef. Ambroz Bizjak 2014-11-26 18:38:36 +01:00
  • 8900fa17d3 ncd: NCDVal: Add warnings about string pointers. Ambroz Bizjak 2014-11-26 01:33:11 +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
  • 41f291b795 ncd: tests: Add objref test. Ambroz Bizjak 2014-11-21 23:21:45 +01:00
  • 462ed77f14 ncd: Implement object reference infrastructure and objref module. Ambroz Bizjak 2014-11-21 22:58:58 +01:00
  • 9c5480ca06 ncd: Refactor make_fast_names into NCDFastNames. Ambroz Bizjak 2014-11-21 20:39:28 +01:00
  • 26c1ab1f66 ncd: Delete forgotten files. Ambroz Bizjak 2014-11-19 19:05:37 +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
  • 4cf4b99cd5 ncd: NCDObject: Move code to c-file. Ambroz Bizjak 2014-11-18 20:35:00 +01:00
  • c846e851da ncd: tests: Add Block test. Ambroz Bizjak 2014-11-17 22:23:30 +01:00
  • 0879bf529e ncd: Implement Block syntax sugar. Ambroz Bizjak 2014-11-17 22:13:50 +01:00
  • f46323f5b3 ncd: modules: call: Refactoring. Ambroz Bizjak 2014-11-16 23:07:45 +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
  • 98a7f642b0 ncd: modules: call: Implement inline_code calls. Ambroz Bizjak 2014-11-16 18:50:53 +01:00
  • cedb690976 lwip: Fix undefined behavior. Ambroz Bizjak 2014-11-16 17:13:25 +01:00
  • 0e4f171c4f lwip: Fix warning. Ambroz Bizjak 2014-11-16 16:52:30 +01:00
  • 854e1bb854 lwip: Fix warning. Ambroz Bizjak 2014-11-16 16:47:49 +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
  • 7440004eac ncd: modules: basic_functions: Add tolower, toupper. Ambroz Bizjak 2014-11-15 20:19:32 +01:00
  • fc5d0c2d0c misc/cstring: Fix char_rel_pos_var. Ambroz Bizjak 2014-11-15 20:09:54 +01:00
  • da7d47178a ncd: modules: socket: add read() eof variable Ambroz Bizjak 2014-11-15 19:05:13 +01:00
  • 555f7c74fe ncd: modules: socket: Implement _caller in client process. Ambroz Bizjak 2014-11-15 18:36:17 +01:00
  • 365fae4ee0 ncd: tests: Add tests for encode_value and decode_value. Ambroz Bizjak 2014-11-12 21:58:00 +01:00
  • 65011dfa08 Fix some variable shadowing (no bugs). Ambroz Bizjak 2014-11-12 21:52:49 +01:00
  • 5033d556c2 Build with -Wshadow. Ambroz Bizjak 2014-11-12 21:31:31 +01:00
  • 57b72caa55 ncd: basic_functions: Fix for ComposedString inputs. Ambroz Bizjak 2014-11-12 21:29:38 +01:00
  • 6e2ede3fea ncd: basic_functions: Implement encode_value and decode_value. Ambroz Bizjak 2014-11-12 20:55:24 +01:00
  • 640e98f99c ncd: basic_functions: Cosmetic changes. Ambroz Bizjak 2014-11-12 20:10:34 +01:00
  • 9aa87d2a4c ncd: basic_functions: Fix bug, make code shorter. Ambroz Bizjak 2014-11-12 19:24:14 +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
  • a4e1f32684 ncd: Moving code around. Ambroz Bizjak 2014-11-09 11:13:00 +01:00
  • 79c871900d ncd: Cosmetic changes. Ambroz Bizjak 2014-11-09 10:44:41 +01:00
  • 194edaec18 structure: Vector: Reduce interface. Ambroz Bizjak 2014-11-09 10:10:28 +01:00
  • 3f83393ac4 ncd: tests: Add basic_functions tests. Ambroz Bizjak 2014-11-08 21:50:13 +01:00
  • af044d5651 ncd: Implement value comparison functions. Ambroz Bizjak 2014-11-08 21:49:42 +01:00
  • 4ecb77bc07 ncd: Rename arithmetic functions with num_ prefix. Ambroz Bizjak 2014-11-08 20:41:35 +01:00
  • c2d9a80c58 ncd: Implement integer arithmetic functions +,-,*,/,%. Ambroz Bizjak 2014-11-08 20:29:15 +01:00
  • 1df37457ad ncd: Implement functions: string concat, list concat, integer comparison functions. Also fix missing type checks. Ambroz Bizjak 2014-11-08 17:31:18 +01:00
  • 47c6594e83 ncd: Implement functions: if, bool, not, and, or, imp. Ambroz Bizjak 2014-11-06 01:17:01 +01:00
  • a2eb5bd3b9 ncd: Make it possible to reach the NCDStringIndex from functions. Ambroz Bizjak 2014-11-06 00:33:14 +01:00
  • 1289e4aea1 ncd: NCDConfigParser: Implement syntax sugar @foo = "__foo__". Ambroz Bizjak 2014-11-06 00:09:17 +01:00
  • c7a919dddf ncd: NCDConfigTokenizer: Implement at-sign token. Ambroz Bizjak 2014-11-05 23:36:54 +01:00
  • 73a264c3d5 ncd: Consolidate some code that appears in modules. Ambroz Bizjak 2014-11-05 22:43:11 +01:00
  • 9bdb2f3793 ncd: Implement logging by function implementations. Ambroz Bizjak 2014-11-03 23:51:29 +01:00
  • 9fec63e437 ncd: Add dummy functions for testing. Ambroz Bizjak 2014-11-03 22:58:59 +01:00
  • 646a72be60 ncd: NCDInterpreter: Evaluate functions via the index. Ambroz Bizjak 2014-11-03 22:58:35 +01:00
  • 020238b9cf ncd: NCDModuleIndex: Allow a module group with no "modules". To allow function-only groups. Ambroz Bizjak 2014-11-03 21:10:58 +01:00
  • 3da656da45 ncd: Implement registration of functions by modules. Ambroz Bizjak 2014-11-03 00:07:47 +01:00
  • 4e2829dc53 structure/Vector: Add _Count. Ambroz Bizjak 2014-11-03 19:57:09 +01:00
  • c8df8836d3 structure/Vector: Check index in _Get against capacity, not count. Ambroz Bizjak 2014-11-02 23:54:41 +01:00
  • e8dc7628f4 structure/Vector: Split into header and implementation. Ambroz Bizjak 2014-11-02 23:23:23 +01:00
  • 0175c86a35 Vector: Add _Push and _Pop. Ambroz Bizjak 2014-11-02 22:52:08 +01:00
  • c2b3151f81 ncd: Implement function calls in NCDEvaluator. Actual functions TBD. Ambroz Bizjak 2014-11-01 20:04:41 +01:00
  • e0acf50aaf ncd: NCDVal: Add some functions on safe references. Ambroz Bizjak 2014-11-01 19:51:13 +01:00
  • 1d63bbec1a structure: Vector: Add AppendValue function. Ambroz Bizjak 2014-11-01 19:39:54 +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
  • f4500da972 ncd: Fix crash with num_multiply(..., "0"). Ambroz Bizjak 2014-11-08 20:31:29 +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
  • ca8fff684b ncd: NCDVal: Micro refactoring. Ambroz Bizjak 2014-04-05 14:08:16 +02:00
  • 298e79776f ncd: Add parser support for function invocations and parentheses in value expressions. Ambroz Bizjak 2014-04-05 11:10:21 +02:00
  • d09be2a492 examples/ncd_parser_test: Handle variables in values. Ambroz Bizjak 2014-04-05 10:54:25 +02:00
  • 5153894f43 Use badvpn_add_library for all internal libraries. Ambroz Bizjak 2014-10-16 00:04:08 +02:00
  • bbe0524d24 CMakeLists.txt: Add prefix to resulting library names. Ambroz Bizjak 2014-10-15 23:41:49 +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
  • c90711372c version 1.999.129 1.999.129 Ambroz Bizjak 2014-02-18 02:37:30 +01: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
  • 83bd6c1da3 ncd/modules/net_backend_wpa_supplicant.c: Don't hardcode /usr/bin/stdbuf, use badvpn_find_program(). ambrop7 2014-02-12 17:50:28 +00:00
  • 4ef3943dbb NCDIfConfig: Don't hardcode /sbin/modprobe, let the shell find it. ambrop7 2014-02-12 17:47:01 +00:00
  • 0292d08f74 Add compile-udpgw.sh. ambrop7 2013-12-19 17:23:16 +00:00