Skip to content

Commit

Permalink
unix/main: Remove debug code left from MP_OBJ_TO_PTR refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sokolovsky committed Jan 28, 2016
1 parent 6a804cb commit 8502122
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions unix/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,26 +376,7 @@ STATIC void set_sys_argv(char *argv[], int argc, int start_arg) {
#define PATHLIST_SEP_CHAR ':'
#endif

/*
typedef union _a_t { uint32_t u32; uint64_t u64; } a_t;
STATIC const uint64_t table[4] = {
1,
2,
3,
//(a_t){(uint32_t)&set_sys_argv}.u64,
((a_t){(uint32_t)123}).u64,
};
*/

int main(int argc, char **argv) {
/*
printf("sizeof(void*)=%u\n", (uint)sizeof(void*));
for (int i = 0; i < sizeof(table); ++i) {
byte *ptr = (void*)&table[0];
printf(" %02x", ptr[i]);
if ((i + 1)%8 == 0) printf("\n");
}
*/
mp_stack_set_limit(40000 * (BYTES_PER_WORD / 4));

pre_process_options(argc, argv);
Expand Down

0 comments on commit 8502122

Please sign in to comment.