-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * Fix:#1185 * Fix:#1185 * Update after further tests * Update navit.c Missing opening bracket. * Update navit.c Needs AND not OR when combining if clauses. * Revert "Fix:#1185" This reverts commit fd91e40. * Revert "Fix:#1185" This reverts commit be87cd3. * Fix: Warning during build * WINCE compiler needs pragma to be outside of a function
- Loading branch information
Showing
9 changed files
with
283 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef NAVIT_ATTR_TYPE_DEFH | ||
#define NAVIT_ATTR_TYPE_DEFH | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* Attribute type values, created using macro magic. | ||
*/ | ||
enum attr_type { | ||
#define ATTR2(x,y) attr_##y=x, | ||
#define ATTR(x) attr_##x, | ||
|
||
/* Special macro for unused attribute types. Creates a placeholder entry | ||
* in the enum so the following values do not change. */ | ||
#define ATTR_UNUSED ATTR_UNUSED_L(__LINE__) | ||
#define ATTR_UNUSED_L(x) ATTR_UNUSED_WITH_LINE_NUMBER(x) | ||
#define ATTR_UNUSED_WITH_LINE_NUMBER(x) ATTR_UNUSED_##x, | ||
|
||
#include "attr_def.h" | ||
|
||
#undef ATTR_UNUSED_WITH_LINE_NUMBER | ||
#undef ATTR_UNUSED_L | ||
#undef ATTR_UNUSED | ||
|
||
#undef ATTR2 | ||
#undef ATTR | ||
}; | ||
|
||
#ifdef __cplusplus | ||
} | ||
/* __cplusplus */ | ||
#endif | ||
|
||
/* NAVIT_ATTR_TYPE_DEFH */ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef NAVIT_ITEM_TYPE_DEFH | ||
#define NAVIT_ITEM_TYPE_DEFH | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
enum item_type { | ||
#define ITEM2(x,y) type_##y=x, | ||
#define ITEM(x) type_##x, | ||
#include "item_def.h" | ||
#undef ITEM2 | ||
#undef ITEM | ||
}; | ||
|
||
#ifdef __cplusplus | ||
} | ||
/* __cplusplus */ | ||
#endif | ||
|
||
/* NAVIT_ITEM_TYPE_DEFH */ | ||
#endif |
Oops, something went wrong.