Lines Matching refs:cx
56 if (cx.x_type != 0) { in cx_alloc()
61 *xp = cx; in cx_alloc()
62 cx.x_link = xp; in cx_alloc()
63 cx.x_type = 0; in cx_alloc()
65 cx.x_erred = 0; in cx_alloc()
66 cx.x_synerred = 0; in cx_alloc()
67 cx.x_abort = 0; in cx_alloc()
76 if ((xp = cx.x_link) != NULL) { in cx_free()
77 cx = *xp; in cx_free()
80 cx.x_type = 0; in cx_free()
88 cx.x_type = X_FILE; in cx_beginfile()
89 if ((cx.x_filename = str_cpy(filename)) == 0) in cx_beginfile()
91 cx.x_fp = fopen(filename, "r"); in cx_beginfile()
92 if (cx.x_fp == 0) in cx_beginfile()
94 (void) fcntl(fileno(cx.x_fp), F_SETFD, 1); in cx_beginfile()
95 cx.x_bol = 1; in cx_beginfile()
96 cx.x_lineno = 0; in cx_beginfile()
97 cx.x_errwin = 0; in cx_beginfile()
98 cx.x_noerr = 0; in cx_beginfile()
101 if (cx.x_filename != 0) in cx_beginfile()
102 str_free(cx.x_filename); in cx_beginfile()
112 cx.x_type = X_BUF; in cx_beginbuf()
113 cx.x_bufp = cx.x_buf = buf; in cx_beginbuf()
114 cx.x_arg = arg; in cx_beginbuf()
115 cx.x_narg = narg; in cx_beginbuf()
122 switch (cx.x_type) { in cx_end()
126 (void) fclose(cx.x_fp); in cx_end()
127 str_free(cx.x_filename); in cx_end()