nethack.allison
78ef9ef991
safe_oname (trunk only)
...
There were routines that were passed the
object name as an argument. Before the oextra
patch, ONAME() always returned a valid pointer
to a location within the obj struct. The oextra
patch worked around those cases by
using a temporary variable that was either set
to ONAME (if the obj passed the has_oname() test),
or to "" (pointer to an empty string) if no name was
present.
Since that might be a common thing to do, provide
the safe_oname() routine that you can use as a
function parameter without having to worry about
about whether ONAME(obj) is valid, and without
the need for the temporary variable.
2006-04-15 15:40:27 +00:00
..
2002-01-18 02:50:06 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2002-01-05 21:05:47 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-23 16:29:16 +00:00
2005-12-11 03:09:05 +00:00
2005-01-02 16:50:12 +00:00
2005-11-26 02:32:49 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-06-18 04:38:50 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2006-04-15 15:40:27 +00:00
2006-01-14 17:02:22 +00:00
2005-01-02 16:50:12 +00:00
2002-01-05 21:05:47 +00:00
2005-01-22 15:28:15 +00:00
2006-04-08 06:55:15 +00:00
2005-01-02 16:50:12 +00:00
2002-01-05 21:05:47 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2006-04-14 16:23:56 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-03-13 05:29:01 +00:00
2005-01-02 16:50:12 +00:00
2005-10-06 03:45:20 +00:00
2005-01-02 16:50:12 +00:00
2006-03-12 04:43:28 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-15 14:04:03 +00:00
2006-04-15 13:37:58 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2006-04-15 13:40:11 +00:00
2005-01-02 16:50:12 +00:00
2006-01-06 05:46:03 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2002-01-05 21:05:48 +00:00
2005-01-02 16:50:12 +00:00
2002-03-09 03:13:18 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-08 14:37:36 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2006-02-12 06:24:25 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 20:55:41 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2006-03-25 18:59:53 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-23 19:39:01 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2002-04-21 17:09:34 +00:00
2005-01-09 21:40:24 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2005-01-02 16:50:12 +00:00
2006-03-02 05:54:04 +00:00
2005-01-02 16:50:12 +00:00