Info you can find in any c book.
That said;
## is concatenate
# is stringfy
In you case it would look like this
cmd_tbl_t __u_boot_cmd_mtest Struct_Section = {"mtest", 5, 1,
do_mem_mtest, "simple RAM read/write test", "[start [end [pattern
[iterations]]]]"}
This struct is placed in its own section because u-boot internals can than
easily refer to this section to read/use the uboot commands.
On Tue, Apr 24, 2012 at 6:19 AM, venkat k raju <[email protected]> wrote:
> Hi all,
>
> i want to implement my own u-boot commands,so i gone through the u-boot
> source code i got this interface to build the u-boot commands.
>
> U_BOOT_CMD(
> mtest, 5, 1, do_mem_mtest,
> "simple RAM read/write test",
> "[start [end [pattern [iterations]]]]"
> );
>
> please can anybody explain me below chunk of code
>
> #define U_BOOT_CMD(name,maxargs,rep,cmd,usage,help) \
> cmd_tbl_t __u_boot_cmd_##name Struct_Section = {#name, maxargs, rep, cmd,
> usage, help}
>
> #define Struct_Section __attribute__ ((unused,section (".u_boot_cmd")))
>
> here cmd_tbl_t is a structure
>
>
> thanks in advance!!
>
>
>
>
>
> thanks&Regards
> k.v.raju
>
> --
> You received this message because you are subscribed to the Google Groups
> "rowboat" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rowboat?hl=en.
>
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting