Show newer

In C if I have
typedef struct
{
Token_type type;
Token_data data;
} Token_t;

typedef struct sitem {
char *key;
struct Token_t *token;
} item_t;

Why can't I do?

void insert(char *key, Token_t *data) {
item_t* new_item = malloc(sizeof (_item_t));
new_item->token = data;

}

alright asdf runs on Red Star OS now, nginx 1.21.0 compiled with openssl, pcre etc updated so I think we can actually make this functionally viable. like im past beyond optimistic now it will run and thats wild to me
@matrix The next step, ladies and gentlemen, is the New Dark Ages.
Show older
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.