Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.75 KB | None | 0 0
  1. typedef struct nodeId
  2. {
  3.     int id;
  4.     struct nodeId *next;
  5. } nodeId;
  6.  
  7. // Structure de liste de tags
  8.  
  9. typedef struct nodetag
  10. {
  11.     char *word;
  12.     struct nodetag *next;
  13.  
  14. } nodetag;
  15.  
  16. typedef struct node
  17. {
  18.     char *word;
  19.     char *arbo;
  20.     int depth, type;  // 0 for folder, 1 for file
  21.  
  22.     struct nodeId *nextId;
  23.     struct nodetag *nexttag; // Point to the list of tags
  24.     struct node *father; // point to father of the node
  25.     struct node *child;   // point to children of this node
  26.     struct node *next;    // point to next node at same level
  27. } node;
  28. typedef nodeId *Idlist;
  29. typedef nodetag *taglist;
  30. typedef node *tree;
  31.  
  32.  
  33. typedef struct lscnode
  34. {
  35.     tree a;
  36.     struct lscnode *next;
  37. }lscnode;
  38. typedef lscnode *listnode;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement