Lines Matching refs:cmn
67 struct cmapnode *cmn, *ncmn; in cmap_add() local
72 cmn = malloc(sizeof (*cmn)); in cmap_add()
73 if (cmn == NULL) in cmap_add()
75 cmn->cmn_from = from; in cmap_add()
76 cmn->cmn_to = to; in cmap_add()
77 cmn->cmn_left = cmn->cmn_right = NULL; in cmap_add()
78 cm->cm_root = cmn; in cmap_add()
83 cmn = cm->cm_root = cmap_splay(cm->cm_root, from); in cmap_add()
85 if (cmn->cmn_from == from) { in cmap_add()
86 cmn->cmn_to = to; in cmap_add()
95 if (from < cmn->cmn_from) { in cmap_add()
96 ncmn->cmn_left = cmn->cmn_left; in cmap_add()
97 ncmn->cmn_right = cmn; in cmap_add()
98 cmn->cmn_left = NULL; in cmap_add()
100 ncmn->cmn_right = cmn->cmn_right; in cmap_add()
101 ncmn->cmn_left = cmn; in cmap_add()
102 cmn->cmn_right = NULL; in cmap_add()