Skip to content

Commit

Permalink
[cage] codingstd, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Oct 15, 2014
1 parent 3d3d6b8 commit 97806b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions compilers/imcc/symreg.c
Expand Up @@ -152,7 +152,7 @@ _get_sym_typed(ARGIN(const SymHash *hsh), ARGIN_NULLOK(const char *name), int t)
{
ASSERT_ARGS(_get_sym_typed)
SymReg *p;
const char *nameh = name ? name : mem_sys_strdup("\0"); /* sentinel */
const char *nameh = name ? name : mem_sys_strdup("\0"); /* a sentinel */
unsigned int i = hash_str(nameh) % hsh->size;

for (p = hsh->data[i]; p; p = p->next) {
Expand Down Expand Up @@ -213,7 +213,6 @@ _mk_symreg(ARGMOD(imc_info_t * imcc), ARGMOD(SymHash *hsh),
ARGIN_NULLOK(const char *name), int t)
{
ASSERT_ARGS(_mk_symreg)
/* TODO special-case empty names (string constants) */
SymReg * r = _get_sym_typed(hsh, name, t);

if (!r) {
Expand Down
3 changes: 2 additions & 1 deletion src/string/api.c
Expand Up @@ -2857,7 +2857,8 @@ Parrot_str_unescape(PARROT_INTERP,
PObj_external_FLAG);
return Parrot_str_unescape_string(interp, src, src_encoding,
PObj_constant_FLAG);
} else {
}
else {
return Parrot_str_new_init(interp, "", 0, encoding,
PObj_constant_FLAG);
}
Expand Down

0 comments on commit 97806b4

Please sign in to comment.