Skip to content

Commit

Permalink
Fix header ifndef exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Wong authored and Mark Wong committed Jul 8, 2019
1 parent bd11d2c commit 2950840
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions config.h.in
@@ -1,3 +1,5 @@
#ifndef _CONFIG_H_
#define _CONFIG_H_
#cmakedefine ENABLE_COLOR 1
#cmakedefine HAVE_GETOPT 1
#cmakedefine HAVE_MEMCPY 1
Expand All @@ -20,3 +22,4 @@
#cmakedefine TIME_WITH_SYS_TIME 1
#cmakedefine RETSIGTYPE @RETSIGTYPE@
#cmakedefine time_t @time_t@
#endif /* _CONFIG_H_ */
2 changes: 1 addition & 1 deletion display.h
Expand Up @@ -44,4 +44,4 @@ void display_pagerstart();
void display_pagerend();
void display_pager(char *data);

#endif
#endif /* _DISPLAY_H */
6 changes: 3 additions & 3 deletions pg_top.h
Expand Up @@ -6,8 +6,8 @@
* Copyright (c) 2007-2019, Mark Wong
*/

#ifndef _PG_TOPP_H_
#define _PG_TOPP_H_
#ifndef _PG_TOP_H_
#define _PG_TOP_H_

#include "machine.h"

Expand Down Expand Up @@ -111,4 +111,4 @@ struct pg_top_context
void quit(int);
void reset_display(struct pg_top_context *);

#endif /* _PG_TOPP_H_ */
#endif /* _PG_TOP_H_ */
6 changes: 3 additions & 3 deletions port.h
Expand Up @@ -10,8 +10,8 @@
*
*-------------------------------------------------------------------------
*/
#ifndef PG_PORT_H
#define PG_PORT_H
#ifndef _PORT_H_
#define _PORT_H_

#include <stdbool.h>

Expand All @@ -27,4 +27,4 @@
/* Portable prompt handling */
extern char *simple_prompt(const char *prompt, int maxlen, bool echo);

#endif /* PG_PORT_H */
#endif /* _PORT_H_ */
3 changes: 3 additions & 0 deletions sigconv.awk
@@ -1,6 +1,8 @@
BEGIN {
nsig = 0;
j = 0;
print "#ifndef _SIGDESC_H_"
print "#define _SIGDESC_H_"
print "/* This file was automatically generated */"
print "/* by the awk script \"sigconv.awk\". */\n"
print "struct sigdesc {"
Expand Down Expand Up @@ -53,4 +55,5 @@ END {
printf(" { %s },\n", siglist[n]);

printf(" { NULL,\t 0 }\n};\n");
print "#endif /* _SIGDESC_H_ */"
}

0 comments on commit 2950840

Please sign in to comment.