Picol  Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

28 check-ins that include changes to files matching 'examples/*'

2021-04-17
07:55
examples/privdata.c: add more tests. check-in: a5fe71f1c1 user: dbohdan tags: trunk
07:49
Make PICOL_EVAL_BUF_SIZE part of the configuration. check-in: 9f4f9d7bdc user: dbohdan tags: trunk
2021-04-16
20:50
Fix a segfault when deleting an alias. Introduce reference counting for procs (procargument lists and bodies) as part of the fix. Implement new functions picolFreeCmd() and picolRenameCmd(). Do not reuse an existing list item when renaming a command: that code is too difficult to understand and debug; delete and recreate the command instead. Reorder struct fields to put "next" pointers first. I don't plan on reordering them again, though I may add more fields. Add more tests in examples/privdata.c. check-in: 87fe2ef71f user: dbohdan tags: trunk
15:41
Add the field "isproc" to picolCmd (like in Jim Tcl). Do not free the privdata when deleting native code commands. Add a privdata example. Bump the version 0.6.0. check-in: 020d98ff48 user: dbohdan tags: trunk
2021-04-07
08:02
Build with -Wextra. Fix the -Wextra warnings. Bump the version to 0.5.1. check-in: fb70c55516 user: dbohdan tags: trunk, version-0.5.1
2020-07-12
19:04
examples/command.c: Increase PICOL_SOURCE_BUF_SIZE to one byte. check-in: f8efc34b49 user: dbohdan tags: trunk
18:59
picolSource(): Make the buffer size configurable at compile time. check-in: 14f37e7b92 user: dbohdan tags: trunk
12:37
vendor/regexp: Convert to a header-only library. check-in: 8fbcfca936 user: dbohdan tags: trunk
2020-07-11
10:15
examples/regexp-ext.c: Add an unused submatch variable. check-in: 0882d85ac8 user: dbohdan tags: trunk
2020-07-09
08:23
examples/regexp-ext.c: Fix not instantiating the regexp wrapper implementation. check-in: 2447661e4e user: dbohdan tags: trunk
2020-07-08
15:04
Prefix the names of function-like macros like COMMAND with "PICOL_". Bump the version to 0.4.0. check-in: 00aa74258e user: dbohdan tags: trunk
2017-05-14
05:01
examples/regexp-ext.c: Update the example's title. check-in: ef31bc9409 user: dbohdan tags: trunk
2017-05-12
05:03
Merge the implementation for [string index] and [string range]. Make [lindex] and [string index] understand the index "end". Fix [string index {}] returning garbage. Fix [string range] omitting the final character. check-in: 4fc780fd06 user: dbohdan tags: trunk
2017-05-10
15:09
Factor out the [regexp] command into a separate extension file extensions/regexp-wrapper.h. Include the regexp extension in the interpreter. Rename examples/regexp-lib.c examples/regexp-ext.c. check-in: d35ba49095 user: dbohdan tags: trunk
2017-05-08
20:13
Add an example that exposes a small C regexp library to Picol. check-in: 59f255bf1b user: dbohdan tags: trunk
19:39
[user C code breakage] Rename MAXSTR "PICOL_MAX_STR". Rename MAXRECURSION "PICOL_MAX_LEVEL". Add the field maxlevel to the struct picolInterp. Make it possible to [catch] a maximum level error (the current behavior probably wasn't intended). Do not override a manually set PICOL_FEATURE_GLOB when compiled with MSVC. Parse binary (0b1010...), hexadecimal (0x1234...) and octal (0o1234..., but *not* 01234...) integers wherever integers are accepted. Set a new default value for PICOL_MAX_LEVEL. It was determined experimentally as the highest that does not cause a stack overflow in the test fac.3 in 32-bit MinGW and MSVC Windows builds of the interpreter when PICOL_MAX_STR is set to 4096. Bump the version to 0.3.0. check-in: 1df906db51 user: dbohdan tags: trunk
2017-05-06
06:38
Fix the examples. check-in: c2a9e83ee3 user: dbohdan tags: trunk
2016-09-13
19:28
Minor edits to the code comments. check-in: c807c23351 user: dbohdan tags: trunk
2016-08-15
11:16
Implement picolCreateInterp2(int register_core_cmds, int randomize). Bump version to 0.1.33. check-in: 1b2932cb10 user: dbohdan tags: trunk, version-0.1.33
2016-01-29
13:09
Validate the format string argument to [format] to prevent segmentation faults. Better error messages and more Tcl-like error handling in [scan]. Code formatting and comments. check-in: cf3e3609d8 user: dbohdan tags: trunk
2016-01-28
16:27
Wrap macro expansions in a "do { ... } while (0)" block where appropriate. check-in: 69e6a63640 user: dbohdan tags: trunk
14:39
Make arrays and the command [interp] optional features enabled with the setting PICOL_FEATURE_ARRAYS and PICOL_FEATURE_INTERP respectively. Make tests run correctly with PICOL_FEATURE_IO disabled. A copy of Picol built without arrays, [interp] and I/O doesn't read pointers serialized in strings, thus making segfaults less likely. check-in: 13b63bd8ba user: dbohdan tags: trunk
13:41
Merge the interface and the implementation for Picol in a single stb-style include file (see https://github.com/nothings/stb/), picol.h. This makes it easier to embed without modifying your build configuration and possible to configure without touching the contents of picol.h itself. check-in: c247c62162 user: dbohdan tags: trunk
2016-01-27
17:26
Bump version to 0.1.24. Remove examples/Makefile. Use the main Makefile to build the examples instead. Run the [glob] tests only if the command [glob] is present. check-in: 1c8177696e user: dbohdan tags: trunk
2016-01-25
14:44
Windows compatibility in init.pcl and test.pcl. Windows (MinGW) build script and Makefile changes. Consolidate configuration in the array ::test_config in test.pcl. check-in: 8a7b653db7 user: dbohdan tags: trunk
2016-01-23
20:49
Change "gcc" to "cc" in Makefiles check-in: 28343a85fd user: dbohdan tags: trunk
20:46
Add a custom command example. check-in: b0bbbeedf3 user: dbohdan tags: trunk
20:26
Add a "Hello, World!" example of use of Picol as a library. check-in: f6c666d5d3 user: dbohdan tags: trunk