Lines Matching refs:old_stats
313 static void diff_stats(struct data *old_stats, struct data *new_stats) { in diff_stats() argument
314 while (old_stats->name != NULL || new_stats->name != NULL) { in diff_stats()
316 if (old_stats->name == NULL) { in diff_stats()
321 compare = compare_data(old_stats, new_stats); in diff_stats()
326 if (old_stats->value != NULL) { in diff_stats()
327 printf("%s -\n", old_stats->name); in diff_stats()
329 ++old_stats; in diff_stats()
339 if (old_stats->value != NULL) { in diff_stats()
340 printf("%s -\n", old_stats->name); in diff_stats()
342 } else if (old_stats->value == NULL) { in diff_stats()
344 } else if (strcmp(old_stats->value, new_stats->value)) { in diff_stats()
347 ++old_stats; in diff_stats()
385 struct data *old_stats = malloc(sizeof(struct data)); in main() local
386 old_stats->name = NULL; in main()
387 old_stats->value = NULL; in main()
394 diff_stats(old_stats, new_stats); in main()
395 free_stats(old_stats); in main()
396 old_stats = new_stats; in main()