On Sun, 27 Sep 1998, Mundi King wrote: >i become easily confused when facing structures and pointers, and i was >wondering what the following code in act.item.c does > >#endif >extern struct obj_data *obj_proto; >extern struct obj_data *obj_proto; >extern char *drinknames[]; > >what does having the same two lines accomplish? You get a neat warning if you use -Wredundant-decls. Otherwise it's useless. I'll go remove the extra one. -- George Greer, greerga@circlemud.org | Genius may have its limitations, but http://mouse.van.ml.org/ (mostly) | stupidity is not thus handicapped. http://www.van.ml.org/CircleMUD/ | -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST