lib: handle -funsigned-char option
commit08de8666209da4229881311cea3621f3ffb0d110
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Mar 2015 13:30:31 +0000 (11 16:30 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Mar 2015 13:30:31 +0000 (11 16:30 +0300)
tree0c04ed3a845100e631420c0b486098290f806e4e
parentf1becba0a8ef22f26c34b0df57b97d5b69fdc9a1
lib: handle -funsigned-char option

The -funsigned-char option means that char types are unsigned by default.
We process the arguments before we set up the types so to make this work
then we:
1) Record that the option was set.
2) Initialized the C types.
3) Adjust the char type if the option was set.

Reported-by: Campbell Barton <ideasman42@users.sf.net>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
lib.c