Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
1302-Fix-typos-in-erts-lib_src.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1302-Fix-typos-in-erts-lib_src.patch of Package erlang
From 18cc15bcb502b25ffb9771ee8b38a328d03bda54 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" <kianmeng@cpan.org> Date: Wed, 17 Nov 2021 10:59:45 +0800 Subject: [PATCH] Fix typos in erts/lib_src --- erts/lib_src/common/erl_memory_trace_parser.c | 6 +++--- erts/lib_src/common/ethr_atomics.c | 2 +- erts/lib_src/common/ethr_cbf.c | 2 +- erts/lib_src/common/ethr_mutex.c | 2 +- erts/lib_src/pthread/ethread.c | 4 ++-- erts/lib_src/utils/make_atomics_api | 2 +- erts/lib_src/yielding_c_fun/lib/tiny_regex_c/README.md | 2 +- .../test/examples/sha256_erlang_nif/c_src/sha-2/README.md | 2 +- .../test/examples/sha256_erlang_nif/c_src/sha-2/sha-256.c | 2 +- .../sha256_erlang_nif/c_src/sha-2/sha-256_orginal.c | 2 +- .../test/examples/sha256_erlang_nif/c_src/sha256_nif.c | 2 +- erts/lib_src/yielding_c_fun/ycf_lexer.c | 2 +- erts/lib_src/yielding_c_fun/ycf_node.c | 2 +- erts/lib_src/yielding_c_fun/ycf_printers.c | 2 +- erts/lib_src/yielding_c_fun/ycf_yield_fun.c | 4 ++-- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/erts/lib_src/common/erl_memory_trace_parser.c b/erts/lib_src/common/erl_memory_trace_parser.c index 0232708ad1..ffcb9749c4 100644 --- a/erts/lib_src/common/erl_memory_trace_parser.c +++ b/erts/lib_src/common/erl_memory_trace_parser.c @@ -357,13 +357,13 @@ emtp_state_destroy(emtp_state *statep) * and parse_header. * * Note that some of them depend on function local variable names - * and lables: + * and labels: * * Variables: * * result -> the result to return * * statep -> pointer to the state * - * Lables: + * Labels: * * restore_return -> restore then return result */ @@ -1681,7 +1681,7 @@ emtp_parse(emtp_state *statep, statep->force_return = 0; - if (statep->overflow_size) { /* Overflow from prevoius parse */ + if (statep->overflow_size) { /* Overflow from previous parse */ sgnd_int_32 tsz; sgnd_int_32 sz; diff --git a/erts/lib_src/common/ethr_atomics.c b/erts/lib_src/common/ethr_atomics.c index 1594d78f5e..6da9e76cfb 100644 --- a/erts/lib_src/common/ethr_atomics.c +++ b/erts/lib_src/common/ethr_atomics.c @@ -62,7 +62,7 @@ * - read * - init * - * Appart from a function implementing the atomic operation + * Apart from a function implementing the atomic operation * with unspecified memory barrier semantics, there are * functions implementing each operation with the following * implied memory barrier semantics: diff --git a/erts/lib_src/common/ethr_cbf.c b/erts/lib_src/common/ethr_cbf.c index 037559be22..3f4a16dbfb 100644 --- a/erts/lib_src/common/ethr_cbf.c +++ b/erts/lib_src/common/ethr_cbf.c @@ -21,7 +21,7 @@ /* * We keep this function alone in a separate file so the - * compiler wont optimize it away. + * compiler won't optimize it away. */ #ifdef HAVE_CONFIG_H diff --git a/erts/lib_src/common/ethr_mutex.c b/erts/lib_src/common/ethr_mutex.c index acc7cb2da2..d8d8cde8e8 100644 --- a/erts/lib_src/common/ethr_mutex.c +++ b/erts/lib_src/common/ethr_mutex.c @@ -1905,7 +1905,7 @@ rwmutex_freqread_rdrs_dec_chk_wakeup(ethr_rwmutex *rwmtx, * A writer that just enqueued (not seen by us * in flag field) may depend on someone else * completing the runlock. We just took over - * that responsibilty since we modified reader + * that responsibility since we modified reader * groups. */ rwmutex_try_complete_runlock(rwmtx, act, tse, 1, 0, 0); diff --git a/erts/lib_src/pthread/ethread.c b/erts/lib_src/pthread/ethread.c index 2a7f6aa18a..95587d73b4 100644 --- a/erts/lib_src/pthread/ethread.c +++ b/erts/lib_src/pthread/ethread.c @@ -146,7 +146,7 @@ ppc_init__(void) { int pid; - /* If anything what so ever failes we assume no lwsync for safety */ + /* If anything what so ever fails we assume no lwsync for safety */ ethr_runtime__.conf.have_lwsync = 0; /* @@ -219,7 +219,7 @@ ethr_x86_cpuid__(int *eax, int *ebx, int *ecx, int *edx) #endif #if ETHR_SIZEOF_PTR == 4 && defined(__PIC__) && __PIC__ /* - * When position independet code is used in 32-bit mode, the B register + * When position independent code is used in 32-bit mode, the B register * is used for storage of global offset table address, and we may not * use it as input or output in an asm. We need to save and restore the * B register explicitly (for some reason gcc doesn't provide this diff --git a/erts/lib_src/utils/make_atomics_api b/erts/lib_src/utils/make_atomics_api index f960b97c87..4bb1880c23 100755 --- a/erts/lib_src/utils/make_atomics_api +++ b/erts/lib_src/utils/make_atomics_api @@ -1463,7 +1463,7 @@ comments() -> end, ?DW_ATOMIC_OPS), " * - * Appart from a function implementing the atomic operation + * Apart from a function implementing the atomic operation * with unspecified memory barrier semantics, there are * functions implementing each operation with the following * implied memory barrier semantics:", -- 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