Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various tiny fixes #593

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/support/include/afterlastline.bm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ END FUNCTION

'_HUE32() returns the hue [0,360] of the given 32-bit ARGB color value.
'----------
FUNCTION _IKW_HUE32# (_argbColor~&)
FUNCTION _IKW_Hue32# (_argbColor~&)
'--- option _explicit requirements ---
DIM _re#, _gr#, _bl#, _hu#, _sa#, _br#
'--- prepare values for conversion ---
Expand All @@ -125,7 +125,7 @@ END FUNCTION

'_SATURATION32() returns the saturation [0,100] of the given 32-bit ARGB color value.
'----------
FUNCTION _IKW_SATURATION32# (_argbColor~&)
FUNCTION _IKW_Saturation32# (_argbColor~&)
'--- option _explicit requirements ---
DIM _re#, _gr#, _bl#, _hu#, _sa#, _br#
'--- prepare values for conversion ---
Expand All @@ -140,7 +140,7 @@ END FUNCTION

'_BRIGHTNESS32() returns the brightness [0,100] of the given 32-bit ARGB color value.
'----------
FUNCTION _IKW_BRIGHTNESS32# (_argbColor~&)
FUNCTION _IKW_Brightness32# (_argbColor~&)
'--- option _explicit requirements ---
DIM _re#, _gr#, _bl#, _hu#, _sa#, _br#
'--- prepare values for conversion ---
Expand Down
2 changes: 1 addition & 1 deletion source/ide/ide_export.bas
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ SUB ExportCodeAs (docFormat$)
ePos& = ePos& + pal% + lkl% + 84
CASE "wiki"
IF me% OR pc% THEN lkc$ = "{{Cm|": ELSE lkc$ = "{{Cl|"
IF UCASE$(page$) = UCASE$(lnk$) THEN
IF page$ = lnk$ THEN
MID$(eTxt$, ePos&, lkl% + 7) = lkc$ + lnk$ + "}}"
ePos& = ePos& + lkl% + 7
ELSE
Expand Down
20 changes: 8 additions & 12 deletions source/qb64pe.bas
Original file line number Diff line number Diff line change
Expand Up @@ -2547,18 +2547,15 @@ DO
apo% = INSTR(UCASE$(pwl$), "STATIC")
IF apo% = 0 THEN apo% = INSTR(pwl$, "'")
IF apo% = 0 THEN apo% = LEN(pwl$) + 1
cpo% = INSTR(pwl$, ")")
IF cpo% = 0 OR cpo% > apo% THEN cpo% = apo% ELSE cpo% = cpo% + 1
id.hr_syntax = n$ + StrReplace$(RTRIM$(LEFT$(pwl$, cpo% - 1)), "_", "")
cpo% = _INSTRREV(apo%, pwl$, ")")
pwl$ = n$ + symbol$ + StrReplace$(RTRIM$(LEFT$(pwl$, cpo%)), "_", "")
pwl$ = StrReplace$(pwl$, " ()", "()")
id.hr_syntax = pwl$
END IF

IF UCASE$(LEFT$(n$, 5)) = "_IKW_" THEN
reginternalsubfunc = 1: id.n = MID$(n$, 5): id.callname = "FUNC_" + UCASE$(MID$(n$, 5))
IF symbol$ = "$" THEN
id.hr_syntax = UCASE$(MID$(n$, 5)) + "$" + MID$(id.hr_syntax, LEN(n$) + 1)
ELSE
id.hr_syntax = UCASE$(MID$(n$, 5)) + MID$(id.hr_syntax, LEN(n$) + 1)
END IF
id.hr_syntax = UCASE$(MID$(n$, 5)) + _IIF(symbol$ = "$", "$", "") + MID$(id.hr_syntax, LEN(n$) + LEN(symbol$) + 1)
END IF
regid
reginternalsubfunc = 0
Expand Down Expand Up @@ -2588,10 +2585,9 @@ DO
apo% = INSTR(UCASE$(pwl$), "STATIC")
IF apo% = 0 THEN apo% = INSTR(pwl$, "'")
IF apo% = 0 THEN apo% = LEN(pwl$) + 1
cpo% = INSTR(pwl$, ")")
IF cpo% = 0 OR cpo% > apo% THEN cpo% = apo% ELSE cpo% = cpo% + 1
pwl$ = n$ + StrReplace$(RTRIM$(LEFT$(pwl$, cpo% - 1)), "_", "")
pwl$ = StrReplace$(pwl$, "(", " "): pwl$ = StrReplace$(pwl$, ")", "")
cpo% = _INSTRREV(apo%, pwl$, ")")
pwl$ = n$ + " " + StrReplace$(RTRIM$(MID$(pwl$, 2, cpo% - 2)), "_", "")
pwl$ = StrReplace$(pwl$, " ()", "()")
id.hr_syntax = pwl$
END IF

Expand Down