Skip to content

Commit d52cbce

Browse files
committed
avoid issues where funclist.sed forms help/funclist.c
The funclist.sed sed script, when transforming func.c into help/funclist.c, was creating nested comments. While those were hardless, a single change to func.c avoids the naive funclist.sed processing and avoids (harmless) warnings when compiling help/funclist.c in the course of building the function list.
1 parent d14d525 commit d52cbce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

func.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@ f_logn(int count, VALUE **vals)
25772577
if (p_cval == NULL) {
25782578
return error_value(E_LOGN_3);
25792579
}
2580-
/* check if division is COMPLEX or NUMBER */
2580+
/* check for COMPLEX or NUMBER division */
25812581
if (cisreal(p_cval)) {
25822582
/* ln(x) / ln(n) was NUMBER, not COMPLEX */
25832583
result.v_num = c_to_q(p_cval, true);
@@ -2597,7 +2597,7 @@ f_logn(int count, VALUE **vals)
25972597
if (p_cval == NULL) {
25982598
return error_value(E_LOGN_3);
25992599
}
2600-
/* check if division is COMPLEX or NUMBER */
2600+
/* check for COMPLEX or NUMBER division */
26012601
if (cisreal(p_cval)) {
26022602
/* ln(x) / ln(n) was NUMBER, not COMPLEX */
26032603
result.v_num = c_to_q(p_cval, true);
@@ -2623,13 +2623,13 @@ f_logn(int count, VALUE **vals)
26232623
if (p_cval == NULL) {
26242624
return error_value(E_LOGN_3);
26252625
}
2626-
/* check if division is COMPLEX or NUMBER */
2626+
/* check for COMPLEX or NUMBER division */
26272627
if (cisreal(p_cval)) {
26282628
/* ln(x) / ln(n) was NUMBER, not COMPLEX */
26292629
result.v_num = c_to_q(p_cval, true);
26302630
result.v_type = V_NUM;
26312631
} else {
2632-
/* ln(x) / ln(n) is COMPLEX */
2632+
/* ln(x) / ln(n) is COMPLEX result */
26332633
result.v_type = V_COM;
26342634
result.v_com = p_cval;
26352635
}
@@ -2643,7 +2643,7 @@ f_logn(int count, VALUE **vals)
26432643
if (result.v_com == NULL) {
26442644
return error_value(E_LOGN_3);
26452645
}
2646-
/* ln(x) / ln(n) is NUMBER */
2646+
/* ln(x) / ln(n) is NUMBER result */
26472647
result.v_type = V_NUM;
26482648
}
26492649
}

0 commit comments

Comments
 (0)