添加自研批检仪检测命令

This commit is contained in:
ranchuan
2023-11-27 14:31:00 +08:00
parent b3a0d7b57c
commit a0b0f41c39
45 changed files with 3778 additions and 2628 deletions

View File

@@ -3,19 +3,14 @@
#include "string.h"
#include "QDebug"
InterFace *interFaceFind(const char *name)
{
extern const int __start_ifdef;
extern const int __stop_ifdef;
if_def *start=(if_def *)&__start_ifdef;
if_def *end=(if_def *)&__stop_ifdef;
extern const int __start_ifdef;
extern const int __stop_ifdef;
if_def *start = (if_def *)&__start_ifdef;
if_def *end = (if_def *)&__stop_ifdef;
if_def *item = 0;
for (item=start;item<end;item++)
for (item = start; item < end; item++)
{
if (item != nullptr)
{
@@ -26,7 +21,3 @@ InterFace *interFaceFind(const char *name)
qWarning("can not find interface named '%s'", name);
return nullptr;
}