From 2e50d4f0e51f166e0e617adf529bc85715600621 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Wed, 22 Dec 2021 18:06:20 +0100 Subject: [PATCH] Replace http:// with https:// for various links throughout codebase --- .editorconfig | 2 +- samples/posix.mak | 2 +- src/dmd/backend/dwarf.d | 6 +++--- src/dmd/backend/elfobj.d | 2 +- src/dmd/backend/mscoffobj.d | 2 +- src/dmd/chkformat.d | 6 +++--- src/dmd/dmodule.d | 2 +- src/dmd/entity.d | 4 ++-- src/dmd/expressionsem.d | 2 +- src/dmd/globals.d | 2 +- src/dmd/intrange.d | 2 +- src/dmd/root/longdouble.h | 2 +- src/dmd/root/stringtable.d | 2 +- test/runnable/traits_child.d | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.editorconfig b/.editorconfig index 7e7b18764b..a35676cafa 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,4 @@ -# EditorConfig file: http://editorconfig.org/ +# EditorConfig file: https://editorconfig.org/ root = true diff --git a/samples/posix.mak b/samples/posix.mak index 60432ab4e0..bbb1f8de54 100644 --- a/samples/posix.mak +++ b/samples/posix.mak @@ -43,7 +43,7 @@ LFLAGS = ## Basically, if you had some Makefile knowledge, this is all you need. ## ## For explanation / more advanced use, see: -## http://www.gnu.org/software/make/manual/html_node/Suffix-Rules.html +## https://www.gnu.org/software/make/manual/html_node/Suffix-Rules.html .SUFFIXES: .d .d.o: $(DMD) $(DFLAGS) -c $< -of$@ diff --git a/src/dmd/backend/dwarf.d b/src/dmd/backend/dwarf.d index 77b85b5aaa..24e5652bda 100644 --- a/src/dmd/backend/dwarf.d +++ b/src/dmd/backend/dwarf.d @@ -2,9 +2,9 @@ * Definitions for DWARF debug infos (v3 to v5) * * See_Also: - * - $(LINK2 http://www.dwarfstd.org/doc/Dwarf3.pdf, DWARFv3 standard) - * - $(LINK2 http://www.dwarfstd.org/doc/DWARF4.pdf, DWARFv4 standard) - * - $(LINK2 http://www.dwarfstd.org/doc/DWARF5.pdf, DWARFv5 standard) + * - $(LINK2 https://www.dwarfstd.org/doc/Dwarf3.pdf, DWARFv3 standard) + * - $(LINK2 https://www.dwarfstd.org/doc/DWARF4.pdf, DWARFv4 standard) + * - $(LINK2 https://www.dwarfstd.org/doc/DWARF5.pdf, DWARFv5 standard) * Source: $(DMDSRC backend/_dwarf.d) */ diff --git a/src/dmd/backend/elfobj.d b/src/dmd/backend/elfobj.d index c329daa9e9..40182cd4c4 100644 --- a/src/dmd/backend/elfobj.d +++ b/src/dmd/backend/elfobj.d @@ -3378,7 +3378,7 @@ void ElfObj_dehinfo(Symbol *scc) private void obj_rtinit() { - // section start/stop symbols are defined by the linker (http://www.airs.com/blog/archives/56) + // section start/stop symbols are defined by the linker (https://www.airs.com/blog/archives/56) // make the symbols hidden so that each DSO gets its own brackets IDXSYM minfo_beg, minfo_end, dso_rec; diff --git a/src/dmd/backend/mscoffobj.d b/src/dmd/backend/mscoffobj.d index cc52a7f805..5b32a58433 100644 --- a/src/dmd/backend/mscoffobj.d +++ b/src/dmd/backend/mscoffobj.d @@ -1162,7 +1162,7 @@ void MsCoffObj_staticdtor(Symbol *s) void MsCoffObj_setModuleCtorDtor(Symbol *sfunc, bool isCtor) { // Also see https://blogs.msdn.microsoft.com/vcblog/2006/10/20/crt-initialization/ - // and http://www.codeguru.com/cpp/misc/misc/applicationcontrol/article.php/c6945/Running-Code-Before-and-After-Main.htm + // and https://www.codeguru.com/cplusplus/running-code-before-and-after-main/ const int align_ = I64 ? IMAGE_SCN_ALIGN_8BYTES : IMAGE_SCN_ALIGN_4BYTES; const int attr = IMAGE_SCN_CNT_INITIALIZED_DATA | align_ | IMAGE_SCN_MEM_READ; const int seg = MsCoffObj_getsegment(isCtor ? ".CRT$XCU" : ".CRT$XPU", attr); diff --git a/src/dmd/chkformat.d b/src/dmd/chkformat.d index 944aaf796b..fc50717899 100644 --- a/src/dmd/chkformat.d +++ b/src/dmd/chkformat.d @@ -57,7 +57,7 @@ import dmd.target; * `true` if errors occurred * References: * C99 7.19.6.1 - * http://www.cplusplus.com/reference/cstdio/printf/ + * https://www.cplusplus.com/reference/cstdio/printf/ */ bool checkPrintfFormat(ref const Loc loc, scope const char[] format, scope Expression[] args, bool isVa_list) { @@ -331,7 +331,7 @@ bool checkPrintfFormat(ref const Loc loc, scope const char[] format, scope Expre * `true` if errors occurred * References: * C99 7.19.6.2 - * http://www.cplusplus.com/reference/cstdio/scanf/ + * https://www.cplusplus.com/reference/cstdio/scanf/ */ bool checkScanfFormat(ref const Loc loc, scope const char[] format, scope Expression[] args, bool isVa_list) { @@ -955,7 +955,7 @@ Format parseGenericFormatSpecifier(scope const char[] format, case 'm': if (useGNUExts) { - // http://www.gnu.org/software/libc/manual/html_node/Other-Output-Conversions.html + // https://www.gnu.org/software/libc/manual/html_node/Other-Output-Conversions.html specifier = Format.GNU_m; break; } diff --git a/src/dmd/dmodule.d b/src/dmd/dmodule.d index 98fb44a7ce..aa160593d5 100644 --- a/src/dmd/dmodule.d +++ b/src/dmd/dmodule.d @@ -837,7 +837,7 @@ extern (C++) final class Module : Package if (buf.length >= 2) { /* Convert all non-UTF-8 formats to UTF-8. - * BOM : http://www.unicode.org/faq/utf_bom.html + * BOM : https://www.unicode.org/faq/utf_bom.html * 00 00 FE FF UTF-32BE, big-endian * FF FE 00 00 UTF-32LE, little-endian * FE FF UTF-16BE, big-endian diff --git a/src/dmd/entity.d b/src/dmd/entity.d index a6eb99207e..243f27c2ce 100644 --- a/src/dmd/entity.d +++ b/src/dmd/entity.d @@ -36,8 +36,8 @@ private: /********************************************* * Convert from named entity to its encoding. * For reference: - * http://www.htmlhelp.com/reference/html40/entities/ - * http://www.w3.org/2003/entities/2007/w3centities-f.ent + * https://www.htmlhelp.com/reference/html40/entities/ + * https://www.w3.org/2003/entities/2007/w3centities-f.ent */ struct NameId { diff --git a/src/dmd/expressionsem.d b/src/dmd/expressionsem.d index 3406b83446..3a37228e4f 100644 --- a/src/dmd/expressionsem.d +++ b/src/dmd/expressionsem.d @@ -5980,7 +5980,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor /* Be wary of CWE-22: Improper Limitation of a Pathname to a Restricted Directory * ('Path Traversal') attacks. - * http://cwe.mitre.org/data/definitions/22.html + * https://cwe.mitre.org/data/definitions/22.html */ if (FileName.absolute(namez)) diff --git a/src/dmd/globals.d b/src/dmd/globals.d index 869832f98d..7525215d67 100644 --- a/src/dmd/globals.d +++ b/src/dmd/globals.d @@ -162,7 +162,7 @@ extern (C++) struct Param // https://issues.dlang.org/show_bug.cgi?id=14246 bool fieldwise; // do struct equality testing field-wise rather than by memcmp() bool rvalueRefParam; // allow rvalues to be arguments to ref parameters - // http://dconf.org/2019/talks/alexandrescu.html + // https://dconf.org/2019/talks/alexandrescu.html // https://gist.github.com/andralex/e5405a5d773f07f73196c05f8339435a // https://digitalmars.com/d/archives/digitalmars/D/Binding_rvalues_to_ref_parameters_redux_325087.html // Implementation: https://github.com/dlang/dmd/pull/9817 diff --git a/src/dmd/intrange.d b/src/dmd/intrange.d index 4534b29134..0fc406fef1 100644 --- a/src/dmd/intrange.d +++ b/src/dmd/intrange.d @@ -255,7 +255,7 @@ struct SignExtendedNumber uinteger_t v = copySign(value, negative); // compute base-2 log of 'v' to determine the maximum allowed bits to shift. - // Ref: http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog + // Ref: https://graphics.stanford.edu/~seander/bithacks.html#IntegerLog // Why is this a size_t? Looks like a bug. size_t r, s; diff --git a/src/dmd/root/longdouble.h b/src/dmd/root/longdouble.h index dbd8d264c8..db8d5133c3 100644 --- a/src/dmd/root/longdouble.h +++ b/src/dmd/root/longdouble.h @@ -31,7 +31,7 @@ inline size_t ld_sprint(char* str, int fmt, longdouble x) if (((longdouble)(unsigned long long)x) == x) { // ((1.5 -> 1 -> 1.0) == 1.5) is false // ((1.0 -> 1 -> 1.0) == 1.0) is true - // see http://en.cppreference.com/w/cpp/io/c/fprintf + // see https://en.cppreference.com/w/cpp/io/c/fprintf char sfmt[5] = "%#Lg"; sfmt[3] = fmt; return sprintf(str, sfmt, x); diff --git a/src/dmd/root/stringtable.d b/src/dmd/root/stringtable.d index f05720b680..569e771ffc 100644 --- a/src/dmd/root/stringtable.d +++ b/src/dmd/root/stringtable.d @@ -284,7 +284,7 @@ private: size_t findSlot(hash_t hash, scope const(char)[] str) const @nogc nothrow pure { // quadratic probing using triangular numbers - // http://stackoverflow.com/questions/2348187/moving-from-linear-probing-to-quadratic-probing-hash-collisons/2349774#2349774 + // https://stackoverflow.com/questions/2348187/moving-from-linear-probing-to-quadratic-probing-hash-collisons/2349774#2349774 for (size_t i = hash & (table.length - 1), j = 1;; ++j) { const(StringValue!T)* sv; diff --git a/test/runnable/traits_child.d b/test/runnable/traits_child.d index 056b8f120a..bea85115ae 100644 --- a/test/runnable/traits_child.d +++ b/test/runnable/traits_child.d @@ -64,7 +64,7 @@ alias cm = C.m; alias cmset = C.m.set; -// adapted from http://thecybershadow.net/d/dconf2017/#/21 +// adapted from https://thecybershadow.net/d/dconf2017/#/21 struct S { string a, b, c; } static string printField(alias field)()