Lines Matching full:cmn
70 struct cmapnode *cmn, *ncmn; in cmap_add() local
75 cmn = malloc(sizeof(*cmn)); in cmap_add()
76 if (cmn == NULL) in cmap_add()
78 cmn->cmn_from = from; in cmap_add()
79 cmn->cmn_to = to; in cmap_add()
80 cmn->cmn_left = cmn->cmn_right = NULL; in cmap_add()
81 cm->cm_root = cmn; in cmap_add()
86 cmn = cm->cm_root = cmap_splay(cm->cm_root, from); in cmap_add()
88 if (cmn->cmn_from == from) { in cmap_add()
89 cmn->cmn_to = to; in cmap_add()
98 if (from < cmn->cmn_from) { in cmap_add()
99 ncmn->cmn_left = cmn->cmn_left; in cmap_add()
100 ncmn->cmn_right = cmn; in cmap_add()
101 cmn->cmn_left = NULL; in cmap_add()
103 ncmn->cmn_right = cmn->cmn_right; in cmap_add()
104 ncmn->cmn_left = cmn; in cmap_add()
105 cmn->cmn_right = NULL; in cmap_add()