this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

more more more debug

alice 9d18751d 775d8b2d

+39 -8
+39 -8
src/studio/screens/console.c
··· 402 402 403 403 console->cursor.pos.y--; 404 404 } 405 + printf("scrollConsole while loop done!\n"); 405 406 406 407 size_t inputLines = (console->cursor.pos.x + console->input.pos) / CONSOLE_BUFFER_WIDTH; 407 408 s32 minScroll = console->cursor.pos.y + inputLines - CONSOLE_BUFFER_HEIGHT + 1; ··· 417 418 printf("setting console->scroll.pos to minScroll: %d\n", minScroll); 418 419 console->scroll.pos = minScroll; 419 420 } 421 + 422 + printf("scrollConsole done!\n"); 420 423 } 421 424 422 425 static void setSymbol(Console* console, char sym, u8 color, s32 offset) ··· 1379 1382 } 1380 1383 } 1381 1384 1382 - free(data->options); 1383 - free(data->commonPrefix); 1385 + printf("WE ARE NOT FREEING THINGS HERE NO SIR\n"); 1386 + // printf("freeing data->options in finishTabComplete\n"); 1387 + // free(data->options); 1388 + // printf("i mean we should have freed data->options\n"); 1389 + // printf("freeing data->commonPrefix in finishTabComplete\n"); 1390 + // free(data->commonPrefix); 1391 + // printf("freed data->commonPrefix??\n"); 1384 1392 } 1385 1393 1386 1394 static void tabCompleteLanguages(TabCompleteData* data) ··· 1433 1441 static void finishTabCompleteAndFreeData(void* data) { 1434 1442 if (data != NULL) { 1435 1443 printf("finishTabCompleteAndFreeData starting\n"); 1436 - finishTabComplete((const TabCompleteData *) data); 1437 - printf("freeing data in finishTabCompleteAndFreeData!!!!\n"); 1438 - free(data); 1439 - } else { 1440 - printf("Error: NULL data pointer provided to finishTabCompleteAndFreeData\n"); 1444 + TabCompleteData* tabCompleteData = (TabCompleteData*)data; 1445 + printf("casted data to TabCompleteData* in finishTabCompleteAndFreeData\n"); 1446 + printf("tabCompleteData->options: %s\n", tabCompleteData->options); 1447 + printf("tabCompleteData->commonPrefix: %s\n", tabCompleteData->commonPrefix); 1448 + printf("tabCompleteData->incompleteWord: %s\n", tabCompleteData->incompleteWord); 1449 + printf("tabCompleteData->console: %p\n", tabCompleteData->console); 1450 + printf("calling finishTabComplete from finishTabCompleteAndFreeData\n"); 1451 + finishTabComplete(tabCompleteData); 1452 + 1453 + // Free the pointers here 1454 + free(tabCompleteData->options); 1455 + free(tabCompleteData->commonPrefix); 1456 + 1457 + free(tabCompleteData); 1441 1458 } 1459 + 1460 + printf("DATA WAS NOT NULL IN FINISHTABCOMPLETEDATA\n"); 1442 1461 } 1462 + 1463 + // static void finishTabCompleteAndFreeData(void* data) { 1464 + // if (data != NULL) { 1465 + // printf("finishTabCompleteAndFreeData starting\n"); 1466 + // finishTabComplete((const TabCompleteData *) data); 1467 + // printf("freeing data in finishTabCompleteAndFreeData!!!!\n"); 1468 + // free(data); 1469 + // } else { 1470 + // printf("Error: NULL data pointer provided to finishTabCompleteAndFreeData\n"); 1471 + // } 1472 + // } 1443 1473 1444 1474 static void tabCompleteFiles(TabCompleteData* data) 1445 1475 { ··· 3538 3568 // THIS GOT TRIGGERED AT LEAST ONCE!! 3539 3569 printf("FUCKSIE WUCKSIE POTENTIALLY!!\n"); 3540 3570 printf("Error: param is NULL in processConsoleTab\n"); 3541 - return; 3571 + printf("we'll continue tho!!!!!!!!!!!!!\n"); 3572 + // return; 3542 3573 } 3543 3574 printf("param: %s\n", param ? param : "NULL"); 3544 3575 if (param) {