Skip to content
Snippets Groups Projects
Commit 1064b609 authored by Anders Lindh Olsson's avatar Anders Lindh Olsson :8ball:
Browse files

Fix includes and comment endifs

parent 4dbcb49d
No related branches found
No related tags found
1 merge request!85E3-670: Propose linters
......@@ -2,6 +2,7 @@
/* Copyright (C) 2020-2022 European Spallation Source, ERIC */
#include "asprintf.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -20,7 +21,7 @@ int vasprintf(char **pbuffer, const char *format, va_list ap) {
#else
/* if we have no va_copy, we probably don't need one */
#define ap2 ap
#endif
#endif // va_copy
#if defined(_WIN32)
len = _vscprintf(format, ap2);
......@@ -30,7 +31,7 @@ int vasprintf(char **pbuffer, const char *format, va_list ap) {
#ifdef va_copy
va_end(ap2);
#endif
#endif // va_copy
if (len <= 0) {
fprintf(stderr, "vasprintf: error calculating needed size\n");
......
/* Copyright (C) 2020 Dirk Zimoch */
/* Copyright (C) 2020-2022 European Spallation Source, ERIC */
#include "expr.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "expr.h"
int exprDebug;
static int parseSubExpr(const char **pp, long *v, int pr, int op);
......
......@@ -15,12 +15,14 @@
/* for vasprintf and dl_iterate_phdr */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#endif
#endif // _GNU_SOURCE
#endif // __unix
/* for 64 bit (NFS) file systems */
#define _FILE_OFFSET_BITS 64
#include "require.h"
#include <ctype.h>
#include <epicsVersion.h>
#include <errno.h>
......@@ -41,7 +43,6 @@ DBCORE_API int epicsStdCall iocshCmd(const char *cmd);
#include <epicsStdio.h>
#include <osiFileName.h>
#include "require.h"
#include "version.h"
int requireDebug;
......@@ -51,32 +52,32 @@ int requireDebug;
#ifndef OS_CLASS
#ifdef __linux
#define OS_CLASS "Linux"
#endif
#endif // __linux
#ifdef SOLARIS
#define OS_CLASS "solaris"
#endif
#endif // SOLARIS
#ifdef __rtems__
#define OS_CLASS "RTEMS"
#endif
#endif // __rtems__
#ifdef CYGWIN32
#define OS_CLASS "cygwin32"
#endif
#endif // CYGWIN32
#ifdef freebsd
#define OS_CLASS "freebsd"
#endif
#endif // freebsd
#ifdef darwin
#define OS_CLASS "Darwin"
#endif
#endif // darwin
#ifdef _AIX32
#define OS_CLASS "AIX"
#endif
#endif
#endif // _AIX32
#endif // OS_CLASS
#include <dlfcn.h>
#define HMODULE void *
......@@ -91,7 +92,7 @@ int requireDebug;
#define PREFIX "lib"
#define INFIX
#define EXT ".so"
#endif
#endif // CYGWIN32
#elif defined(_WIN32)
......
/* Copyright (C) 2020 Dirk Zimoch */
/* Copyright (C) 2020-2022 European Spallation Source, ERIC */
#include "strdup.h"
#include <stdlib.h>
#include <string.h>
......
/* Copyright (C) 2020-2022 European Spallation Source, ERIC */
#include "version.h"
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment