mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Passing argument 1 of ‘strncmp’ from incompatible pointer type. Assignments from incompatible pointer types. Passing argument or initialization discards ‘const’ qualifier from pointer target type. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
635 lines
18 KiB
C
635 lines
18 KiB
C
/* Copyright 2015 Samsung Electronics Co., Ltd.
|
|
* Copyright 2016 University of Szeged.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include "lit-literal.h"
|
|
|
|
#include "ecma-helpers.h"
|
|
#include "lit-cpointer.h"
|
|
#include "lit-magic-strings.h"
|
|
#include "lit-literal-storage.h"
|
|
|
|
|
|
/**
|
|
* Initialize literal storage
|
|
*/
|
|
void
|
|
lit_init (void)
|
|
{
|
|
lit_magic_strings_ex_init ();
|
|
} /* lit_init */
|
|
|
|
/**
|
|
* Finalize literal storage
|
|
*/
|
|
void
|
|
lit_finalize (void)
|
|
{
|
|
while (lit_storage)
|
|
{
|
|
lit_storage = lit_free_literal (lit_storage);
|
|
}
|
|
} /* lit_finalize */
|
|
|
|
/**
|
|
* Create new literal in literal storage from characters buffer.
|
|
* Don't check if the same literal already exists.
|
|
*
|
|
* @return pointer to created record
|
|
*/
|
|
lit_literal_t
|
|
lit_create_literal_from_utf8_string (const lit_utf8_byte_t *str_p, /**< string to initialize the record,
|
|
* could be non-zero-terminated */
|
|
lit_utf8_size_t str_size) /**< length of the string */
|
|
{
|
|
JERRY_ASSERT (str_p || !str_size);
|
|
|
|
lit_magic_string_id_t m_str_id;
|
|
for (m_str_id = (lit_magic_string_id_t) 0;
|
|
m_str_id < LIT_MAGIC_STRING__COUNT;
|
|
m_str_id = (lit_magic_string_id_t) (m_str_id + 1))
|
|
{
|
|
if (lit_get_magic_string_size (m_str_id) != str_size)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if (!strncmp ((const char *) str_p, (const char *) lit_get_magic_string_utf8 (m_str_id), str_size))
|
|
{
|
|
return lit_create_magic_literal (m_str_id);
|
|
}
|
|
}
|
|
|
|
lit_magic_string_ex_id_t m_str_ex_id;
|
|
for (m_str_ex_id = (lit_magic_string_ex_id_t) 0;
|
|
m_str_ex_id < lit_get_magic_string_ex_count ();
|
|
m_str_ex_id = (lit_magic_string_ex_id_t) (m_str_ex_id + 1))
|
|
{
|
|
if (lit_get_magic_string_ex_size (m_str_ex_id) != str_size)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if (!strncmp ((const char *) str_p, (const char *) lit_get_magic_string_ex_utf8 (m_str_ex_id), str_size))
|
|
{
|
|
return lit_create_magic_literal_ex (m_str_ex_id);
|
|
}
|
|
}
|
|
|
|
return lit_create_charset_literal (str_p, str_size);
|
|
} /* lit_create_literal_from_utf8_string */
|
|
|
|
/**
|
|
* Find a literal in literal storage.
|
|
* Only charset and magic string records are checked during search.
|
|
*
|
|
* @return pointer to a literal or NULL if no corresponding literal exists
|
|
*/
|
|
lit_literal_t
|
|
lit_find_literal_by_utf8_string (const lit_utf8_byte_t *str_p, /**< a string to search for */
|
|
lit_utf8_size_t str_size) /**< length of the string */
|
|
{
|
|
JERRY_ASSERT (str_p || !str_size);
|
|
|
|
lit_string_hash_t str_hash = lit_utf8_string_calc_hash (str_p, str_size);
|
|
|
|
lit_literal_t lit;
|
|
|
|
for (lit = lit_storage;
|
|
lit != NULL;
|
|
lit = lit_cpointer_decompress (lit->next))
|
|
{
|
|
const lit_record_type_t type = (lit_record_type_t) lit->type;
|
|
|
|
switch (type)
|
|
{
|
|
case LIT_RECORD_TYPE_CHARSET:
|
|
{
|
|
const lit_charset_record_t *const rec_p = (const lit_charset_record_t *) lit;
|
|
|
|
if (rec_p->hash != str_hash)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if (rec_p->size != str_size)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if (!strncmp ((const char *) (rec_p + 1), (const char *) str_p, str_size))
|
|
{
|
|
return lit;
|
|
}
|
|
|
|
break;
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR:
|
|
{
|
|
lit_magic_string_id_t magic_id = (lit_magic_string_id_t) ((lit_magic_record_t *) lit)->magic_id;
|
|
const lit_utf8_byte_t *magic_str_p = lit_get_magic_string_utf8 (magic_id);
|
|
|
|
if (lit_get_magic_string_size (magic_id) != str_size)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if (!strncmp ((const char *) magic_str_p, (const char *) str_p, str_size))
|
|
{
|
|
return lit;
|
|
}
|
|
|
|
break;
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR_EX:
|
|
{
|
|
lit_magic_string_ex_id_t magic_id = ((lit_magic_record_t *) lit)->magic_id;
|
|
const lit_utf8_byte_t *magic_str_p = lit_get_magic_string_ex_utf8 (magic_id);
|
|
|
|
if (lit_get_magic_string_ex_size (magic_id) != str_size)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if (!strncmp ((const char *) magic_str_p, (const char *) str_p, str_size))
|
|
{
|
|
return lit;
|
|
}
|
|
|
|
break;
|
|
}
|
|
default:
|
|
{
|
|
JERRY_ASSERT (type == LIT_RECORD_TYPE_NUMBER);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
return NULL;
|
|
} /* lit_find_literal_by_utf8_string */
|
|
|
|
/**
|
|
* Check if a literal which holds the passed string exists.
|
|
* If it doesn't exist, create a new one.
|
|
*
|
|
* @return pointer to existing or newly created record
|
|
*/
|
|
lit_literal_t
|
|
lit_find_or_create_literal_from_utf8_string (const lit_utf8_byte_t *str_p, /**< string, could be non-zero-terminated */
|
|
const lit_utf8_size_t str_size) /**< length of the string */
|
|
{
|
|
lit_literal_t lit = lit_find_literal_by_utf8_string (str_p, str_size);
|
|
|
|
if (lit == NULL)
|
|
{
|
|
lit = lit_create_literal_from_utf8_string (str_p, str_size);
|
|
}
|
|
|
|
return lit;
|
|
} /* lit_find_or_create_literal_from_utf8_string */
|
|
|
|
|
|
/**
|
|
* Create new literal in literal storage from number.
|
|
*
|
|
* @return pointer to a newly created record
|
|
*/
|
|
lit_literal_t __attr_always_inline___
|
|
lit_create_literal_from_num (const ecma_number_t num) /**< number to initialize a new number literal */
|
|
{
|
|
return lit_create_number_literal (num);
|
|
} /* lit_create_literal_from_num */
|
|
|
|
/**
|
|
* Find existing or create new number literal in literal storage.
|
|
*
|
|
* @return pointer to existing or a newly created record
|
|
*/
|
|
lit_literal_t
|
|
lit_find_or_create_literal_from_num (ecma_number_t num) /**< number which a literal should contain */
|
|
{
|
|
lit_literal_t lit = lit_find_literal_by_num (num);
|
|
|
|
if (lit == NULL)
|
|
{
|
|
lit = lit_create_literal_from_num (num);
|
|
}
|
|
|
|
return lit;
|
|
} /* lit_find_or_create_literal_from_num */
|
|
|
|
/**
|
|
* Find an existing number literal which contains the passed number
|
|
*
|
|
* @return pointer to existing or null
|
|
*/
|
|
lit_literal_t
|
|
lit_find_literal_by_num (const ecma_number_t num) /**< a number to search for */
|
|
{
|
|
lit_literal_t lit;
|
|
for (lit = lit_storage;
|
|
lit != NULL;
|
|
lit = lit_cpointer_decompress (lit->next))
|
|
{
|
|
const lit_record_type_t type = (lit_record_type_t) lit->type;
|
|
|
|
if (type != LIT_RECORD_TYPE_NUMBER)
|
|
{
|
|
continue;
|
|
}
|
|
|
|
const ecma_number_t lit_num = lit_number_literal_get_number (lit);
|
|
|
|
if (lit_num == num)
|
|
{
|
|
return lit;
|
|
}
|
|
}
|
|
|
|
return NULL;
|
|
} /* lit_find_literal_by_num */
|
|
|
|
/**
|
|
* Check if literal equals to charset record
|
|
*
|
|
* @return true if is_equal
|
|
* false otherwise
|
|
*/
|
|
static bool
|
|
lit_literal_equal_charset_rec (lit_literal_t lit, /**< literal to compare */
|
|
lit_literal_t record) /**< charset record to compare */
|
|
{
|
|
switch (lit->type)
|
|
{
|
|
case LIT_RECORD_TYPE_CHARSET:
|
|
{
|
|
return lit_literal_equal_charset (lit,
|
|
lit_charset_literal_get_charset (record),
|
|
lit_charset_literal_get_size (record));
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR:
|
|
{
|
|
lit_magic_string_id_t magic_string_id = lit_magic_literal_get_magic_str_id (lit);
|
|
return lit_literal_equal_charset (record,
|
|
lit_get_magic_string_utf8 (magic_string_id),
|
|
lit_get_magic_string_size (magic_string_id));
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR_EX:
|
|
{
|
|
lit_magic_string_ex_id_t magic_string_id = lit_magic_literal_get_magic_str_ex_id (lit);
|
|
|
|
return lit_literal_equal_charset (record,
|
|
lit_get_magic_string_ex_utf8 (magic_string_id),
|
|
lit_get_magic_string_ex_size (magic_string_id));
|
|
}
|
|
case LIT_RECORD_TYPE_NUMBER:
|
|
{
|
|
ecma_number_t num = lit_number_literal_get_number (lit);
|
|
|
|
lit_utf8_byte_t buff[ECMA_MAX_CHARS_IN_STRINGIFIED_NUMBER];
|
|
lit_utf8_size_t copied = ecma_number_to_utf8_string (num, buff, sizeof (buff));
|
|
|
|
return lit_literal_equal_charset (record, buff, copied);
|
|
}
|
|
default:
|
|
{
|
|
JERRY_UNREACHABLE ();
|
|
return false;
|
|
}
|
|
}
|
|
} /* lit_literal_equal_charset_rec */
|
|
|
|
/**
|
|
* Check if literal equals to utf-8 string
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal_utf8 (lit_literal_t lit, /**< literal to compare */
|
|
const lit_utf8_byte_t *str_p, /**< utf-8 string to compare */
|
|
lit_utf8_size_t str_size) /**< string size in bytes */
|
|
{
|
|
switch (lit->type)
|
|
{
|
|
case LIT_RECORD_TYPE_CHARSET:
|
|
{
|
|
if (lit_charset_literal_get_size (lit) != str_size)
|
|
{
|
|
return 0;
|
|
}
|
|
return !strncmp ((const char *) lit_charset_literal_get_charset (lit), (const char *) str_p, str_size);
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR:
|
|
{
|
|
lit_magic_string_id_t magic_id = lit_magic_literal_get_magic_str_id (lit);
|
|
return lit_compare_utf8_string_and_magic_string (str_p, str_size, magic_id);
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR_EX:
|
|
{
|
|
lit_magic_string_ex_id_t magic_id = lit_magic_literal_get_magic_str_ex_id (lit);
|
|
return lit_compare_utf8_string_and_magic_string_ex (str_p, str_size, magic_id);
|
|
}
|
|
case LIT_RECORD_TYPE_NUMBER:
|
|
{
|
|
ecma_number_t num = lit_number_literal_get_number (lit);
|
|
|
|
lit_utf8_byte_t num_buf[ECMA_MAX_CHARS_IN_STRINGIFIED_NUMBER];
|
|
lit_utf8_size_t num_size = ecma_number_to_utf8_string (num, num_buf, sizeof (num_buf));
|
|
|
|
return lit_compare_utf8_strings (str_p, str_size, num_buf, num_size);
|
|
}
|
|
default:
|
|
{
|
|
JERRY_UNREACHABLE ();
|
|
}
|
|
}
|
|
} /* lit_literal_equal_utf8 */
|
|
|
|
/**
|
|
* Check if literal contains the string equal to the passed number
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal_num (lit_literal_t lit, /**< literal to check */
|
|
ecma_number_t num) /**< number to compare with */
|
|
{
|
|
lit_utf8_byte_t buff[ECMA_MAX_CHARS_IN_STRINGIFIED_NUMBER];
|
|
lit_utf8_size_t copied = ecma_number_to_utf8_string (num, buff, sizeof (buff));
|
|
|
|
return lit_literal_equal_utf8 (lit, buff, copied);
|
|
} /* lit_literal_equal_num */
|
|
|
|
|
|
/**
|
|
* Check if literal contains the string equal to the buffer
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal_charset (lit_literal_t lit, /**< literal to checks */
|
|
const lit_utf8_byte_t *buff, /**< string buffer */
|
|
lit_utf8_size_t size) /**< buffer size */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_CHARSET);
|
|
|
|
if (size != lit_charset_literal_get_size (lit))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return !strncmp ((const char *) buff, (const char *) lit_charset_literal_get_charset (lit), size);
|
|
} /* lit_literal_equal_charset */
|
|
|
|
|
|
/**
|
|
* Check if two literals are equal
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal (lit_literal_t lit1, /**< first literal */
|
|
lit_literal_t lit2) /**< second literal */
|
|
{
|
|
switch (lit2->type)
|
|
{
|
|
case LIT_RECORD_TYPE_CHARSET:
|
|
{
|
|
return lit_literal_equal_charset_rec (lit1, lit2);
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR:
|
|
{
|
|
lit_magic_string_id_t magic_str_id = lit_magic_literal_get_magic_str_id (lit2);
|
|
|
|
return lit_literal_equal_utf8 (lit1,
|
|
lit_get_magic_string_utf8 (magic_str_id),
|
|
lit_get_magic_string_size (magic_str_id));
|
|
}
|
|
case LIT_RECORD_TYPE_MAGIC_STR_EX:
|
|
{
|
|
lit_magic_string_ex_id_t magic_str_ex_id = lit_magic_literal_get_magic_str_ex_id (lit2);
|
|
|
|
return lit_literal_equal_utf8 (lit1,
|
|
lit_get_magic_string_ex_utf8 (magic_str_ex_id),
|
|
lit_get_magic_string_ex_size (magic_str_ex_id));
|
|
}
|
|
case LIT_RECORD_TYPE_NUMBER:
|
|
{
|
|
ecma_number_t num = lit_number_literal_get_number (lit2);
|
|
return lit_literal_equal_num (lit1, num);
|
|
}
|
|
default:
|
|
{
|
|
JERRY_UNREACHABLE ();
|
|
break;
|
|
}
|
|
}
|
|
|
|
JERRY_UNREACHABLE ();
|
|
return 0;
|
|
} /* lit_literal_equal */
|
|
|
|
/**
|
|
* Check if literal equals to utf-8 string.
|
|
* Check that literal is a string literal before performing detailed comparison.
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal_type_utf8 (lit_literal_t lit, /**< literal to compare */
|
|
const lit_utf8_byte_t *str_p, /**< utf-8 string */
|
|
lit_utf8_size_t str_size) /**< string size */
|
|
{
|
|
const lit_record_type_t type = (const lit_record_type_t) lit->type;
|
|
|
|
if (type == LIT_RECORD_TYPE_NUMBER || type == LIT_RECORD_TYPE_FREE)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return lit_literal_equal_utf8 (lit, str_p, str_size);
|
|
} /* lit_literal_equal_type_utf8 */
|
|
|
|
/**
|
|
* Check if literal equals to C string.
|
|
* Check that literal is a string literal before performing detailed comparison.
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal_type_cstr (lit_literal_t lit, /**< literal to compare */
|
|
const char *c_str_p) /**< zero-terminated C-string */
|
|
{
|
|
return lit_literal_equal_type_utf8 (lit, (const lit_utf8_byte_t *) c_str_p, (lit_utf8_size_t) strlen (c_str_p));
|
|
} /* lit_literal_equal_type_cstr */
|
|
|
|
/**
|
|
* Check if literal contains the string equal to the passed number.
|
|
* Check that literal is a number literal before performing detailed comparison.
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal_type_num (lit_literal_t lit, /**< literal to check */
|
|
ecma_number_t num) /**< number to compare with */
|
|
{
|
|
if (lit->type != LIT_RECORD_TYPE_NUMBER)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return lit_literal_equal_num (lit, num);
|
|
} /* lit_literal_equal_type_num */
|
|
|
|
/**
|
|
* Check if two literals are equal
|
|
* Compare types of literals before performing detailed comparison.
|
|
*
|
|
* @return true if equal
|
|
* false otherwise
|
|
*/
|
|
bool
|
|
lit_literal_equal_type (lit_literal_t lit1, /**< first literal */
|
|
lit_literal_t lit2) /**< second literal */
|
|
{
|
|
if (lit1->type != lit2->type)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return lit_literal_equal (lit1, lit2);
|
|
} /* lit_literal_equal_type */
|
|
|
|
/**
|
|
* Check if literal really exists in the storage
|
|
*
|
|
* @return true if literal exists in the storage
|
|
* false otherwise
|
|
*/
|
|
static bool
|
|
lit_literal_exists (lit_literal_t lit) /**< literal to check for existence */
|
|
{
|
|
lit_literal_t current_lit;
|
|
|
|
for (current_lit = lit_storage;
|
|
current_lit != NULL;
|
|
current_lit = lit_cpointer_decompress (current_lit->next))
|
|
{
|
|
if (current_lit == lit)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
} /* lit_literal_exists */
|
|
|
|
/**
|
|
* Convert compressed pointer to literal
|
|
*
|
|
* @return literal
|
|
*/
|
|
lit_literal_t
|
|
lit_get_literal_by_cp (lit_cpointer_t lit_cp) /**< compressed pointer to literal */
|
|
{
|
|
lit_literal_t lit = lit_cpointer_decompress (lit_cp);
|
|
JERRY_ASSERT (lit_literal_exists (lit));
|
|
|
|
return lit;
|
|
} /* lit_get_literal_by_cp */
|
|
|
|
lit_string_hash_t
|
|
lit_charset_literal_get_hash (lit_literal_t lit) /**< literal */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_CHARSET);
|
|
|
|
const lit_charset_record_t *const rec_p = (const lit_charset_record_t *) lit;
|
|
|
|
return (lit_string_hash_t) rec_p->hash;
|
|
} /* lit_charset_literal_get_hash */
|
|
|
|
lit_magic_string_id_t
|
|
lit_magic_literal_get_magic_str_id (lit_literal_t lit) /**< literal */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_MAGIC_STR);
|
|
|
|
const lit_magic_record_t *const rec_p = (const lit_magic_record_t *) lit;
|
|
|
|
return (lit_magic_string_id_t) rec_p->magic_id;
|
|
} /* lit_magic_literal_get_magic_str_id */
|
|
|
|
lit_magic_string_ex_id_t
|
|
lit_magic_literal_get_magic_str_ex_id (lit_literal_t lit) /**< literal */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_MAGIC_STR_EX);
|
|
|
|
const lit_magic_record_t *const rec_p = (const lit_magic_record_t *) lit;
|
|
|
|
return (lit_magic_string_ex_id_t) rec_p->magic_id;
|
|
} /* lit_magic_literal_get_magic_str_ex_id */
|
|
|
|
lit_utf8_size_t __attr_always_inline___ __attr_pure___
|
|
lit_charset_literal_get_size (lit_literal_t lit) /**< literal */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_CHARSET);
|
|
|
|
const lit_charset_record_t *const rec_p = (const lit_charset_record_t *) lit;
|
|
|
|
return (lit_utf8_size_t) rec_p->size;
|
|
} /* lit_charset_literal_get_size */
|
|
|
|
/**
|
|
* Get length of the literal
|
|
*
|
|
* @return code units count
|
|
*/
|
|
ecma_length_t __attr_always_inline___ __attr_pure___
|
|
lit_charset_literal_get_length (lit_literal_t lit) /**< literal */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_CHARSET);
|
|
|
|
const lit_charset_record_t *const rec_p = (const lit_charset_record_t *) lit;
|
|
|
|
return (ecma_length_t) rec_p->length;
|
|
} /* lit_charset_literal_get_length */
|
|
|
|
ecma_number_t __attr_always_inline___ __attr_pure___
|
|
lit_number_literal_get_number (lit_literal_t lit) /**< literal */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_NUMBER);
|
|
|
|
const lit_number_record_t *const rec_p = (const lit_number_record_t *) lit;
|
|
|
|
return rec_p->number;
|
|
} /* lit_number_literal_get_number */
|
|
|
|
lit_utf8_byte_t * __attr_always_inline___ __attr_pure___
|
|
lit_charset_literal_get_charset (lit_literal_t lit) /**< literal */
|
|
{
|
|
JERRY_ASSERT (lit->type == LIT_RECORD_TYPE_CHARSET);
|
|
|
|
const lit_charset_record_t *const rec_p = (const lit_charset_record_t *) lit;
|
|
|
|
return (lit_utf8_byte_t *) (rec_p + 1);
|
|
} /* lit_charset_literal_get_charset */
|