github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/tests/multi/header.h (about)

     1  #include <stdio.h>
     2  
     3  // This header file is included by multiple C files. Make sure the preprocessor
     4  // is working correctly by not declaring duplicates.
     5  #ifndef HEADER
     6  #define HEADER
     7  
     8  // Headers usually do not contain whole functions, but we want to make sure this
     9  // is still OK to do.
    10  void say_four() {
    11      printf("4");
    12  }
    13  
    14  // Forward-declared prototypes that are defined in one of our other C files.
    15  void say_two();   // main1.c
    16  void say_three(); // main2.c
    17  
    18  #endif /* HEADER */