Comme promis, je me suis lancé dans le C, et comme tout débutant, je bloque sur les pointeurs.
Je voudrais accéder au .tag_str de :
typedef struct {
unsigned char tag_order;
unsigned char tag_version;
unsigned char min_max_args; /* 4 MSB for minimal number of arguments, 4 LSB for maximal number of arguments */
unsigned char proc_args;
void (*CALLBACK tag_proc) (void); /* routine that handles the tag */
unsigned long tag_str; /* Pointer to string data on AMS 1.xx, string ID suitable for XR_stringPtr on later AMS versions */
} tag_info;
J'ai donc codé cela :
push_END_TAG ();
push_parse_text ("y+1/((x-3)(x^2+4))");
tag_info primary_tag_list; \je créé ma liste de tag, basée sur le top_estack ?
printf(primary_tag_list.tag_str); \ c'est un pointeur, je devrais mettre un * quelque part ?
Festival des * et des &, mais globalement, c'est "makes pointer from integer without a cast".
Un peu perdu. Pourriez-vous m'aider ?