Gimp/plug-ins/script-fu
bootchk 98bf051e7a Fix #10044 more natural binding of PDB return values
Allow (script-fu-use-v3) in script, or in SF Console.

Definitive description is in script-fu/docs/using-v3-binding.md

Makes SF interpret v3 of SF dialect.
  - marshals single return value from PDB without wrapping in list
  - marshals boolean return value from PDB as #t #f instead of integers
  - marshals boolean to PDB from #t and #f or TRUE and FALSE
  - marshals void return from PDB as () instead of (#t), but that is moot.

The version of SF dialect is distinct from the version of the PDB API.

Dialect v3 is opt-in: the initial dialect of all SF tools remains v2.

Commit also allows #t,#f for defaults of SF-TOGGLE instead of TRUE, FALSE
but that is an independent enhancement (but closely related.)

Affects interpreter state of the current process.
Not an attribute per se of a plugin.
While in this state, a plugin should not call PDB procedures
which are themselves v2 script plugins,
or a few utility scripts in script-fu-util.scm,
but that is rarely needed.

Does not remove symbols TRUE and FALSE from dialect.

A script can also call (script-fu-use-v2) to revert.
That is also discouraged but useful e.g. for testing.
2024-03-09 07:21:50 -05:00
..
console plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
docs Fix #10044 more natural binding of PDB return values 2024-03-09 07:21:50 -05:00
interpreter ScriptFu: fix #11013 ts-hello-world.scm crashes at query time 2024-03-08 08:16:20 -05:00
libscriptfu Fix #10044 more natural binding of PDB return values 2024-03-09 07:21:50 -05:00
scripts Fix #10044 more natural binding of PDB return values 2024-03-09 07:21:50 -05:00
server Get rid of old Windows specific defines 2024-01-24 12:10:00 -05:00
test Test: add color/pixel related tests 2024-03-08 11:49:38 +00:00
gimp-script-fu-interpreter.interp.in build/windows, data, extensions, plug-ins: Fix Build omissions 2024-01-02 10:49:31 +00:00
meson.build build/windows, data, extensions, plug-ins: Fix Build omissions 2024-01-02 10:49:31 +00:00
script-fu-eval.c plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-eval.h plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-text-console.c plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu-text-console.h plug-ins, libgimp: move GimpBatchProcedure's run function to use config objects. 2023-10-01 20:52:01 +02:00
script-fu.c libgimp, plug-ins: rename gimp_procedure_new2() as gimp_procedure_new() and… 2023-10-01 20:52:01 +02:00