Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0272-Modernize-text-i-NIF-tutorial.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0272-Modernize-text-i-NIF-tutorial.patch of Package erlang
From b81458a1375be7709d428324ef97550c39e21d2f Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Wed, 22 Jun 2022 20:47:20 +0200 Subject: [PATCH 1/2] Modernize text i NIF tutorial --- system/doc/tutorial/complex6.erl | 1 + system/doc/tutorial/nif.xmlsrc | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/doc/tutorial/complex6.erl b/system/doc/tutorial/complex6.erl index a5f51886c8..05aa8e68f1 100644 --- a/system/doc/tutorial/complex6.erl +++ b/system/doc/tutorial/complex6.erl @@ -1,5 +1,6 @@ -module(complex6). -export([foo/1, bar/1]). +-nifs([foo/1, bar/1]). -on_load(init/0). init() -> diff --git a/system/doc/tutorial/nif.xmlsrc b/system/doc/tutorial/nif.xmlsrc index 24b2f510e3..c93705cbe7 100644 --- a/system/doc/tutorial/nif.xmlsrc +++ b/system/doc/tutorial/nif.xmlsrc @@ -32,8 +32,7 @@ <p>This section outlines an example of how to solve the example problem in <seeguide marker="example">Problem Example</seeguide> by using Native Implemented Functions (NIFs).</p> - <p>NIFs were introduced in Erlang/OTP R13B03 as an experimental - feature. It is a simpler and more efficient way of calling C-code + <p>NIFs are a simpler and more efficient way of calling C-code than using port drivers. NIFs are most suitable for synchronous functions, such as <c>foo</c> and <c>bar</c> in the example, that do some relatively short calculations without side effects and @@ -99,7 +98,7 @@ <codeinclude file="complex6_nif.c" tag="" type="none"></codeinclude> - <p>Here,<c>ERL_NIF_INIT</c> has the following arguments:</p> + <p>Here, <c>ERL_NIF_INIT</c> has the following arguments:</p> <list type="bulleted"> <item><p>The first argument must be the name of the Erlang module as a C-identifier. It will be stringified by the -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor