這是圖片
這是第一級標(biāo)題
這是第二級標(biāo)題
共六級標(biāo)題(這是一個引用)
這是鏈接
這是粗體字
這是斜體字
這是代碼框
這是代碼框 python
這也是代碼框
上面是分割線
上面也是分割線
這是刪除線
- 這是第一項绅络,與前面的星號間有一個空格
- 這是第二項脊髓,與前面的減號間有一個空格
下面是代碼框塊虑啤,注意是三個```哦
/*
** Create or reuse a zero-terminated string, first checking in the
** cache (using the string address as a key). The cache can contain
** only zero-terminated strings, so it is safe to use 'strcmp' to
** check hits.
*/
TString *luaS_new (lua_State *L, const char *str) {
unsigned int i = point2uint(str) % STRCACHE_N; /* hash */
int j;
TString **p = G(L)->strcache[i];
for (j = 0; j < STRCACHE_M; j++) {
if (strcmp(str, getstr(p[j])) == 0) /* hit? */
return p[j]; /* that is it */
}
/* normal route */
for (j = STRCACHE_M - 1; j > 0; j--)
p[j] = p[j - 1]; /* move out last element */
/* new element is first in the list */
p[0] = luaS_newlstr(L, str, strlen(str));
return p[0];
}