Replace 8 and 16 bit custom types by stdint.h types

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-12-31 13:46:52 +01:00
parent c24cab6d1d
commit 13c0684497
20 changed files with 75 additions and 59 deletions

View File

@@ -1,6 +1,7 @@
%{
#include <ctype.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -103,7 +104,7 @@ ULONG str2int( char *s )
while( *s )
{
r<<=8;
r|=(UBYTE)(*s++);
r|=(uint8_t)(*s++);
}
return( r );
}
@@ -116,7 +117,7 @@ ULONG str2int2( char *s, int length )
while(i < length)
{
r<<=8;
r|=(UBYTE)(s[i]);
r|=(uint8_t)(s[i]);
i++;
}
return( r );