char *vlib_app_name;
char *input_filename;
node_vft_t *the_vft[NODE_N_TYPES];
-static int indent;
+static u32 indent;
static int dont_output_version;
int dump_tree;
static char *fixed_name;
fprintf(fp, ",\n");
}
indent_me(fp);
- fprintf (fp, "{\"crc\" : \"0x%08x\"}\n", (u32)(u64)CDATA3);
+ fprintf (fp, "{\"crc\" : \"0x%08x\"}\n", (u32)(uword)CDATA3);
indent -= 4;
indent_me(fp);
fprintf(fp, "]");
flags = (int)(uword) a1;
np->flags |= flags;
+
+ /* Generate a foo_reply_t right here */
+ if (flags & NODE_FLAG_AUTOREPLY)
+ autoreply(np);
+
return (a2);
}
/*
void generate_top_boilerplate(FILE *fp)
{
- char *datestring = ctime(&starttime);
+ time_t curtime;
+ char *datestring;
+ char *source_date_epoch;
+ if ((source_date_epoch = getenv("SOURCE_DATE_EPOCH")) == NULL || (curtime = (time_t)strtol(source_date_epoch, NULL, 10)) <= 0)
+ curtime = starttime;
+ datestring = asctime(gmtime(&curtime));
fixed_name = fixup_input_filename();
datestring[24] = 0;
if (!(np->flags & NODE_FLAG_TYPEONLY)) {
fprintf (fp, "\\\n_(VL_API_%s, %s, %08x) ",
uppercase (np->data[0]), (i8 *) np->data[0],
- (u32)(u64)np->data[3]);
+ (u32)(uword)np->data[3]);
}
}
np = np->peer;