📄 stubs.inl
字号:
#include <stdlib.h>
#include <string.h>
inline LispInt PlatStrLen(const LispCharPtr aString)
{
return strlen(aString);
/*Generic version
LispInt nr=0;
while ((*aString) != '\0')
{
aString++;
nr++;
}
return nr;
*/
}
inline LispInt StrEqual(LispCharPtr ptr1, LispCharPtr ptr2)
{
return !strcmp(ptr1,ptr2);
/*
while (*ptr1 != 0 && *ptr2 != 0)
{
if (*ptr1++ != *ptr2++)
return 0;
}
if (*ptr1 != *ptr2)
return 0;
return 1;
*/
}
inline void PlatMemCopy(LispCharPtr aTarget, LispCharPtr aSource, LispInt aNrBytes)
{
memcpy(aTarget, aSource, aNrBytes);
}
inline void PlatMemMove(LispCharPtr aTarget, LispCharPtr aSource, LispInt aNrBytes)
{
memmove(aTarget, aSource, aNrBytes);
}
inline void PlatMemSet(LispCharPtr aTarget, LispChar aByte, LispInt aNrBytes)
{
memset(aTarget, aByte, aNrBytes);
}
#define StrCompare(s1,s2) strcmp((char*)s1,(char*)s2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -