Lines Matching refs:ptr
54 TRIES *ptr, *savedptr; in NCURSES_EXPORT() local
63 ptr = savedptr = (*tree); in NCURSES_EXPORT()
68 while (!CMP_TRY(ptr->ch, cmp) in NCURSES_EXPORT()
69 && ptr->sibling != 0) in NCURSES_EXPORT()
70 ptr = ptr->sibling; in NCURSES_EXPORT()
72 if (CMP_TRY(ptr->ch, cmp)) { in NCURSES_EXPORT()
74 ptr->value = (unsigned short) code; in NCURSES_EXPORT()
77 if (ptr->child != 0) in NCURSES_EXPORT()
78 ptr = ptr->child; in NCURSES_EXPORT()
82 if ((ptr->sibling = typeCalloc(TRIES, 1)) == 0) { in NCURSES_EXPORT()
86 savedptr = ptr = ptr->sibling; in NCURSES_EXPORT()
87 SET_TRY(ptr, txt); in NCURSES_EXPORT()
88 ptr->value = 0; in NCURSES_EXPORT()
94 savedptr = ptr = (*tree) = typeCalloc(TRIES, 1); in NCURSES_EXPORT()
96 if (ptr == 0) { in NCURSES_EXPORT()
100 SET_TRY(ptr, txt); in NCURSES_EXPORT()
101 ptr->value = 0; in NCURSES_EXPORT()
107 ptr->child = typeCalloc(TRIES, 1); in NCURSES_EXPORT()
109 ptr = ptr->child; in NCURSES_EXPORT()
111 if (ptr == 0) { in NCURSES_EXPORT()
112 while ((ptr = savedptr) != 0) { in NCURSES_EXPORT()
113 savedptr = ptr->child; in NCURSES_EXPORT()
114 free(ptr); in NCURSES_EXPORT()
120 SET_TRY(ptr, txt); in NCURSES_EXPORT()
121 ptr->value = 0; in NCURSES_EXPORT()
124 ptr->value = (unsigned short) code; in NCURSES_EXPORT()