File 0143-erts-Mark-FUN_EXT-as-deprecated.patch of Package erlang
From f4505b5eeb786864b877cf099fdf49e69d798a4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Muska=C5=82a?= <micmus@whatsapp.com>
Date: Thu, 28 Oct 2021 11:09:46 +0100
Subject: [PATCH] erts: Mark FUN_EXT as deprecated
Since OTP 23 the `FUN_EXT` encoding is not decoded by binary_to_term.
Mark it as removed.
---
erts/doc/src/erl_ext_dist.xml | 48 +++--------------------------------
1 file changed, 3 insertions(+), 45 deletions(-)
diff --git a/erts/doc/src/erl_ext_dist.xml b/erts/doc/src/erl_ext_dist.xml
index 06e9ac639d..e935e13c95 100644
--- a/erts/doc/src/erl_ext_dist.xml
+++ b/erts/doc/src/erl_ext_dist.xml
@@ -1110,7 +1110,7 @@
<section>
<marker id="FUN_EXT"/>
- <title>FUN_EXT</title>
+ <title>FUN_EXT (removed)</title>
<table align="left">
<row>
<cell align="center">1</cell>
@@ -1131,46 +1131,7 @@
<cell align="center"><c>Free vars ...</c></cell>
</row>
<tcaption>FUN_EXT</tcaption></table>
- <taglist>
- <tag><c>Pid</c></tag>
- <item>
- <p>A process identifier as in
- <seeguide marker="#PID_EXT"><c>PID_EXT</c></seeguide>.
- Represents the process in which the fun was created.
- </p>
- </item>
- <tag><c>Module</c></tag>
- <item>
- <p>
- The module that the fun is implemented in,
- <seeguide marker="#utf8_atoms">encoded as an atom</seeguide>.
- </p>
- </item>
- <tag><c>Index</c></tag>
- <item>
- <p>An integer encoded using
- <seeguide marker="#SMALL_INTEGER_EXT">
- <c>SMALL_INTEGER_EXT</c></seeguide>
- or <seeguide marker="#INTEGER_EXT"><c>INTEGER_EXT</c></seeguide>.
- It is typically a small index into the module's fun table.
- </p>
- </item>
- <tag><c>Uniq</c></tag>
- <item>
- <p>An integer encoded using
- <seeguide marker="#SMALL_INTEGER_EXT">
- <c>SMALL_INTEGER_EXT</c></seeguide> or
- <seeguide marker="#INTEGER_EXT"><c>INTEGER_EXT</c></seeguide>.
- <c>Uniq</c> is the hash value of the parse for the fun.
- </p>
- </item>
- <tag><c>Free vars</c></tag>
- <item>
- <p><c>NumFree</c> number of terms, each one encoded according
- to its type.
- </p>
- </item>
- </taglist>
+ <p>Not emitted since OTP R8, and not decoded since OTP 23.</p>
</section>
<section>
@@ -1205,7 +1166,7 @@
</row>
<tcaption>NEW_FUN_EXT</tcaption></table>
<p>
- This is the new encoding of internal funs: <c>fun F/A</c> and
+ This is the encoding of internal funs: <c>fun F/A</c> and
<c>fun(Arg1,..) -> ... end</c>.
</p>
<taglist>
--
2.31.1