📄 tr_mm_new_2.cc
字号:
// file: tr_mm_new_2.cc// // isip include files//#include "train_memory_manager.h"#include "train_memory_manager_constants.h"#include <train_lex_node.h>// method: new_lex_cc//// arguments: none//// return: a Lex* pointer to a new lex node//// this method outputs a new empty lex node, and creates them whenever// necessary//Train_Lex_node* Train_Memory_manager::new_lex_cc() { // if there are no free lex nodes available, create a few // if (lex_count_d == (int_4)0) { grow_lex_cc(); } // get a lex node off the list // Train_Link_node* lnd = lex_list_d; lex_list_d = lex_list_d->get_next_cc(); // adjust params // lnd->set_next_cc((Train_Link_node*)NULL); lnd->set_prev_cc((Train_Link_node*)NULL); // get the lexical node here // Train_Lex_node* lxn = (Train_Lex_node*)(lnd->get_item_cc()); lxn->set_status_cc(ISIP_FALSE); // return the link node to the free node list // delete_cc(lnd); // decrement free lex node count // lex_count_d --; // return the lex node and exit gracefully // return lxn;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -