Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions libCacheSim/include/libCacheSim/enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,21 @@ typedef enum {
OP_INVALID = 255
} req_op_e;

#define INV "invalid",
#define INV_X16 INV INV INV INV INV INV INV INV INV INV INV INV INV INV INV INV
Comment thread
haochengxia marked this conversation as resolved.
#define INV_X64 INV_X16 INV_X16 INV_X16 INV_X16
#define INV_X256 INV_X64 INV_X64 INV_X64 INV_X64

static const char* const req_op_str[OP_INVALID + 2] = {
"nop", "get", "gets", "set", "add", "cas", "replace", "append",
"prepend", "delete", "incr", "decr", "read", "write", "update", "invalid"};
"nop", "get",
"gets", "set",
"add", "cas",
"replace", "append",
"prepend", "delete",
"incr", "decr",
"read", "write",
"update", INV_X64 INV_X64 INV_X64 INV_X16 INV_X16 INV_X16 "invalid",
Comment thread
haochengxia marked this conversation as resolved.
"invalid"};
Comment thread
haochengxia marked this conversation as resolved.

typedef enum { ERR, OK, MY_EOF } rstatus;
static const char* const rstatus_str[3] = {"ERR", "OK", "MY_EOF"};
Expand Down
Loading