/[LeafOK_CVS]/lbbs/src/trie_dict.c
ViewVC logotype

Diff of /lbbs/src/trie_dict.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.22 by sysadm, Thu Nov 20 02:56:46 2025 UTC Revision 1.23 by sysadm, Thu Nov 20 03:22:35 2025 UTC
# Line 32  struct trie_node_pool_t Line 32  struct trie_node_pool_t
32  };  };
33  typedef struct trie_node_pool_t TRIE_NODE_POOL;  typedef struct trie_node_pool_t TRIE_NODE_POOL;
34    
35  static char trie_node_shm_name[FILE_PATH_LEN];  static char trie_node_shm_name[FILE_NAME_LEN];
36  static TRIE_NODE_POOL *p_trie_node_pool;  static TRIE_NODE_POOL *p_trie_node_pool;
37    
38  int trie_dict_init(const char *filename, int node_count_limit)  int trie_dict_init(const char *filename, int node_count_limit)
# Line 117  int trie_dict_init(const char *filename, Line 117  int trie_dict_init(const char *filename,
117          return 0;          return 0;
118  }  }
119    
120  int trie_dict_cleanup(void)  void trie_dict_cleanup(void)
121  {  {
122          if (p_trie_node_pool == NULL)          if (p_trie_node_pool == NULL)
123          {          {
124                  return -1;                  return;
125          }          }
126    
127          detach_trie_dict_shm();          detach_trie_dict_shm();
# Line 132  int trie_dict_cleanup(void) Line 132  int trie_dict_cleanup(void)
132          }          }
133    
134          trie_node_shm_name[0] = '\0';          trie_node_shm_name[0] = '\0';
   
         return 0;  
135  }  }
136    
137  int get_trie_dict_shm_readonly(void)  int get_trie_dict_shm_readonly(void)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1