Commit 3621ff8c authored by unknown's avatar unknown

Improved STR_VALUE macro

parent db2343e8
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
#define KEY_INTERNAL 0 #define KEY_INTERNAL 0
#define MAX_INT_RNIL 0xfffffeff #define MAX_INT_RNIL 0xfffffeff
#define STR_VALUE(x) #x #define _STR_VALUE(x) #x
#define STR_VALUE(x) _STR_VALUE(x)
/**************************************************************************** /****************************************************************************
* Section names * Section names
...@@ -426,7 +427,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -426,7 +427,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
"128", "128",
"0", "0",
MAX_INT_RNIL_STRING }, STR_VALUE(MAX_INT_RNIL) },
{ {
CFG_DB_NO_UNIQUE_HASH_INDEXES, CFG_DB_NO_UNIQUE_HASH_INDEXES,
...@@ -438,7 +439,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -438,7 +439,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
"64", "64",
"0", "0",
MAX_INT_RNIL_STRING }, STR_VALUE(MAX_INT_RNIL) },
{ {
CFG_DB_NO_INDEXES, CFG_DB_NO_INDEXES,
...@@ -570,7 +571,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -570,7 +571,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
"32k", "32k",
"32", "32",
MAX_INT_RNIL_STRING }, STR_VALUE(MAX_INT_RNIL) },
{ {
CFG_DB_NO_LOCAL_OPS, CFG_DB_NO_LOCAL_OPS,
...@@ -582,7 +583,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -582,7 +583,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
UNDEFINED, UNDEFINED,
"32", "32",
MAX_INT_RNIL_STRING }, STR_VALUE(MAX_INT_RNIL) },
{ {
CFG_DB_NO_LOCAL_SCANS, CFG_DB_NO_LOCAL_SCANS,
...@@ -594,7 +595,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -594,7 +595,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
UNDEFINED, UNDEFINED,
"32", "32",
MAX_INT_RNIL_STRING }, STR_VALUE(MAX_INT_RNIL) },
{ {
CFG_DB_BATCH_SIZE, CFG_DB_BATCH_SIZE,
...@@ -678,7 +679,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -678,7 +679,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
"2M", "2M",
"1M", "1M",
MAX_INT_RNIL_STRING}, STR_VALUE(MAX_INT_RNIL)},
{ {
CFG_DB_UNDO_DATA_BUFFER, CFG_DB_UNDO_DATA_BUFFER,
...@@ -690,7 +691,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -690,7 +691,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
"16M", "16M",
"1M", "1M",
MAX_INT_RNIL_STRING}, STR_VALUE(MAX_INT_RNIL)},
{ {
CFG_DB_REDO_BUFFER, CFG_DB_REDO_BUFFER,
...@@ -702,7 +703,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -702,7 +703,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
"8M", "8M",
"1M", "1M",
MAX_INT_RNIL_STRING}, STR_VALUE(MAX_INT_RNIL)},
{ {
CFG_DB_LONG_SIGNAL_BUFFER, CFG_DB_LONG_SIGNAL_BUFFER,
...@@ -714,7 +715,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -714,7 +715,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
ConfigInfo::INT, ConfigInfo::INT,
"1M", "1M",
"512k", "512k",
MAX_INT_RNIL_STRING}, STR_VALUE(MAX_INT_RNIL)},
{ {
CFG_DB_START_PARTIAL_TIMEOUT, CFG_DB_START_PARTIAL_TIMEOUT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment