refoctor: refoctor the code to reduce function complexity.

Signed-off-by: yudechen <chenyude@huawei.com>
Change-Id: I9abd347e414395c44300a8e927332f7101c05c38
This commit is contained in:
yudechen
2023-06-26 11:30:18 +08:00
parent 5226783173
commit 2a1fedee7c
4 changed files with 398 additions and 346 deletions
+1 -2
View File
@@ -18,7 +18,6 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <limits.h>
#include "securec.h"
#include "syscap_tool.h"
@@ -29,7 +28,7 @@
printf("ERROR: [%s: %d] -> ", __FILE__, __LINE__); \
printf(__VA_ARGS__); \
} while (0)
#define SYSCAP_VERSION "2.0.0"
#define SYSCAP_VERSION "2.0.1"
#define OUTPUT_VERSION_LEN 200
#define ENCODE 0
#define DECODE 1