packed structures

This commit is contained in:
Markus Fröschle
2012-12-17 16:32:58 +00:00
parent 6a7e864bf8
commit 7089783085

View File

@@ -3,7 +3,7 @@
* *
* Created on: 17.12.2012 * Created on: 17.12.2012
* Author: mfro * Author: mfro
* (c) The ACP Firebee project * The ACP Firebee project
* *
* This file is part of BaS_gcc. * This file is part of BaS_gcc.
* *
@@ -33,6 +33,9 @@ typedef enum { FALSE, TRUE } bool;
typedef enum { OK, FAIL } err_t; typedef enum { OK, FAIL } err_t;
#define NULL (void *) 0L #define NULL (void *) 0L
/*
* beware: structures need to be packed to map correctly over character arrays
*/
typedef struct srec2 /* two byte address field */ typedef struct srec2 /* two byte address field */
{ {
uint8_t record_type; /* [0 + 1] for S0, S1, S9 */ uint8_t record_type; /* [0 + 1] for S0, S1, S9 */