Skip to content

Commit f8c18f6

Browse files
committed
Updated version date, and modified a few comments.
1 parent a55bc7b commit f8c18f6

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

miscell.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,6 @@ int pattern_match(const char* pattern, const char* string)
669669
const char *find_orb_version_jd( double *jd)
670670
{
671671
if( jd)
672-
*jd = 2460629.5;
673-
return( "2024 Nov 15");
672+
*jd = 2460655.5;
673+
return( "2024 Dec 11");
674674
}

shadow.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ I = 0.436 + 0.72 * mu - 0.16 mu^2
3232
3333
where I = intensity and mu^2 = 1 - (r/R)^2, r = distance from
3434
the center of the solar disk and R = radius of the solar disk. It
35-
refers to a no-longer-available source,
35+
refers to :
3636
3737
Youles, S. (2017). "PH3010: Solar Limb Darkening."
38-
https://twiki.ph.rhul.ac.uk/twiki/pub/Public/SamYoules/PH3010_Solar_limb_darkening.pdf
38+
https://twiki.ph.rhul.ac.uk/twiki/pub/Public/Solar_Limb_Darkening_Project/Solar_Limb_Darkening.pdf
3939
4040
Two similar polynomials that include terms to mu^5 are given in
4141

shellsor.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,16 @@ void shellsort_r( void *base, const size_t n_elements, const size_t elem_size,
158158

159159
#ifdef NOT_CURRENTLY_USED
160160
/* https://sourceware.org/ml/libc-alpha/2008-12/msg00007.html mentions
161-
that, with the arguments given in the order used in glibc, a non-recursive
162-
sort can be (and, in glibc, is) implemented just by using the recursive
163-
version. The last "context" parameter is simply ignored on all
164-
architectures of which the author was aware.
161+
that, with the arguments given in the order used in glibc, a non-re-entrant
162+
sort can be (and, in glibc, is) implemented simply by using the re-entrant
163+
version, passing a NULL context pointer. On all architectures of which the
164+
author was aware, this can be done safely, with the unused/unset NULL
165+
context pointer never getting used.
165166
166167
It seems like an excellent idea. The weird cast is essentially the one
167168
used for bsearch_ext() (see below), and I am reasonably confident the
168169
following would work. However, I've not needed it yet and it is therefore
169-
untested and #ifdeffed out. If I someday decide I need a non-recursive
170+
untested and #ifdeffed out. If I someday decide I need a non-re-entrant
170171
sort, I'll test it then. */
171172

172173
void shellsort( void *base, const size_t n_elements, const size_t elem_size,

0 commit comments

Comments
 (0)