Lines Matching refs:buffer
77 static void process_line(FILE *file_out, char *buf, char *buffer) { in process_line() argument
78 FAILIF(strncmp(buf, "Send_", 5) != 0, "Not expecting: %s\n", buffer); in process_line()
83 FAILIF(advance(&buf), "Could not find opcode in: %s\n", buffer); in process_line()
85 "Could not find opcode in: %s\n", buffer); in process_line()
97 "Too much data: %s\n", buffer); in process_line()
99 "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
108 FAILIF(*buf != 'x', "Error parsing: %s\n", buffer); in process_line()
120 "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
126 "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
132 "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
138 "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
145 "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
149 "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
154 FAILIF(1, "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
158 FAILIF(1, "Error parsing (%d): %s\n", __LINE__, buffer); in process_line()
177 char buffer[1024]; in main() local
180 while (fgets(buffer, 1024, file_in) != NULL) { in main()
181 buf = buffer; in main()
186 process_line(file_out, buf, buffer); in main()
193 FAILIF(1, "Don't know what to do with: %s\n", buffer); in main()