Commit Graph

  • b003fa6755 ncd: modules: use the new static strings ambrop7 2012-12-05 19:24:34 +00:00
  • 70a773ab02 ncd: static_strings, NCDStringIndex: add "size" string ambrop7 2012-12-05 19:11:44 +00:00
  • 093757350c ncd: static_strings, NCDStringIndex: add a few more strings ambrop7 2012-12-05 19:02:34 +00:00
  • 60e52ef40a version 1.999.126rc1 ambrop7 2012-12-04 19:02:37 +00:00
  • 85df1aee6c update ChangeLog ambrop7 2012-12-04 18:53:24 +00:00
  • bb748de063 ncd: tests: add call.ncd ambrop7 2012-12-04 18:27:20 +00:00
  • a9e60ca374 ncd: tests: add include.ncd ambrop7 2012-12-04 18:26:54 +00:00
  • 4c5f65d96d ncd: implement NCDBuildProgram and make ncd.c utilize it. This finishes the initial implementation of the include system. ambrop7 2012-12-04 18:25:43 +00:00
  • ce803281ee ncd: NCDAst: implement NCDProgram_RemoveElem() and NCDProgram_ReplaceElemWithProgram() ambrop7 2012-12-04 01:05:04 +00:00
  • 1aeb42fe61 structure: LinkedList1: add LinkedList1_InsertListAfter() ambrop7 2012-12-04 00:59:29 +00:00
  • 16243308ac ncd: move parsing of the program out of NCDInterpreter ambrop7 2012-12-03 23:33:04 +00:00
  • 73082b3932 ncd: NCDConfigParser: add support for parsing include_guard directives ambrop7 2012-12-03 22:51:38 +00:00
  • 509167b3b3 ncd: NCDAst: implement include_guard directive ambrop7 2012-12-03 21:40:20 +00:00
  • 10d51b7a0a ncd: NCDConfigTokenizer: add include_guard token ambrop7 2012-12-03 21:11:33 +00:00
  • 7d3cb00ab7 ncd: NCDConfigParser: add support for include directives ambrop7 2012-12-03 21:05:35 +00:00
  • 86486afb5f ncd: NCDConfigTokenizer: add include token ambrop7 2012-12-03 20:07:40 +00:00
  • aa9c5c4550 ncd: NCDConfigParse_parse.y: allow inputs without any processes or templates. This removes some duplication and will make adding support for include directives easier to implement. ambrop7 2012-12-03 19:58:51 +00:00
  • bc17a671ed ncd: extend AST with include directives ambrop7 2012-12-03 19:17:37 +00:00
  • b15882c561 ncd: modules: call2: implement call_with_caller_target() ambrop7 2012-12-02 21:18:43 +00:00
  • eaddedf5e0 ncd: modules: alias: make use of make_fast_names.h ambrop7 2012-12-02 20:25:12 +00:00
  • 77fa26889e ncd: extra/make_fast_names.h: rename the init function to _InitNames(), add _FreeNames() and _GetNames() ambrop7 2012-12-02 20:23:25 +00:00
  • af1cbca359 ncd: add extra/make_fast_names.h, which is a generalized version of the name parsing code from the alias module ambrop7 2012-12-02 20:00:41 +00:00
  • 494455eb5b ncd: modules: call2: micro-optimization. Instead of keeping an 'embed' flag to determine how object resolution is performed, use different object resolution callbacks for each mode. ambrop7 2012-12-02 18:19:43 +00:00
  • d2a806f603 ncd: modules: call2: add documentation ambrop7 2012-12-02 17:58:46 +00:00
  • 520cec03fd ncd: modules: remove call module, and rename the call2() command from the call2 module to call(). This way the call() command remains the same, but callrefhere() is gone for good. ambrop7 2012-12-02 16:37:47 +00:00
  • da9d7745a0 ncd: modules: call2: remove some commands nobody is probably using ambrop7 2012-12-02 16:29:39 +00:00
  • 43b94e63a2 ncd: examples: add make_igmpproxy_config ambrop7 2012-12-02 13:58:15 +00:00
  • d902d1bf66 ncd: examples: add tcp_echo_server and tcp_echo_client ambrop7 2012-12-02 13:21:41 +00:00
  • 021b2b8ed5 ncd: examples: add directory_updater ambrop7 2012-12-02 13:19:41 +00:00
  • d514dcd888 ncd: examples: add make_dhcp_config ambrop7 2012-12-02 13:12:03 +00:00
  • 962c71c550 ncd: examples: add dbus_start.ncd ambrop7 2012-12-02 13:04:27 +00:00
  • 720c941e43 ncd: modules: sys.start_process(): cosmetic changes ambrop7 2012-12-01 19:23:51 +00:00
  • ec5e0065c6 ncd: modules: sys.start_process(): cosmetic changes ambrop7 2012-12-01 15:36:22 +00:00
  • 98654dcfb8 ncd: remove outdated state diagram ambrop7 2012-12-01 02:55:29 +00:00
  • 6086c1f911 ncd: modules: add sys.start_process() ambrop7 2012-12-01 02:52:15 +00:00
  • 86000dd3d0 ncd: move NCDIfConfig to extra, as it's not a core part of the interpreter ambrop7 2012-12-01 02:46:53 +00:00
  • 00c87d69cb ncd: add extra/build_cmdline, to be used by the upcoming sys.start_process() module ambrop7 2012-12-01 02:24:07 +00:00
  • affc280af4 ncd: NCDModuleIndex: increase the maximum type length, needed by the upcoming sys.start_process() module ambrop7 2012-12-01 00:33:43 +00:00
  • 2fe1885612 add forgotten change from previous commit ambrop7 2012-11-30 22:36:30 +00:00
  • e1a3b6cbe2 system: BReactor, BConnection: properly handle HUP event so that it is possible to ready any remaining data after a HUP is received. This happens in particular when reading from a pipe to a child process and the child closes its end of the pipe. ambrop7 2012-11-30 22:30:34 +00:00
  • cd6a51612d system: BConnection_unix: refactor flag variables into state variables ambrop7 2012-11-30 21:33:30 +00:00
  • 0e54c2280b ncd: NCDInterpreter: use a STATEMENT_LOG macro to check whether we would actually log the message before calling statement_log(). This improves performance. ambrop7 2012-11-30 02:07:16 +00:00
  • b4252374bb ncd: NCDModule, NCDInterpreter: report module errors to interpreter as a separate event, not by setting a flag ambrop7 2012-11-30 01:47:59 +00:00
  • f49ecedd13 ncd: NCDModule: remove NCDModuleInst_Backend_SetError() and add NCDModuleInst_Backend_DeadError() instead. Fix modules. ambrop7 2012-11-30 01:29:40 +00:00
  • 86e31580d2 ncd: modules: foreach: fix unused variable warnings ambrop7 2012-11-30 00:35:27 +00:00
  • a0ca8e1a6a ncd: modules: remove logging about errors from NCDVal functions ambrop7 2012-11-30 00:30:54 +00:00
  • 41e88c6250 ncd: NCDModule, NCDInterpreter: optimize NCDModuleInst_Backend_DownUp() ambrop7 2012-11-29 15:24:26 +00:00
  • 9c149a1b1f ncd: NCDModule: implement NCDModuleInst_Backend_DownUp() and use it in the backtrack_point() ambrop7 2012-11-29 14:02:45 +00:00
  • b38b0a828c ncd: NCDVal: optimize copying of lists ambrop7 2012-11-29 13:33:40 +00:00
  • 5ded855dc3 ncd: NCDVal: optimize copying of ID-strings ambrop7 2012-11-29 13:00:43 +00:00
  • ab62e48c79 ncd: NCDVal: optimize copying of strings ambrop7 2012-11-29 12:43:21 +00:00
  • abb72ca330 ncd: NCDVal: micro-optimization ambrop7 2012-11-29 04:20:45 +00:00
  • fb3d5ae4ee ncd: NCDVal: micro-optimization ambrop7 2012-11-29 03:57:01 +00:00
  • 3fc9ec6b0e NCDInterpreter.c: cosmetic change ambrop7 2012-11-29 03:32:58 +00:00
  • d12ad6e28d ncd/NCDInterpreter.c: cosmetic change ambrop7 2012-11-29 03:26:49 +00:00
  • bb993bb1a2 ncd/NCDInterpreter.c: cosmetic change ambrop7 2012-11-29 03:25:03 +00:00
  • 815b59153a bsize.h: simplify ambrop7 2012-11-29 02:41:29 +00:00
  • 13b25d996a BSocksClient: fix bug ambrop7 2012-11-21 00:03:05 +00:00
  • 4192ac388f tun2socks: implement SOCKS password authentication ambrop7 2012-11-20 23:59:30 +00:00
  • e98f8fa871 ncd: NCDValCons, NCDValParser: report depth limit errors properly ambrop7 2012-11-20 14:48:50 +00:00
  • 62917f151e ncd: NCDVal: enforce a maximum value depth to avoid stack overflows ambrop7 2012-11-20 13:44:28 +00:00
  • 27357f6b80 ncd: modules: substr: optimize when input is an ID-string. That is, return the result as an external string without a reference target. ambrop7 2012-11-18 19:20:50 +00:00
  • 79bc3b7794 ncd: NCDVal: allow external strings to not be associated with a reference target ambrop7 2012-11-18 18:01:05 +00:00
  • 05454fc384 ncd: NCDVal: optimize NCDVal_StringHasNulls() and NCDVal_IsStringNoNulls() for ID-strings ambrop7 2012-11-18 17:49:33 +00:00
  • c946119f9d ncd: NCDStringIndex: support null bytes in strings ambrop7 2012-11-18 17:21:11 +00:00
  • fb8a915a37 ncd: tests: add substr.ncd ambrop7 2012-11-18 01:12:09 +00:00
  • eb298e5748 ncd: modules: add substr ambrop7 2012-11-18 01:11:43 +00:00
  • aa4f922a20 ncd: modules: optimize some boolean reading and making with ID-strings ambrop7 2012-11-17 23:40:59 +00:00
  • 6583f5e8f6 ncd: modules: remove concatv, implement it in concat module instead, more efficiently ambrop7 2012-11-17 22:33:00 +00:00
  • 139af24480 ncd: modules: concat: optimize to return the result as an external string ambrop7 2012-11-17 21:38:10 +00:00
  • 3937905ee7 ncd: NCDVal: make sure fastbuf is aligned ambrop7 2012-11-17 20:43:17 +00:00
  • 5189e0d212 version 1.999.125rc7 ambrop7 2012-11-15 01:21:45 +00:00
  • 01dcc8ff5f update ChangeLog ambrop7 2012-11-15 01:21:21 +00:00
  • ff06a55bf3 ncd: tests: process_manager.ncd: add two-argument start() tests ambrop7 2012-11-15 00:50:37 +00:00
  • 2d78cb5452 ncd: modules: process_manager: add a two-argument version of start() without a process identifier argument ambrop7 2012-11-15 00:50:13 +00:00
  • dfce884438 ncd: modules: process_manager: improve documentation ambrop7 2012-11-14 23:59:20 +00:00
  • 6badbd184c ncd: modules: process_manager: Refactoring. Also allow arbitrary values for process names, not just strings. ambrop7 2012-11-14 23:42:27 +00:00
  • 8d08ab164f ncd: tests: add process_manager.ncd ambrop7 2012-11-14 02:29:49 +00:00
  • ba3248f0cb ncd: tests: add depend_scope.ncd, multidepend.ncd ambrop7 2012-11-13 19:39:09 +00:00
  • 8cbb080de0 ncd: modules: depend_scope, multidepend: fix immediate effect order when a depend finishes backtracking ambrop7 2012-11-13 19:37:50 +00:00
  • a6af9a3364 ncd: modules: add depend_scope (like multidepend but with separate dependency scopes) ambrop7 2012-11-13 18:56:08 +00:00
  • 3994260252 ncd: modules: multidepend: cosmetic changes ambrop7 2012-11-13 17:40:48 +00:00
  • 4661348dc2 ncd: modules: multidepend: allow any type of value as a dependency name, not just strings ambrop7 2012-11-13 16:52:01 +00:00
  • c51fa9f27a ncd: modules: multidepend: make documentation refer to the upcoming depend_scope module ambrop7 2012-11-13 16:47:23 +00:00
  • d6520c5dfd version 1.999.125rc6 ambrop7 2012-11-12 00:18:10 +00:00
  • 24d2806e6a ncd: modules: socket: implement read_size option ambrop7 2012-11-11 22:42:32 +00:00
  • 8acab0e8e0 ncd: modules: socket: increase read buffer size for better performance ambrop7 2012-11-11 21:48:10 +00:00
  • ef7afa8904 ncd: modules: socket: improve performance by exposing the read data as an external string, avoiding a copy ambrop7 2012-11-11 21:32:26 +00:00
  • 84c747abe8 ncd: modules: socket: use NCDBuf for reading ambrop7 2012-11-11 21:30:49 +00:00
  • 5f2d0237ad ncd: modules: file_open: implement read_size option ambrop7 2012-11-11 19:51:30 +00:00
  • 058902cf16 ncd: NCDBuf: add NCDBufStore_BufSize() ambrop7 2012-11-11 19:35:08 +00:00
  • 9b6c186ef0 ncd: NCDVal: add NCDVal_MapGetValue() ambrop7 2012-11-11 19:15:09 +00:00
  • 737f28f88c ncd: modules: file_open: improve performance by exposing the read data as an external string, avoiding a copy ambrop7 2012-11-11 17:49:23 +00:00
  • f2dc065bc7 ncd: modules: file_open: use NCDBuf to speed up reading ambrop7 2012-11-11 17:36:11 +00:00
  • af75656651 ncd: add NCDBuf ambrop7 2012-11-11 17:34:40 +00:00
  • 2cb7d22401 ncd: move some stuff only used by modules and not the interpreter into extra/ ambrop7 2012-11-11 14:52:30 +00:00
  • abba37f455 ncd: NCDObject: Refactoring. Use just one kind of getvar/getobj callbacks. Change the state argument to callbacks to be an NCDObject poiter, and provide functions to retrieve state from that. Instead of a second state pointer (user2), use an integer (data_int). Do not allow passing NULL getvar/getobj callbacks; instead, provide dummy callbacks. Move implementation to header for better performance. Port everything to the new NCDObject interface. ambrop7 2012-11-11 12:38:10 +00:00
  • b7cc052f96 ncd: NCDModule: fix crash if _argN special object in a process for arguments that don't exist (N is too large) ambrop7 2012-11-10 13:39:11 +00:00
  • c3ad1ea150 ncd: NCDVal: reduce fastbuf size so that the size of NCDValMem remains the same as before external strings were implemented. This fixes the performance regression. ambrop7 2012-11-10 12:23:55 +00:00
  • 6fd2495b9d ncd: NCDVal: implement external strings ambrop7 2012-11-10 01:11:13 +00:00