Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial Include What You Use (IWYU). #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/formatter.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "udunits2.h"
#include "unitToIdMap.h"
Expand Down
2 changes: 2 additions & 0 deletions lib/prefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#ifndef UT_PREFIX_H
#define UT_PREFIX_H

#include <stddef.h>

#include "udunits2.h"

#ifdef __cplusplus
Expand Down
5 changes: 2 additions & 3 deletions lib/udunits2.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
#include <stddef.h>

#ifdef _MSC_VER
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <io.h>
#include <stdio.h>
#include <stdlib.h>

#define _USE_MATH_DEFINES

Expand Down
17 changes: 2 additions & 15 deletions lib/unitcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,22 @@
#endif

#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#ifndef _MSC_VER
#include <inttypes.h>
#else
#define int32_t __int32
#endif
#include <stdint.h>

#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#endif

#include <limits.h>
#include <math.h>

#ifdef _MSC_VER
#include "tsearch.h"
#else
#include <search.h>
#endif

#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _MSC_VER

#ifndef _MSC_VER
#include <strings.h>
#endif

Expand Down
1 change: 1 addition & 0 deletions lib/xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <libgen.h>
#endif
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down