Mostly signedness warnings. Solved by recasting, mainly.
Some exceptions:
Changed int in STRING to size_t because the item (nrc) really is the size of a string and I checked the use: all warrent use of size_t. The warning refers to nrc being obtained through a sizeof, which returns a size_t. According to the standard size_t is an unsigned form of integer. I expect no problems from this one.
in 2 functions (e_tab_a_ind and e_del_a_ind I changed a local string definition to unsigned char from char . The local strings were being used as parameter into an unsigned char * function param.
In use of strlen, I had to recast unsigned char to const char as per definition of strlen.
The next batch will be redefining some #define CONST 10 to extern const unsigned int CONST plus a definition in a c file.
EDIT: No it won't. C doesn't allow variable constants to be used as a constant expression. You learn a little every day. For now I will stay with the defines as they appear to be the way to go in C.
Mostly signedness warnings. Solved by recasting, mainly.
Some exceptions:
int
in STRING tosize_t
because the item (nrc
) really is the size of a string and I checked the use: all warrent use of size_t. The warning refers tonrc
being obtained through a sizeof, which returns a size_t. According to the standard size_t is an unsigned form of integer. I expect no problems from this one.e_del_a_ind
I changed a local string definition to unsigned char from char . The local strings were being used as parameter into an unsigned char * function param.The next batch will be redefining some
#define CONST 10
toextern const unsigned int CONST
plus a definition in a c file.EDIT: No it won't. C doesn't allow variable constants to be used as a constant expression. You learn a little every day. For now I will stay with the defines as they appear to be the way to go in C.