8000 extend visibility of nibble_to_hex_upper and nibble_to_hex_lower by tvieira · Pull Request #3188 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

extend visibility of nibble_to_hex_upper and nibble_to_hex_lower #3188

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

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions py/objstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
* THE SOFTWARE.
*/

#define MICROPY_INSIDE_PY_OBJSTR_C

#include <string.h>
#include <assert.h>

Expand Down
10 changes: 8 additions & 2 deletions py/objstr.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,14 @@ const byte *str_index_to_ptr(const mp_obj_type_t *type, const byte *self_data, s
mp_obj_t index, bool is_slice);
const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int direction);

const char nibble_to_hex_upper[16];
const char nibble_to_hex_lower[16];
#ifdef MICROPY_INSIDE_PY_OBJSTR_C
#define EXTERN
#else
#define EXTERN extern
#endif

EXTERN const char nibble_to_hex_upper[16];
EXTERN const char nibble_to_hex_lower[16];

MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(str_encode_obj);
MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(str_find_obj);
Expand Down
0