Commit Graph

  • c28c0d0819 ncd: NCDVal: don't provide a guarantee that strings are null terminated. Rename NCDVal_StringValue() to NCDVal_StringData() to reflect the change in semantics. Provide NCDVal_StringNullTerminate() for when a null-terminated string is needed. Fix everything to work with these changes. ambrop7 2012-11-09 23:29:24 +00:00
  • 510f40a7d9 misc/stdbuf_cmdline.h: pass exec as pointer+length ambrop7 2012-11-09 15:23:17 +00:00
  • 04be86717d misc/string_begins_with.h: add data_begins_with_bin() ambrop7 2012-11-09 15:18:52 +00:00
  • 653c75a10e fix clang warning ambrop7 2012-11-09 11:09:15 +00:00
  • 4d6471b927 missed change from previous commit ambrop7 2012-11-09 11:07:52 +00:00
  • 51623a499a system: BConnectionGeneric: accept unix socket path as pointer+length not as null-terminated ambrop7 2012-11-09 11:05:30 +00:00
  • 791c6d045d misc/cmdline.h: add CmdLine_AppendNoNull() ambrop7 2012-11-08 23:14:52 +00:00
  • 4236bb6d04 ncd: NCDVal: remove NCDValMem_FreeExport and NCDValMem_InitImport in favor of NCDValMem_InitCopy ambrop7 2012-11-08 21:20:33 +00:00
  • 0efa3f21aa update ChangeLog ambrop7 2012-11-05 12:25:19 +00:00
  • 5830c78bf1 version 1.999.125rc5 ambrop7 2012-11-04 21:52:31 +00:00
  • 07cd8a5d89 ncd: tests: add backtracking.ncd ambrop7 2012-11-04 20:34:47 +00:00
  • ce4b15173e ncd: modules: value: implement value::insert(X) which appends X to a list ambrop7 2012-11-04 19:29:15 +00:00
  • 8236426768 ncd: modules: sys_request_server: remove _request.client_addr_type, change _request.client_addr format to be the same as with sys.listen() from the socket module ambrop7 2012-11-04 18:19:10 +00:00
  • e86d72c89b ncd: modules: sys_request_client: use ncd_read_bconnection_addr() to parse the listen address ambrop7 2012-11-04 18:12:48 +00:00
  • be19453b5f ncd: NCDRequestClient: use struct BConnection_addr for the address argument ambrop7 2012-11-04 17:50:13 +00:00
  • 055c9c63cd modules: sys_request_server: use ncd_read_bconnection_addr() to parse the listen address. This changes the address format to be the same as sys.connect() and sys.listen(). Also remove the now redundant unlinking of unix sockets, which is taken care of by BListener. ambrop7 2012-11-04 17:21:05 +00:00
  • 1b63ab9dd5 system: BConnection_unix: for unix sockets, unlink socket file after we stop listening, and before we start ambrop7 2012-11-04 17:07:28 +00:00
  • ef13848cce ncd: modules: socket: use ncd_read_bconnection_addr() ambrop7 2012-11-04 16:28:16 +00:00
  • 84ed70294f ncd: address_utils.h: add ncd_read_bconnection_addr() ambrop7 2012-11-04 16:26:43 +00:00
  • 78c15dbdbb update ChangeLog ambrop7 2012-11-04 15:33:53 +00:00
  • b6088a6593 ncd: modules: add socket ambrop7 2012-11-04 15:31:10 +00:00
  • f2a2b37f1d ncd: NCDInterpProg: fix crash on duplicate process/template name ambrop7 2012-11-03 23:36:18 +00:00
  • 1ab2d67d30 CHash: fix bug in Insert() to detect existing entry. This affected NCDInterpProg which made it unable to detect processes/templated with the same name. ambrop7 2012-11-03 23:35:12 +00:00
  • 6855f84192 ncd/address_utils.h: ncd_make_baddr(): don't treat unknown address types as errors, but produce an "unknown" result ambrop7 2012-11-02 20:43:21 +00:00
  • 56474577f1 ncd: add address_utils.h ambrop7 2012-11-02 20:07:07 +00:00
  • 4fd7745929 system: add BConnectionGeneric.h ambrop7 2012-11-01 23:53:49 +00:00
  • 394c33b99d ncd: NCDModule: add NCDModuleInst_Backend_LogVarArg() ambrop7 2012-11-01 23:43:44 +00:00
  • c29313f3c6 ncd: NCDModule: make it possible to have the preallocated memory pointer passed as context for method calls, as opposed to the NCDModuleInst pointer. This will simplify implementing method calls in the upcoming socket module, where the "sys.socket" object type can either be an actual statement sys.connect(), or it can be an anonymous object _socket for listening sockets. ambrop7 2012-11-01 23:39:04 +00:00
  • d9d822788d ncd: NCDObject: make it possible to have the method call context pointer different from the _getobj and _getarg context pointers ambrop7 2012-11-01 23:23:36 +00:00
  • d62faf2403 ncd: modules: file_open: remove is_eof variable for file_open::read() ambrop7 2012-11-01 19:21:58 +00:00
  • 5a27ab878d blog_channels.txt: update (missed in previous commit) ambrop7 2012-11-01 01:36:08 +00:00
  • fbc464435b ncd: modules: add backtrack ambrop7 2012-11-01 01:35:00 +00:00
  • 5ad4bdede4 ncd: modules: file_open: implement file_open::close() ambrop7 2012-11-01 01:00:16 +00:00
  • e23b38cc85 misc/parse_number.h: add functions for parsing signed integers, needed by previous commit ambrop7 2012-11-01 00:23:28 +00:00
  • c1af9df7c7 ncd: modules: add file_open ambrop7 2012-11-01 00:22:00 +00:00
  • 236a211340 ncd: tests: add test for value::append() ambrop7 2012-10-31 19:03:34 +00:00
  • dbbaf51f26 ncd: modules: value: add value::append() ambrop7 2012-10-31 18:59:21 +00:00
  • e4cb194e9c misc/balloc.h: add BRealloc() ambrop7 2012-10-31 18:29:09 +00:00
  • b2b99dce67 ncd: NCDInterpreter: micro-optimization ambrop7 2012-10-31 17:08:19 +00:00
  • 250edb09f6 ncd: modules: add periodic_timer() ambrop7 2012-10-29 23:57:45 +00:00
  • f0b394d70e ncd: value_utils.h: add ncd_read_time() ambrop7 2012-10-29 23:55:26 +00:00
  • e485d048d1 version 1.999.125rc4 ambrop7 2012-10-28 16:31:11 +00:00
  • 1ead7be144 update ChangeLog ambrop7 2012-10-28 16:23:15 +00:00
  • c81f06b94c ncd: modules: parse: add parse_ipv6_addr() and parse_ipv6_cidr_addr() ambrop7 2012-10-28 13:36:05 +00:00
  • bbfdce4d92 ncd: cache a single prepared process for fast allocation, for each kind of process ambrop7 2012-10-27 22:25:59 +00:00
  • ccfd0f7987 ncd: NCDInterpreter: require that the process work job is unset when calling process_free(). ambrop7 2012-10-27 20:41:26 +00:00
  • de044df707 ncd: NCDInterpProcess: store command name as a string ID ambrop7 2012-10-27 20:06:02 +00:00
  • dea7011e4f ncd: NCDModule: remove redundant assignment in debug mode ambrop7 2012-10-27 18:30:20 +00:00
  • ad34835ccf ncd: NCDModule: don't store a callback state pointer for NCDModuleProcess user callbacks. Instead, pass the NCDModuleProcess pointer. ambrop7 2012-10-27 18:13:06 +00:00
  • ea164baa07 ncd: NCDModule: remove 'iparams' member from NCDModuleProcess ambrop7 2012-10-27 17:13:11 +00:00
  • 2f4b91f7c3 ncd: NCDModule: remove the 'state' member from NCDModuleProcess when in debug mode ambrop7 2012-10-27 17:07:11 +00:00
  • ff7e25c8b3 ncd: NCDModule: require that process is not terminated when calling NCDModuleProcess_GetObj() ambrop7 2012-10-27 16:45:00 +00:00
  • 9a44cabbe9 ncd: optimize destruction of statements which don't do anything on destruction ambrop7 2012-10-27 15:55:27 +00:00
  • ffec659d2b ncd: NCDModule: in NCDModuleInst_Init(), have the interpreter directly pass the method context pointer, not the NCDObject which contains it ambrop7 2012-10-27 14:06:34 +00:00
  • 3fa9313d5e ncd: NCDInterpreter: only call NCDInterpProcess_StatementBumpAllocSize() when we really need to increase the mem size ambrop7 2012-10-27 13:38:09 +00:00
  • becfbd8014 ncd: small optimization ambrop7 2012-10-27 00:59:45 +00:00
  • 9d71a60855 ncd: NCDInterpreter: avoid a loop over all statements in process_free() if no statement memory was allocated ambrop7 2012-10-27 00:32:32 +00:00
  • 2c030279b9 ncd: NCDInterpreter: store BReactor pointer in process to gain a small speedup ambrop7 2012-10-26 23:43:02 +00:00
  • 33db462802 ncd: NCDInterpreter: only use process state member in debug mode ambrop7 2012-10-26 22:40:57 +00:00
  • e2785aea3e ncd: NCDInterpreter: allow calling process_start_terminating() even if process is already terminating ambrop7 2012-10-26 22:27:14 +00:00
  • c1bf18deb9 ncd: NCDInterpreter: don't stop the retry timer if it turns out it is no longer needed. Instead, just detect this from the timer handler. This avoids the performance impact of calling BReactor_RemoveSmallTimer() so often. ambrop7 2012-10-26 03:42:11 +00:00
  • 88ac127bce ncd: NCDInterpreter: add process_work_job_handler_waiting() as a dummy handler so we can avoid a branch ambrop7 2012-10-26 00:44:00 +00:00
  • 3543f7327d ncd: NCDInterpreter: split process_work_job_handler() into process_work_job_handler_working() and process_work_job_handler_up() ambrop7 2012-10-25 23:05:58 +00:00
  • e0c314c729 ncd: NCDInterpreter: cosmetic change ambrop7 2012-10-25 12:47:05 +00:00
  • 751f15e469 ncd: NCDInterpreter: don't schedule the work job in PSTATE_WAITING ambrop7 2012-10-25 03:24:53 +00:00
  • d96345ce7b ncd: NCDInterpreter: cosmetic changes ambrop7 2012-10-25 02:56:29 +00:00
  • 281aa89abb ncd: NCDInterpreter: split the terminating part of process_work_job_handler() into process_work_job_handler_terminating() ambrop7 2012-10-25 02:55:49 +00:00
  • b963b8e471 BPending: add BSmallPending_SetHandler() ambrop7 2012-10-25 02:48:00 +00:00
  • 960c2f0f6b ncd: NCDInterpreter: remove unused defines ambrop7 2012-10-25 02:13:51 +00:00
  • 3e01cedfbe ncd: NCDInterpreter: use C bitfields instead of manual masking and shifting ambrop7 2012-10-25 02:12:58 +00:00
  • 4e4859be7f ncd: NCDModule: fix description for semantics of mem pointer ambrop7 2012-10-24 11:40:36 +00:00
  • 1a251d5aaa ncd: NCDModule, NCDInterpreter: keep interpreter's statement state in a bitfield within NCDModuleInst, to optimize memory usage ambrop7 2012-10-24 11:36:48 +00:00
  • 4c6064a80e ncd: NCDModule: use bitfields for state and error flag in NCDModuleInst. Provides a small performance boost. ambrop7 2012-10-24 11:25:10 +00:00
  • 5c7ae5f459 ncd: renumber some state values ambrop7 2012-10-24 11:13:28 +00:00
  • 075b6c643a ncd: NCDModule: have the interpreter initialize the mem pointer itself. This allows us to remove the 'mem' pointer of struct statement and use the one in NCDModuleInst. ambrop7 2012-10-24 02:06:00 +00:00
  • ec7303ccf5 ncd: NCDModule: remove NCDModuleInst_Backend_SetUser() ambrop7 2012-10-24 01:40:36 +00:00
  • ff73d4b7ac ncd: modules: getargs: don't use NCDModuleInst_Backend_SetUser() ambrop7 2012-10-24 01:39:20 +00:00
  • 6a1f26bb41 ncd: NCDInterpreter: cosmetic changes ambrop7 2012-10-24 00:29:26 +00:00
  • 9e1b1ebbfb ncd: ncd.c: cosmetic changes ambrop7 2012-10-23 23:33:49 +00:00
  • 574537745c ncd: ncd.c: don't use a static variable main_exit_code ambrop7 2012-10-23 22:57:37 +00:00
  • 5fd8a91309 ncd: ncd.c: only use syslog if it's available ambrop7 2012-10-23 22:55:39 +00:00
  • 1ebc9e1fa0 port NCD to Emscripten ambrop7 2012-10-23 01:07:14 +00:00
  • 06f48a4521 ncd: remove some debug prints that slipped through ambrop7 2012-10-22 02:02:34 +00:00
  • ae8c3f54d3 ncd: move the mechanical part of ncd.c into NCDInterpreter.{h,c}. This will allow embedding of the NCD interpreter, and possibly running multiple intepreters in the same program, when global state is removed from modules. ambrop7 2012-10-22 01:20:44 +00:00
  • b872ade2c4 ncd: NCDModule: add a pass-through pointer for interpreter callbacks ambrop7 2012-10-22 01:03:49 +00:00
  • 5854094b75 ncd: when specifying program without --config-file option, treat everything that follows as program options ambrop7 2012-10-21 15:25:13 +00:00
  • a382f83a07 ncd: allow specifying program file without --config-file option ambrop7 2012-10-21 15:12:01 +00:00
  • b7c2bab1e0 fix build under Windows/MSVC ambrop7 2012-10-21 14:55:20 +00:00
  • ac5c800244 examples: add cavl_test.c ambrop7 2012-10-21 14:40:31 +00:00
  • bbc30074ce ncd: use default loglevel BLOG_INFO for all channels ambrop7 2012-10-21 14:21:01 +00:00
  • 3ba18f4179 CMakeLists.txt: only pass -Wno-initializer-overrides to Clang ambrop7 2012-10-21 14:16:29 +00:00
  • 51a6b7ecf1 ncd: modules: value: remove uninitialized variable warning ambrop7 2012-10-21 14:15:34 +00:00
  • 8d14680c53 structure: CAvl, CHash: detect if CAvl.h or CHash.h is not included in _header.h ambrop7 2012-10-21 12:58:24 +00:00
  • e0519d87f6 version 1.999.125rc3 ambrop7 2012-10-21 01:10:17 +00:00
  • 2362c0c0ab ncd: modules: more number generation updates ambrop7 2012-10-21 01:05:31 +00:00
  • bb03d3d244 ncd: modules: more number generation updates ambrop7 2012-10-21 00:57:11 +00:00
  • cf32d123ed ncd: modules: file: use generate_decimal_repr_string() ambrop7 2012-10-21 00:46:17 +00:00
  • 88f5990427 misc/parse_number.h: add generate_decimal_repr_string() ambrop7 2012-10-21 00:41:23 +00:00
  • 1ee2f80760 ncd: modules: use ncd_make_uintmax() where appropriate ambrop7 2012-10-21 00:40:18 +00:00
  • d1eaf84490 ncd/value_utils.h: add ncd_make_uintmax() ambrop7 2012-10-21 00:34:02 +00:00