User Tools

Site Tools


mywiki:linux:enum_string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mywiki:linux:enum_string [2015/06/26 15:49] supermywiki:linux:enum_string [2019/09/15 18:55] (current) – external edit 127.0.0.1
Line 21: Line 21:
  
 ====== map enum to string array ====== ====== map enum to string array ======
 +<file>
 #undef DP_F_ENUM_OR_STRING #undef DP_F_ENUM_OR_STRING
 #define DP_F_ENUM_OR_STRING(name,value, short_name) short_name #define DP_F_ENUM_OR_STRING(name,value, short_name) short_name
Line 28: Line 28:
 }; };
 #undef DP_F_ENUM_OR_STRING #undef DP_F_ENUM_OR_STRING
 +</file>
  
 ====== map enum to an value array ====== ====== map enum to an value array ======
 +<file>
 #undef DP_F_ENUM_OR_STRING #undef DP_F_ENUM_OR_STRING
-#define DP_F_ENUM_OR_STRING(name,value, short_name) name+#define DP_F_ENUM_OR_STRING(name,value, short_name) value
 uint32_t dp_port_flag[] = { uint32_t dp_port_flag[] = {
  DP_F_FLAG_LIST  DP_F_FLAG_LIST
 }; };
 #undef DP_F_ENUM_OR_STRING #undef DP_F_ENUM_OR_STRING
 +</file>
  
mywiki/linux/enum_string.1435304981.txt.gz · Last modified: (external edit)