office-gobmx/idl
Noel Grandin d4c0e39d93 make the slot data constinit
because it takes a surprising amount of time to initialise it
at runtime during startup

(*) have to convert the std::function in SfxType to a
function pointer, because the std::function constructor
is not constinit compatible.

(*) the SfxType0..SfxTypeN types need some reinterpret_cast
to work around the lack of zero-sized trailing arrays in c++

(*) Sadly MSVC does not support taking the address of symbols
in constinit structures, so we cannot make the SfxSlot
array constinit.

Change-Id: I300ee770cc115d30bc25c819f2ad34b29633876c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166963
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-02 14:37:56 +02:00
..
inc tdf#143148 update all headers in idl/inc to use #pragma once 2024-03-16 20:20:21 +01:00
source make the slot data constinit 2024-05-02 14:37:56 +02:00
Executable_svidl.mk Use less zlib external headers dependency 2023-09-18 08:34:34 +02:00
IwyuFilter_idl.yaml Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
Makefile re-base on ALv2 code. Includes: 2012-07-13 21:38:47 +01:00
Module_idl.mk more subtle dependencies for cross-compilation 2013-03-13 16:26:10 +01:00
README.md

SvIDL Compiler

SvIDL Compiler that generates C++ slot headers from SDI files in modules' sdi/ subdirectory.

There is an overview of basic architecture of the markup of SDI files in the OpenOffice wiki:

https://wiki.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2