remove useless function
This commit is contained in:
parent
71fb88602f
commit
69f6509083
1 changed files with 0 additions and 12 deletions
|
@ -37,18 +37,6 @@ indent(CodegenC *cgc)
|
||||||
#undef INDENT
|
#undef INDENT
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interns a string literal into the string table, returning its ID */
|
|
||||||
static i64
|
|
||||||
intern_strlit(CodegenC *cgc, const Str *str)
|
|
||||||
{
|
|
||||||
const i64 strno = shget(cgc->cgctx->strings, str->s);
|
|
||||||
if (strno != -1) /* string already exists, return its index number */
|
|
||||||
return strno;
|
|
||||||
|
|
||||||
shput(cgc->cgctx->strings, str->s, cgc->cgctx->strlit_no);
|
|
||||||
return cgc->cgctx->strlit_no++;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
emit_comment(CodegenC *cgc, Str comment, bool nl_after)
|
emit_comment(CodegenC *cgc, Str comment, bool nl_after)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue