mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Exclude html files from checkpatch
Also, fix 2 nits in the codebase. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
4
Makefile
4
Makefile
@@ -156,8 +156,8 @@ install: all
|
|||||||
# Target used to check the coding style of the whole codebase. '.y' and '.l'
|
# Target used to check the coding style of the whole codebase. '.y' and '.l'
|
||||||
# files aren't checked, unfortunately...
|
# files aren't checked, unfortunately...
|
||||||
checkcodebase:
|
checkcodebase:
|
||||||
$Qfor file in `git ls-files | grep -E '\.c|\.h'`; do \
|
$Qfor file in `git ls-files | grep -E '\.c|\.h' | grep -v '\.html'`; do \
|
||||||
${CHECKPATCH} -f "$$file"; \
|
${CHECKPATCH} -f "$$file"; \
|
||||||
done
|
done
|
||||||
|
|
||||||
# Target used to check the coding style of the patches from the upstream branch
|
# Target used to check the coding style of the patches from the upstream branch
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ static int32_t getsymvalue(int32_t symid)
|
|||||||
errx(1, "%s: Unknown symbol type", __func__);
|
errx(1, "%s: Unknown symbol type", __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int32_t getrealbankfrominternalbank(int32_t n)
|
static int32_t getrealbankfrominternalbank(int32_t n)
|
||||||
{
|
{
|
||||||
if (BankIndexIsWRAM0(n) || BankIndexIsROM0(n) ||
|
if (BankIndexIsWRAM0(n) || BankIndexIsROM0(n) ||
|
||||||
|
|||||||
@@ -120,9 +120,9 @@ void script_SetCurrentSectionType(const char *type, uint32_t bank)
|
|||||||
current_real_bank = bank;
|
current_real_bank = bank;
|
||||||
return;
|
return;
|
||||||
} else if (strcmp(type, "WRAM0") == 0) {
|
} else if (strcmp(type, "WRAM0") == 0) {
|
||||||
if (bank != 0) {
|
if (bank != 0)
|
||||||
errx(1, "Trying to assign a bank number to WRAM0.\n");
|
errx(1, "Trying to assign a bank number to WRAM0.\n");
|
||||||
}
|
|
||||||
current_bank = BANK_INDEX_WRAM0;
|
current_bank = BANK_INDEX_WRAM0;
|
||||||
current_real_bank = 0;
|
current_real_bank = 0;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user