From dbeaca78bc6c0d4719a522e447fa59d7a1006ae0 Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Tue, 5 Feb 2019 15:55:23 +0100 Subject: Introduce ei_init() You previously had to initialize ei via erl_init() which implied that you were forced to link against the erl_interface even when not using it (besides initializing ei). --- lib/erl_interface/doc/src/ei.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/erl_interface/doc/src/ei.xml') diff --git a/lib/erl_interface/doc/src/ei.xml b/lib/erl_interface/doc/src/ei.xml index 9502fb1ee7..a7cbf06085 100644 --- a/lib/erl_interface/doc/src/ei.xml +++ b/lib/erl_interface/doc/src/ei.xml @@ -732,6 +732,21 @@ ei_encode_tuple_header(buf, &i, 0); + + intei_init(void) + Initialize the ei library. + +

Initialize the ei library. This function should be called once + (and only once) before calling any other functionality in the ei + library. However, note the exception below.

+

If the ei library is used together with the erl_interface + library, this function should not be called directly. It will be + called by the erl_init() function which should be used to initialize + the combination of the two libraries instead.

+

On success zero is returned. On failure a posix error code is returned.

+
+
+ intei_print_term(FILE* fp, const char* buf, int* index) intei_s_print_term(char** s, const char* buf, int* index) -- cgit v1.2.3