8000 unix/main: Remove debug code left from MP_OBJ_TO_PTR refactor. · lispmeister/micropython@8502122 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8502122

Browse files
committed
unix/main: Remove debug code left from MP_OBJ_TO_PTR refactor.
1 parent 6a804cb commit 8502122

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

unix/main.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -376,26 +376,7 @@ STATIC void set_sys_argv(char *argv[], int argc, int start_arg) {
376376
#define PATHLIST_SEP_CHAR ':'
377377
#endif
378378

379-
/*
380-
typedef union _a_t { uint32_t u32; uint64_t u64; } a_t;
381-
STATIC const uint64_t table[4] = {
382-
1,
383-
2,
384-
3,
385-
//(a_t){(uint32_t)&set_sys_argv}.u64,
386-
((a_t){(uint32_t)123}).u64,
387-
};
388-
*/
389-
390379
int main(int argc, char **argv) {
391-
/*
392-
printf("sizeof(void*)=%u\n", (uint)sizeof(void*));
393-
for (int i = 0; i < sizeof(table); ++i) {
394-
byte *ptr = (void*)&table[0];
395-
printf(" %02x", ptr[i]);
396-
if ((i + 1)%8 == 0) printf("\n");
397-
}
398-
*/
399380
mp_stack_set_limit(40000 * (BYTES_PER_WORD / 4));
400381

401382
pre_process_options(argc, argv);

0 commit comments

Comments
 (0)
0