📄 lvdef.h
字号:
#ifndef ___LVDEF_H
#define ___LVDEF_H
#include <lvapidef.h>
#ifdef __UNIX__
#include <unistd.h>
#define ___NT 0
#define ___95 0
// Windows like defs
// typedef FILE * DRVHANDLE;
// typedef int DLLINSTANCE;
#define __export
#define _export
#define FAR
#define far
#define PASCAL
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
typedef unsigned char U8BIT;
typedef unsigned short int U16BIT;
typedef unsigned int U32BIT;
typedef U32BIT A32BIT;
typedef signed char S8BIT;
typedef signed short int S16BIT;
typedef signed int S32BIT;
typedef unsigned long LVRAWPTR;
#define _Huge_
typedef U32BIT LVSTATUS;
#ifndef __VXWORKS__
typedef LVSTATUS STATUS;
#endif
#define _BYTEALIGNED __attribute__ ((packed))
#else
#define _BYTEALIGNED
#ifdef __WIN64__
#define ___NT 1
#define ___95 0
typedef unsigned char U8BIT;
typedef unsigned short int U16BIT;
typedef unsigned long U32BIT;
typedef signed char S8BIT;
typedef signed short int S16BIT;
typedef signed long S32BIT;
#define _Huge_
typedef U32BIT LVSTATUS;
typedef LVSTATUS STATUS;
typedef __int64 LVRAWPTR;
#else
#ifdef __WIN32__
#ifdef __WIN95__
#define ___NT 0
#define ___95 1
#else
#define ___NT 1
#define ___95 0
#endif
typedef unsigned char U8BIT;
typedef unsigned short int U16BIT;
typedef unsigned long U32BIT;
typedef signed char S8BIT;
typedef signed short int S16BIT;
typedef signed long S32BIT;
typedef unsigned long LVRAWPTR;
#define _Huge_
typedef U32BIT LVSTATUS;
typedef LVSTATUS STATUS;
#else
#define ___NT 0
#define ___95 0
typedef unsigned char U8BIT;
typedef unsigned int U16BIT;
typedef unsigned long U32BIT;
typedef signed char S8BIT;
typedef signed int S16BIT;
typedef signed long S32BIT;
#define _Huge_ __huge
typedef U16BIT LVSTATUS;
typedef LVSTATUS STATUS;
#endif
#endif
#endif
typedef U32BIT LvRegister;
typedef U16BIT HDEVICE;
#define MAX_BOARDNAME 30
#ifndef I_NoError
#define I_NoError 0
#endif
#define LV_MAXPATH 128
#define LV_INI_PVP_SECTIONPREFIX "PVP."
// Log macros
#define _NOT_EDITOR
#define _TRACK(x) LvLog(PVP_I_Track, __FILE__, __LINE__, x)
#define LOGERROR(e) LvLog(e, __FILE__, __LINE__)
#define LOGERROR_1P(e, x) LvLog(e, __FILE__, __LINE__, x)
#define LOGPLAIN(e) LvLogPlain(e, __FILE__, __LINE__)
#define _EXPORTFN(x) x FAR PASCAL _export
// compiler compatibility definitions
#ifdef _MSC_VER
#include <conio.h>
#include <dos.h>
// #ifdef _WINDOWS // Visual Studio 2005 does not define _WINDOWS anymore.
// We don't expect VS2005 to be used other than for Windows.
#define _Windows
// #endif
#define __emit__(x) __asm _emit x
#ifdef __WIN3264__
#define farfree free
#ifdef __WIN64__
#define farmalloc malloc
#define farrealloc realloc
#define farcalloc calloc
#endif
#else
#define outp _outp
#define inp _inp
#define disable _disable
#define enable _enable
#define farmalloc _fmalloc
#define farfree _ffree
#define farrealloc _frealloc
#endif
#define fnsplit _splitpath
#define fnmerge _makepath
#endif
#include <lvpackon.h>
// Common structures
typedef struct _tagLvBoardIdentifier {
U16BIT PrintId _BYTEALIGNED;
U8BIT PrintRev _BYTEALIGNED;
U8BIT FW _BYTEALIGNED;
U8BIT FWO _BYTEALIGNED;
U8BIT HW _BYTEALIGNED;
U8BIT HWO _BYTEALIGNED;
U8BIT DL _BYTEALIGNED;
U8BIT DLO _BYTEALIGNED;
} LvBoardIdentifier;
#include <lvpackof.h>
#include <windows.h>
typedef HANDLE DRVHANDLE;
#ifdef __UNIX__
typedef int INTHANDLE;
#define __sigaction sigaction
#if __VXWORKS
#include <tasklib.h>
#define getpid taskIdSelf
#endif
#include <winfn.h>
#else
typedef HANDLE INTHANDLE;
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -