Date: Thu, 8 Dec 2005 19:55:21 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 87902 for review Message-ID: <200512081955.jB8JtLCL009301@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=87902 Change 87902 by jhb@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; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512081955.jB8JtLCL009301>