Cosmetic changes
This commit is contained in:
parent
4ee47eca8e
commit
6295203a82
@ -91,9 +91,10 @@
|
|||||||
* (2) the number of symbols in that table. This information is currently
|
* (2) the number of symbols in that table. This information is currently
|
||||||
* provided to 'exec()' from 'exec[l|v]()' via NuttX configuration settings:
|
* provided to 'exec()' from 'exec[l|v]()' via NuttX configuration settings:
|
||||||
*
|
*
|
||||||
* CONFIG_LIBC_EXECFUNCS : Enable exec[l|v] support
|
* CONFIG_LIBC_EXECFUNCS : Enable exec[l|v] support
|
||||||
* CONFIG_EXECFUNCS_SYMTAB : Symbol table used by exec[l|v]
|
* CONFIG_EXECFUNCS_HAVE_SYMTAB : Defined if there is a symbol table
|
||||||
* CONFIG_EXECFUNCS_NSYMBOLS : Number of symbols in the table
|
* CONFIG_EXECFUNCS_SYMTAB : Symbol table used by exec[l|v]
|
||||||
|
* CONFIG_EXECFUNCS_NSYMBOLS : Number of symbols in the table
|
||||||
*
|
*
|
||||||
* As a result of the above, the current implementations of 'execl()' and
|
* As a result of the above, the current implementations of 'execl()' and
|
||||||
* 'execv()' suffer from some incompatibilities that may or may not be
|
* 'execv()' suffer from some incompatibilities that may or may not be
|
||||||
|
@ -94,6 +94,7 @@ static const char *check_funcptr(const char *type)
|
|||||||
{
|
{
|
||||||
return str + 2;
|
return str + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,6 +105,7 @@ static const char *check_array(const char *type)
|
|||||||
{
|
{
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +116,8 @@ static void print_formalparm(FILE *stream, const char *argtype, int parmno)
|
|||||||
|
|
||||||
/* Function pointers and array formal parameter types are a little more work */
|
/* Function pointers and array formal parameter types are a little more work */
|
||||||
|
|
||||||
if ((part2 = check_funcptr(argtype)) != NULL || (part2 = check_array(argtype)) != NULL)
|
if ((part2 = check_funcptr(argtype)) != NULL ||
|
||||||
|
(part2 = check_array(argtype)) != NULL)
|
||||||
{
|
{
|
||||||
len = part2 - argtype;
|
len = part2 - argtype;
|
||||||
(void)fwrite(argtype, 1, len, stream);
|
(void)fwrite(argtype, 1, len, stream);
|
||||||
@ -280,6 +283,7 @@ static void generate_proxy(int nparms)
|
|||||||
{
|
{
|
||||||
fprintf(stream, ", ");
|
fprintf(stream, ", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
print_formalparm(stream, formal, i+1);
|
print_formalparm(stream, formal, i+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user