Lines Matching refs:new
68 sugg_t *new, *n, *pos = NULL; in pt_sugg_add() local
80 if ((new = calloc(1, sizeof (sugg_t))) == NULL) in pt_sugg_add()
84 new->sb_msg = strdup(sb_msg); in pt_sugg_add()
87 new->text = strdup(text); in pt_sugg_add()
89 new->weight = weight; in pt_sugg_add()
90 new->key = key; in pt_sugg_add()
91 new->func = func; in pt_sugg_add()
92 new->slice = 0; in pt_sugg_add()
94 sugg = new; in pt_sugg_add()
95 new->prev = NULL; in pt_sugg_add()
96 new->next = NULL; in pt_sugg_add()
108 if ((new = calloc(1, sizeof (sugg_t))) == NULL) in pt_sugg_add()
112 new->sb_msg = strdup(sb_msg); in pt_sugg_add()
114 new->text = strdup(text); in pt_sugg_add()
116 new->weight = weight; in pt_sugg_add()
117 new->key = key; in pt_sugg_add()
118 new->func = func; in pt_sugg_add()
119 new->slice = 0; in pt_sugg_add()
128 n->next = new; in pt_sugg_add()
129 new->prev = n; in pt_sugg_add()
130 new->next = NULL; in pt_sugg_add()
136 new->next = sugg; in pt_sugg_add()
137 new->prev = sugg; in pt_sugg_add()
138 sugg->prev = new; in pt_sugg_add()
139 sugg = new; in pt_sugg_add()
145 new->next = pos; in pt_sugg_add()
146 new->prev = pos->prev; in pt_sugg_add()
147 pos->prev->next = new; in pt_sugg_add()
148 pos->prev = new; in pt_sugg_add()