Skip to content

Commit ac282b2

Browse files
authored
Merge pull request #6440 from tannewt/translate_header
Switch translate() to the header file
2 parents a61c4c1 + be6936c commit ac282b2

File tree

253 files changed

+1060
-726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+1060
-726
lines changed

devices/ble_hci/common-hal/_bleio/att.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include "shared-bindings/_bleio/Service.h"
4545
#include "shared-bindings/_bleio/UUID.h"
4646
#include "supervisor/shared/tick.h"
47+
#include "supervisor/shared/translate/translate.h"
4748

4849
STATIC uint16_t max_mtu = BT_ATT_DEFAULT_LE_MTU; // 23
4950
STATIC unsigned long timeout = 5000;

extmod/moduasyncio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include "shared-bindings/supervisor/__init__.h"
3434
#endif
3535

36+
#include "supervisor/shared/translate/translate.h"
37+
3638
#if MICROPY_PY_UASYNCIO
3739

3840
// Used when task cannot be guaranteed to be non-NULL.

extmod/modubinascii.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "py/runtime.h"
1212
#include "py/binary.h"
1313

14+
#include "supervisor/shared/translate/translate.h"
15+
1416
static void check_not_unicode(const mp_obj_t arg) {
1517
#if MICROPY_CPYTHON_COMPAT
1618
if (mp_obj_is_str(arg)) {

extmod/moductypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "py/objtuple.h"
1212
#include "py/binary.h"
1313

14-
#include "supervisor/shared/translate.h"
14+
#include "supervisor/shared/translate/translate.h"
1515

1616
#if MICROPY_PY_UCTYPES
1717

extmod/moduhashlib.c

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

99
#include "py/runtime.h"
1010

11-
#include "supervisor/shared/translate.h"
11+
#include "supervisor/shared/translate/translate.h"
1212

1313
#if MICROPY_PY_UHASHLIB
1414

extmod/moduheapq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "py/objlist.h"
77
#include "py/runtime.h"
88

9-
#include "supervisor/shared/translate.h"
9+
#include "supervisor/shared/translate/translate.h"
1010

1111
#if MICROPY_PY_UHEAPQ
1212

extmod/modujson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "py/runtime.h"
1414
#include "py/stream.h"
1515

16-
#include "supervisor/shared/translate.h"
16+
#include "supervisor/shared/translate/translate.h"
1717

1818
#if MICROPY_PY_UJSON
1919

extmod/modutimeq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "py/runtime.h"
1111
#include "py/smallint.h"
1212

13-
#include "supervisor/shared/translate.h"
13+
#include "supervisor/shared/translate/translate.h"
1414

1515
#if MICROPY_PY_UTIMEQ
1616

extmod/moduzlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "py/stream.h"
1111
#include "py/mperrno.h"
1212

13-
#include "supervisor/shared/translate.h"
13+
#include "supervisor/shared/translate/translate.h"
1414

1515
#if MICROPY_PY_UZLIB
1616

extmod/vfs_fat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "extmod/vfs_fat.h"
2121
#include "shared/timeutils/timeutils.h"
2222
#include "supervisor/filesystem.h"
23-
#include "supervisor/shared/translate.h"
23+
#include "supervisor/shared/translate/translate.h"
2424

2525
#if FF_MAX_SS == FF_MIN_SS
2626
#define SECSIZE(fs) (FF_MIN_SS)

0 commit comments

Comments
 (0)