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
#include <stdio.h> | |
#include "common.h" | |
#include "interface.h" | |
void initialize(void) | |
{ | |
common_initialize(); | |
puts("Initialize B\n"); | |
} |
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
#include <stdio.h> | |
#include "common.h" | |
#include "interface.h" | |
void initialize(void) | |
{ | |
common_initialize(); | |
puts("Initialize A\n"); | |
} |
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
#ifndef __INTERFACE__ | |
#define __INTERFACE__ | |
void initialize(void); | |
void do_stuff(void); | |
void cleanup(void); | |
#endif /* __INTERFACE__ */ |
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
#include "interface.h" | |
void initialize(void) | |
{ | |
puts("Common Initialize\n"); | |
#if defined(PLATFORM_A) | |
puts("Initialize A\n"); | |
#elif defined(PLATFORM_B) | |
puts("Initialize B\n"); |
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
#include "interface.h" | |
void initialize(void) | |
{ | |
puts("Common Initialize\n"); | |
#if defined(PLATFORM_A) | |
puts("Initialize A\n"); | |
#elif defined(PLATFORM_B) | |
puts("Initialize B\n"); |