Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
erlang
0841-Fix-typos-in-lib-erl_interface.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0841-Fix-typos-in-lib-erl_interface.patch of Package erlang
From b98c0d43ca07bcda48d09520e9aec27e110abdc3 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" <kianmeng@cpan.org> Date: Tue, 14 Dec 2021 08:12:47 +0800 Subject: [PATCH] Fix typos in lib/erl_interface --- lib/erl_interface/doc/src/ei_connect.xml | 10 +++++----- lib/erl_interface/doc/src/notes.xml | 2 +- lib/erl_interface/src/Makefile.in | 2 +- lib/erl_interface/src/README.internal | 10 +++++----- lib/erl_interface/src/connect/ei_connect.c | 10 +++++----- lib/erl_interface/src/connect/ei_connect_int.h | 2 +- lib/erl_interface/src/connect/eirecv.c | 2 +- lib/erl_interface/src/decode/decode_atom.c | 2 +- lib/erl_interface/src/encode/encode_atom.c | 2 +- lib/erl_interface/src/epmd/epmd_unpublish.c | 2 +- lib/erl_interface/src/misc/ei_pthreads.c | 2 +- lib/erl_interface/test/all_SUITE_data/ei_runner.c | 2 +- .../test/ei_accept_SUITE_data/eiaccnode.c | 2 +- .../test/ei_connect_SUITE_data/ei_connect_test.c | 2 +- lib/erl_interface/test/ei_connect_SUITE_data/einode.c | 2 +- lib/erl_interface/test/ei_decode_SUITE.erl | 2 +- lib/erl_interface/test/ei_encode_SUITE.erl | 2 +- .../test/ei_global_SUITE_data/ei_global_test.c | 2 +- lib/erl_interface/test/ei_tmo_SUITE.erl | 2 +- 19 files changed, 31 insertions(+), 31 deletions(-) diff --git a/lib/erl_interface/doc/src/notes.xml b/lib/erl_interface/doc/src/notes.xml index 147cf28619..91cd90721b 100644 --- a/lib/erl_interface/doc/src/notes.xml +++ b/lib/erl_interface/doc/src/notes.xml @@ -2032,7 +2032,7 @@ </item> <item> <p> - In <c>send_exit.c</c> an errorneous size of memory + In <c>send_exit.c</c> an erroneous size of memory allocation could occur when reallocating a buffer.</p> <p> In <c>ei_decode_trace.c</c> the index could be updated diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in index 56fdaa608e..32e064f703 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in @@ -22,7 +22,7 @@ ## ## This is a standalone make file for erl_interface. It is ## to be preprocessed by the configure script and the result -## is saved into the TARGER directory. +## is saved into the TARGET directory. ## ## We use 'vpath' to use plain C file names without the directory ## part in dependency rules. diff --git a/lib/erl_interface/src/README.internal b/lib/erl_interface/src/README.internal index 51be1159d3..2f53b08802 100644 --- a/lib/erl_interface/src/README.internal +++ b/lib/erl_interface/src/README.internal @@ -3,7 +3,7 @@ ****************************************************************************** There are two different interfaces, the old 'erl_interface' and 'ei'. -The old interface is to depend on the new one, not the other way arount. +The old interface is to depend on the new one, not the other way around. Erl_interface should be "thread safe", i.e. you should be able to handle connections, convert data etc from different threads. @@ -143,7 +143,7 @@ source. "eidef.h" contains some common constants and macros and also includes config.h. In general avoid including other header files from header files. -The exception is to make the protoypes complete to the user of +The exception is to make the prototypes complete to the user of this library, i.e. to include <stdio.h> to defined FILE or to include "ei_x_encode" to define the type ei_x_buff. @@ -157,11 +157,11 @@ where size matters ;-) Use uint8 for buffers where we construct messages. NOTE!!!! Sending a "char" to macros like isupper(), isalpha() where -the character is > 127 will cause serios problems on some +the character is > 127 will cause serious problems on some machines/OS. The reason is that 'char' may be unsigned, i.e. the Swedish char 'รค' will - as a number be negativ. + as a number be negative. The implementation of isupper() and others will on some machines use an array that is indexed with the incoming @@ -237,7 +237,7 @@ long" operations will create a dependency to a "hidden" library libei.a[decode_longlong.o]: [6] | 0| 0|NOTY |GLOB |0 |UNDEF |__ashldi3 libei.a[decode_ulonglong.o]: [5] | 0| 0|NOTY |GLOB |0 |UNDEF |__ashldi3 -We can accept that a dependecy is created for code linked with +We can accept that a dependency is created for code linked with "libei.a" that actually use 'ei' long long functions. But if we arrange the 'ei' source badly using a non "long long" functions from 'ei' will still link in an object file that need "libgcc.a". One diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c index 9cf30fde4c..fd7b4e24b0 100644 --- a/lib/erl_interface/src/connect/ei_connect.c +++ b/lib/erl_interface/src/connect/ei_connect.c @@ -402,7 +402,7 @@ int ei_init_connect(void) /* * Perhaps run this routine instead of ei_connect_init/2 ? -* Initailize by setting: +* Initialize by setting: * thishostname, thisalivename, thisnodename and thisipaddr */ int ei_connect_xinit(ei_cnode* ec, const char *thishostname, diff --git a/lib/erl_interface/src/connect/ei_connect_int.h b/lib/erl_interface/src/connect/ei_connect_int.h index 63079b8e06..884a7e4dc0 100644 --- a/lib/erl_interface/src/connect/ei_connect_int.h +++ b/lib/erl_interface/src/connect/ei_connect_int.h @@ -56,7 +56,7 @@ #include <sys/utsname.h> /* for gen_challenge (NEED FIX?) */ #endif -/* FIXME remove duplicate defintions */ +/* FIXME remove duplicate definitions */ #define DEFBUF_SIZ 100 diff --git a/lib/erl_interface/src/epmd/epmd_unpublish.c b/lib/erl_interface/src/epmd/epmd_unpublish.c index c463732250..4ec3c9437a 100644 --- a/lib/erl_interface/src/epmd/epmd_unpublish.c +++ b/lib/erl_interface/src/epmd/epmd_unpublish.c @@ -69,7 +69,7 @@ int ei_unpublish_tmo(const char *alive, unsigned ms) put8(s,EI_EPMD_STOP_REQ); strcpy(s, alive); - /* FIXME can't connect, return success?! At least commen whats up */ + /* FIXME can't connect, return success?! At least comment what's up */ if ((fd = ei_epmd_connect_tmo(NULL,ms)) < 0) return fd; if ((res = ei_write_fill_t(fd, buf, len+2,ms)) != len+2) { diff --git a/lib/erl_interface/src/misc/ei_pthreads.c b/lib/erl_interface/src/misc/ei_pthreads.c index df7a7fbb8f..126f4a1749 100644 --- a/lib/erl_interface/src/misc/ei_pthreads.c +++ b/lib/erl_interface/src/misc/ei_pthreads.c @@ -158,7 +158,7 @@ static void erl_errno_key_alloc(void) * If pthread functions fail we fall back to using fallback_errno * so that the main thread (actually not a thread in all ascpects) * still will set and get an erl_errno value. - * Actually this is a bit to nice, it would be preferrable to exit fatal + * Actually this is a bit to nice, it would be preferable to exit fatal * as we do on windows, but we might break some code with one thread * but still compiled with -D_REENTRANT, so we'll leave it here. */ diff --git a/lib/erl_interface/test/all_SUITE_data/ei_runner.c b/lib/erl_interface/test/all_SUITE_data/ei_runner.c index 56c88c46f2..19812e5078 100644 --- a/lib/erl_interface/test/all_SUITE_data/ei_runner.c +++ b/lib/erl_interface/test/all_SUITE_data/ei_runner.c @@ -274,7 +274,7 @@ void do_fail(const char* file, int line, const char* reason, ...) /* * This function sends a message to the Erlang side. * The message will be written to the test servers log file, - * but will otherwise be completly ignored. + * but will otherwise be completely ignored. */ void message(char* format, ...) diff --git a/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c b/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c index ef1ab96d41..8276d31bd2 100644 --- a/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c +++ b/lib/erl_interface/test/ei_accept_SUITE_data/eiaccnode.c @@ -144,7 +144,7 @@ static void* ei_x_free(&x); ei_x_free(&xs); } else { - printf("coudn't connect fd %d r %d\n", fd, r); + printf("couldn't connect fd %d r %d\n", fd, r); } printf("done thread %d\n", n); /* fclose(f);*/ diff --git a/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c b/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c index 2b42cfd6ed..75dba6a7a0 100644 --- a/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c +++ b/lib/erl_interface/test/ei_connect_SUITE_data/ei_connect_test.c @@ -72,7 +72,7 @@ static struct { /* - * Sends a list contaning all data types to the Erlang side. + * Sends a list containing all data types to the Erlang side. */ TESTCASE(interpret) diff --git a/lib/erl_interface/test/ei_connect_SUITE_data/einode.c b/lib/erl_interface/test/ei_connect_SUITE_data/einode.c index 8af8760f30..005f20e5cf 100644 --- a/lib/erl_interface/test/ei_connect_SUITE_data/einode.c +++ b/lib/erl_interface/test/ei_connect_SUITE_data/einode.c @@ -89,7 +89,7 @@ static void* shutdown(fd, SD_SEND); closesocket(fd); } else { - printf("coudn't connect fd %d r %d\n", fd, r); // DebugBreak(); + printf("couldn't connect fd %d r %d\n", fd, r); // DebugBreak(); } printf("done thread %d\n", n); return 0; diff --git a/lib/erl_interface/test/ei_decode_SUITE.erl b/lib/erl_interface/test/ei_decode_SUITE.erl index a51078f7e7..bd7def7624 100644 --- a/lib/erl_interface/test/ei_decode_SUITE.erl +++ b/lib/erl_interface/test/ei_decode_SUITE.erl @@ -51,7 +51,7 @@ init_per_testcase(Case, Config) -> %% --------------------------------------------------------------------------- -% NOTE: for historical reasons we don't pach as tight as we can, +% NOTE: for historical reasons we don't patch as tight as we can, % we only fill 27 bits in 32 bit INTEGER_EXT diff --git a/lib/erl_interface/test/ei_encode_SUITE.erl b/lib/erl_interface/test/ei_encode_SUITE.erl index 10fcd6b871..670d6aa10b 100644 --- a/lib/erl_interface/test/ei_encode_SUITE.erl +++ b/lib/erl_interface/test/ei_encode_SUITE.erl @@ -52,7 +52,7 @@ init_per_testcase(Case, Config) -> %% --------------------------------------------------------------------------- -% NOTE: for historical reasons we don't pach as tight as we can, +% NOTE: for historical reasons we don't patch as tight as we can, % we only fill 27 bits in 32 bit INTEGER_EXT diff --git a/lib/erl_interface/test/erl_global_SUITE_data/erl_global_test.c b/lib/erl_interface/test/erl_global_SUITE_data/erl_global_test.c index dd41afe77e..8ab4108bcf 100644 --- a/lib/erl_interface/test/erl_global_SUITE_data/erl_global_test.c +++ b/lib/erl_interface/test/erl_global_SUITE_data/erl_global_test.c @@ -54,7 +54,7 @@ static struct { /* - * Sends a list contaning all data types to the Erlang side. + * Sends a list containing all data types to the Erlang side. */ TESTCASE(interpret) diff --git a/lib/erl_interface/test/ei_tmo_SUITE.erl b/lib/erl_interface/test/ei_tmo_SUITE.erl index 2db002b5f8..9dd49fcc1b 100644 --- a/lib/erl_interface/test/ei_tmo_SUITE.erl +++ b/lib/erl_interface/test/ei_tmo_SUITE.erl @@ -500,7 +500,7 @@ gen_digest(Challenge, Cookie) when is_integer(Challenge), is_atom(Cookie) -> %% -%% The differrent stages of the MD5 handshake +%% The different stages of the MD5 handshake %% send_status(Socket, Stat) -> -- 2.31.1
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