Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #define MAX_ELEMENT 10
  2.  
  3. byte mark_active = 0;
  4.  
  5. struct path_strng {
  6.         char Item[4096];
  7. };
  8.  
  9. struct Elements_Path {
  10.         dword   size;
  11.         dword   type;
  12.         int     count;
  13.         path_strng element_list[MAX_ELEMENT];
  14. };     
  15.  
  16. Elements_Path elements_path;
  17.  
  18. void mark_default()
  19. {
  20.         mark_active = 0;
  21.         elements_path.count = 0;
  22.         elements_path.type = 3;
  23.         for (i = 0; i < MAX_ELEMENT; i++) strcpy(#elements_path.element_list[i].Item[0], 0);
  24. }
  25.  
  26. void add_to_mark(dword pcth)
  27. {
  28.         if (mark_active) mark_active = 1;
  29.         strlcpy(#elements_path.element_list[elements_path.count].Item, pcth);
  30.         elements_path.count++;
  31.        
  32. }