Merge pull request #1937 from hxy7yx/main-1

determine whether tag(string) set endianness
This commit is contained in:
fengzeroz
2024-04-10 13:42:39 +08:00
committed by GitHub
3 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ jobs:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./cov_report/
files: cov-ut.info
files: ./cov_report/cov-ut.info
pft:
runs-on: ubuntu-20.04
@@ -135,4 +135,4 @@ jobs:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./cov_report/
files: cov-${{ matrix.plugin }}.info
files: ./cov_report/cov-${{ matrix.plugin }}.info
+1
View File
@@ -67,6 +67,7 @@ typedef union {
struct {
uint16_t length;
neu_datatag_string_type_e type;
bool is_default;
} string;
struct {
+10 -5
View File
@@ -161,19 +161,24 @@ int neu_datatag_parse_addr_option(const neu_datatag_t * datatag,
switch (t) {
case 'H':
option->string.type = NEU_DATATAG_STRING_TYPE_H;
option->string.type = NEU_DATATAG_STRING_TYPE_H;
option->string.is_default = false;
break;
case 'L':
option->string.type = NEU_DATATAG_STRING_TYPE_L;
option->string.type = NEU_DATATAG_STRING_TYPE_L;
option->string.is_default = false;
break;
case 'D':
option->string.type = NEU_DATATAG_STRING_TYPE_D;
option->string.type = NEU_DATATAG_STRING_TYPE_D;
option->string.is_default = false;
break;
case 'E':
option->string.type = NEU_DATATAG_STRING_TYPE_D;
option->string.type = NEU_DATATAG_STRING_TYPE_E;
option->string.is_default = false;
break;
default:
option->string.type = NEU_DATATAG_STRING_TYPE_H;
option->string.type = NEU_DATATAG_STRING_TYPE_H;
option->string.is_default = true;
break;
}