PERFORCE change 87902 for review
John Baldwin
jhb at FreeBSD.org
Thu Dec 8 11:55:57 PST 2005
http://perforce.freebsd.org/chv.cgi?CH=87902
Change 87902 by jhb at jhb_slimer on 2005/12/08 19:54:51
Use cmd_name rather than func_name to define the name of the command
struct so that aliases work.
Affected files ...
.. //depot/projects/smpng/sys/ddb/ddb.h#18 edit
Differences ...
==== //depot/projects/smpng/sys/ddb/ddb.h#18 (text+ko) ====
@@ -60,13 +60,13 @@
DB_FUNC(cmd_name, func_name, db_show_cmd_set, 0, NULL)
#define DB_SET(cmd_name, func_name, set, flag, more) \
-static const struct command __CONCAT(func_name,_cmd) = { \
+static const struct command __CONCAT(cmd_name,_cmd) = { \
__STRING(cmd_name), \
func_name, \
flag, \
more \
}; \
-TEXT_SET(set, __CONCAT(func_name,_cmd))
+TEXT_SET(set, __CONCAT(cmd_name,_cmd))
#define DB_FUNC(cmd_name, func_name, set, flag, more) \
static db_cmdfcn_t func_name; \
More information about the p4-projects
mailing list