No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tab_fonctions.h 645B

1234567891011121314151617181920212223242526
  1. #ifndef TAB_FONC_H
  2. #define TAB_FONC_H
  3. #include "../Symboles/table_symboles.h"
  4. #include <string.h>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. //Struct dans le tableau qui permet d'identifier une fonction
  8. struct fonction_t {
  9. char * name;
  10. struct type_t return_type;
  11. int first_instruction_line;
  12. int taille_args;
  13. };
  14. // Renvoi les informations sur une fonction à partir de son nom
  15. struct fonction_t get_fonction(char * name);
  16. // Insere une fonction dans la table (déclare une fonction)
  17. void push_fonction(char * name, struct type_t type, int line, int taille_args);
  18. // Fonction d'affichage des fonctions connues
  19. void print_fonctions();
  20. #endif