}
void screen_deinit(void) {
- fprintf(stderr, "deinitializing screen\n");
+ fprintf(stderr, "deinitializing screen\n");
mem_release(Screen_List);
}
//get the curent directory and copy it into a ref-counted memory block
//return a pointer to the new block
char* pwd(){
- char* dir = getcwd(NULL, 0);
- char* rid = mem_allocate(sizeof(char)*(1+strlen(dir)), NULL);
- strcpy(rid, dir);
- free(dir);
- return rid;
+ char* dir = getcwd(NULL, 0);
+ char* rid = mem_allocate(sizeof(char)*(1+strlen(dir)), NULL);
+ strcpy(rid, dir);
+ free(dir);
+ return rid;
}
static frame_t* screen_frame_new(void) {
}
static void screen_frame_free(void* p_frame_ptr) {
- fprintf(stderr, "freeing frame\n");
+ fprintf(stderr, "freeing frame\n");
frame_t* p_frame = (frame_t*)p_frame_ptr;
wclear(p_frame->p_win);
wborder(p_frame->p_win, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ');