commit 8852ffaf302e1b19e8146f276c366dd75d701a4d from: Omar Polo date: Fri Apr 03 20:28:03 2020 UTC fixed brace indentation on foreach_obj macro commit - 3d4cf639d759c4ea4f04142474946fa585959d77 commit + 8852ffaf302e1b19e8146f276c366dd75d701a4d blob - 8f5a24bb769ef01e8cfb280592930f28dfa20851 blob + 39db53be40c24cb06b36c8a87a4bdd736679e5fa --- match.c +++ match.c @@ -56,8 +56,7 @@ match_param(const char *src, struct param *par, int lo par->distance = *src == '\0' ? dist_no_obj_specified : dist_unknown_obj; - foreach_obj(obj) - { + foreach_obj (obj) { const char **tag; enum distance dist = distance_to(obj); for (tag = obj->tags; *tag != NULL; ++tag) { blob - 91af5911f3dd08ccc9bc4ecf13e7edfd17d2569e blob + 639823dab63dba731c56503bf97d221065948b63 --- misc.c +++ misc.c @@ -9,8 +9,7 @@ list_objs_at_loc(struct object *location) size_t count = 0; struct object *obj; - foreach_obj(obj) - { + foreach_obj (obj) { if (obj != player && obj->location == location) { if (count++ == 0) printf("%s:\n", location->contents); @@ -26,8 +25,7 @@ person_here(void) { struct object *obj; - foreach_obj(obj) - { + foreach_obj (obj) { if (distance_to(obj) == dist_here && obj->health > 0) return obj; } @@ -40,8 +38,7 @@ get_passage_to(struct object *target) { struct object *obj; - foreach_obj(obj) - { + foreach_obj (obj) { if (obj->location == player->location && obj->prospect == target) return obj; @@ -92,8 +89,7 @@ weight_of_contents(struct object *container) int sum = 0; struct object *obj; - foreach_obj(obj) - { + foreach_obj (obj) { if (obj->location == container) sum += obj->weight; }