Skip to content

Commit 02d2159

Browse files
committed
refact: rename __common to common
1 parent d125509 commit 02d2159

11 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/arch/z80/backend/__16bit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# --------------------------------------------------------------
1111
from src.arch.z80.backend.runtime import Labels as RuntimeLabel
1212

13-
from src.arch.z80.backend.__common import is_int, log2, is_2n, _int_ops, tmp_label, runtime_call
13+
from src.arch.z80.backend.common import is_int, log2, is_2n, _int_ops, tmp_label, runtime_call
1414
from src.arch.z80.backend.__8bit import _8bit_oper
1515

1616

src/arch/z80/backend/__32bit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from typing import List
1414

15-
from src.arch.z80.backend.__common import REQUIRES, is_int, _int_ops, tmp_label, runtime_call
15+
from src.arch.z80.backend.common import REQUIRES, is_int, _int_ops, tmp_label, runtime_call
1616
from src.arch.z80.backend.runtime import Labels as RuntimeLabel
1717
from .__8bit import _8bit_oper
1818

src/arch/z80/backend/__8bit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# comparison intermediate-code translations
1111
# --------------------------------------------------------------
1212

13-
from src.arch.z80.backend.__common import is_int, is_2n, _int_ops, tmp_label, runtime_call
13+
from src.arch.z80.backend.common import is_int, is_2n, _int_ops, tmp_label, runtime_call
1414
from src.arch.z80.backend.runtime import Labels as RuntimeLabel
1515

1616

src/arch/z80/backend/__array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# --------------------------------------------------------------
1212

1313

14-
from .__common import REQUIRES, is_int
15-
from .__common import runtime_call
14+
from .common import REQUIRES, is_int
15+
from .common import runtime_call
1616
from src.arch.z80.backend.runtime import Labels as RuntimeLabel
1717
from .__f16 import _f16_oper
1818
from .__float import _fpush, _float_oper

src/arch/z80/backend/__f16.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
from typing import List
1313

14-
from .__common import is_float, _f_ops
15-
from .__common import runtime_call
14+
from .common import is_float, _f_ops
15+
from .common import runtime_call
1616
from src.arch.z80.backend.runtime import Labels as RuntimeLabel
1717

1818
from .__32bit import _add32, _sub32, _lti32, _gti32, _gei32, _lei32, _ne32, _eq32

src/arch/z80/backend/__float.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from typing import List
1414

15-
from .__common import is_float, _f_ops, is_int, runtime_call
15+
from .common import is_float, _f_ops, is_int, runtime_call
1616
from .runtime import Labels as RuntimeLabel
1717
from .runtime import RUNTIME_LABELS
1818

src/arch/z80/backend/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from src.arch.z80.peephole import engine
2121
from src.arch.z80.backend.runtime import Labels as RuntimeLabel
2222

23-
from .__common import runtime_call, is_int_type
23+
from .common import runtime_call, is_int_type
2424

2525
# 8 bit arithmetic functions
2626
from .__8bit import _add8, _sub8, _mul8, _divu8, _divi8, _modu8, _modi8, _neg8, _abs8
@@ -113,9 +113,9 @@
113113
from .__pload import _pstore8, _pstore16, _pstore32, _pstoref16, _pstoref, _pstorestr
114114
from .__pload import _paddr
115115

116-
from . import __common
117-
from .__common import MEMORY, LABEL_COUNTER, TMP_LABELS, TMP_COUNTER, TMP_STORAGES, REQUIRES, INITS
118-
from .__common import is_int, is_float, tmp_label
116+
from . import common
117+
from .common import MEMORY, LABEL_COUNTER, TMP_LABELS, TMP_COUNTER, TMP_STORAGES, REQUIRES, INITS
118+
from .common import is_int, is_float, tmp_label
119119

120120
# Array store and load instructions
121121
from .__array import _aload8, _aload16, _aload32, _aloadf, _aloadstr
@@ -208,7 +208,7 @@ def init():
208208
global FLAG_end_emitted
209209
global FLAG_use_function_exit
210210

211-
__common.init()
211+
common.init()
212212

213213
ASMS = {}
214214
ASMCOUNT = 0

src/arch/z80/backend/__parray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# --------------------------------------------------------------
1212

1313
from src.api import fp
14-
from .__common import runtime_call
14+
from .common import runtime_call
1515
from .__float import _fpush
1616
from .__f16 import f16
1717
from src.arch.z80.backend.runtime import Labels as RuntimeLabel

src/arch/z80/backend/__pload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# --------------------------------------------------------------
1212

1313

14-
from .__common import is_int, runtime_call
14+
from .common import is_int, runtime_call
1515
from .__8bit import int8, _8bit_oper
1616
from .__16bit import int16, _16bit_oper
1717
from .__32bit import _32bit_oper

src/arch/z80/backend/__str.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# comparison intermediate-code translation
1111
# --------------------------------------------------------------
1212

13-
from .__common import runtime_call
13+
from .common import runtime_call
1414

1515
from src.arch.z80.backend.runtime import Labels as RuntimeLabels, Labels as RuntimeLabel
1616
from .errors import InvalidICError as InvalidIC

0 commit comments

Comments
 (0)