Lines Matching refs:hfp
29 FILE *hfp; /* C source file */
95 if ((hfp = fopen(hfile, "w")) == NULL) {
265 fprintf(hfp, "/*\n");
266 fprintf(hfp, " * DO NOT EDIT: automatically built by %s.\n", progname);
267 fprintf(hfp, " *\n");
268 fprintf(hfp, " * Record structure.\n");
269 fprintf(hfp, " */\n");
270 fprintf(hfp, "typedef struct __DbRecord {\n");
271 fprintf(hfp, "\tu_int32_t\t recno;\t\t/* Record number */\n");
272 fprintf(hfp, "\n");
273 fprintf(hfp, "\t/*\n");
274 fprintf(hfp, "\t * Management fields\n");
275 fprintf(hfp, "\t */\n");
276 fprintf(hfp, "\tvoid\t\t*raw;\t\t/* Memory returned by DB */\n");
277 fprintf(hfp, "\tu_char\t\t*record;\t/* Raw record */\n");
278 fprintf(hfp, "\tsize_t\t\t record_len;\t/* Raw record length */\n\n");
279 fprintf(hfp, "\tu_int32_t\t field_count;\t/* Field count */\n");
280 fprintf(hfp, "\tu_int32_t\t version;\t/* Record version */\n\n");
281 fprintf(hfp, "\tu_int32_t\t*offset;\t/* Offset table */\n");
282 fprintf(hfp, "\n");
284 fprintf(hfp, "\t/*\n");
285 fprintf(hfp, "\t * Indexed fields\n");
286 fprintf(hfp, "\t */\n");
291 fprintf(hfp, "\n");
292 fprintf(hfp, "#define CSV_INDX_%s\t%d\n", f->upper, i + 1);
299 fprintf(hfp, "\tdouble\t\t %s;\n", f->name);
302 fprintf(hfp, "\tchar\t\t*%s;\n", f->name);
305 fprintf(hfp, "\tu_long\t\t %s;\n", f->name);
309 fprintf(hfp, "} DbRecord;\n");