[PATCH v2 1/1] sandbox: redefine getc()

Wolfgang Denk wd at denx.de
Wed Sep 30 13:49:29 CEST 2020


Dear Tom,

In message <20200929185004.GO14816 at bill-the-cat> you wrote:
> 
> Wolfgang, I was wondering could we not, given the few callers of 'getc'
> carefully change our internal usage / name to 'getchar', which is more
> POSIX-like and have our EXPORT_FUNC line be:
> EXPORT_FUNC(getc, int, getchar, void)

I guess we could, indeed.

> and that might be the clean solution here?

Probably.

I haven't tested this, though.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If I have seen further it is by standing on the shoulders of  giants.
              - Isaac Newton, Letter to Robert Hooke, 5 February 1676


More information about the U-Boot mailing list