Skip to content

Commit a9efbe5

Browse files
committed
linter must pass in order to compile
1 parent 0813b9c commit a9efbe5

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

modules/jtframe/bin/jtcore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# Version: 1.0
1818
# Date: 7-7-2022
1919

20+
source $JTFRAME/bin/jtcore-funcs
21+
2022
function show_usage() {
2123
cat << EOF
2224
JTCORE compilation tool. (c) Jose Tejada 2019-2023, @topapate
@@ -426,6 +428,7 @@ if [ $SKIP_COMPILE = FALSE ]; then
426428
rm -rf $PRJPATH/$TARGET
427429
mkdir -p $PRJPATH/$TARGET
428430
cd $PRJPATH/$TARGET || exit 1
431+
lint_core $PRJ
429432
############################################
430433
# Credits via jtframe_credits:
431434
if [[ -e $PRJPATH/cfg/msg ]]; then

modules/jtframe/doc/jtframe-mra.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ PCBs = [
8181
{ machine= "scontra" },
8282
]
8383
data = [
84+
{ pcb_id = true, offset=0 } # filled with the PCB array innformation
8485
{ machine="...", setname="...", dev="...", offset=3, data="12 32 43 ..." },
8586
...
8687
]

modules/jtframe/src/jtframe/mra/header.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func has_dev(name string, devs []MameDevice ) bool {
103103

104104
func (cfg HeaderCfg) get_entry_bytes( data_entry HeaderData, machine *MachineXML ) []byte {
105105
if data_entry.Pcb_id {
106-
id := machine.Index(cfg.PCBs)
106+
id := machine.Find(cfg.PCBs)
107107
return []byte{byte(id)}
108108
} else {
109109
return rawdata2bytes(data_entry.Data)

modules/jtframe/src/jtframe/mra/mamegame.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ type MachineXML struct {
130130
Ismechanical bool `xml:"ismechanical,attr"`
131131
}
132132

133-
func (machine *MachineXML) Index(machine_options []Selectable) int {
133+
func (machine *MachineXML) Find(machine_options []Selectable) int {
134134
for k, option := range machine_options {
135135
if option.Match(machine)>0 {
136136
return k

modules/jtframe/src/jtframe/mra/mamegame_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ func Test_get_first_match(t *testing.T) {
1616
machine := MachineXML{
1717
Name: cfg[exp].Machine,
1818
}
19-
if k:=machine.Index(cfg);k!=exp {
19+
if k:=machine.Find(cfg);k!=exp {
2020
t.Errorf("Expecting %d, got %d",exp,k)
2121
}
2222

2323
const unknown = -1
2424
machine.Name="none"
25-
if k:=machine.Index(cfg);k!=unknown {
25+
if k:=machine.Find(cfg);k!=unknown {
2626
t.Errorf("Expecting %d, got %d",unknown,k)
2727
}
2828
}

0 commit comments

Comments
 (0)