source: git/omalloc/omOpts.h @ b6647a7

spielwiese
Last change on this file since b6647a7 was 2e385d, checked in by Michael Orlitzky <michael@…>, 18 months ago
*/*.{c,h}: fix invalid function prototypes. The C99 standard does not allow function prototypes (or inline definitions) to have an empty argument list, such as int foo(); /* invalid */ This is caught by -Werror=strict-prototypes, which is likely to become the default in later versions of GCC and clang. This commit corrects all(?) of them by adding a "void" parameter.
  • Property mode set to 100644
File size: 688 bytes
Line 
1/*******************************************************************
2 *  File:    omOpts.h
3 *  Purpose: declaration of options for omalloc
4 *  Author:  obachman (Olaf Bachmann)
5 *  Created: 11/99
6 *******************************************************************/
7#ifndef OM_OPTS_H
8#define OM_OPTS_H
9
10/* Default values for these options are defined in omDefaultConfig.h */
11struct omOpts_s
12{
13  int MinTrack;
14  int MinCheck;
15  int MaxTrack;
16  int MaxCheck;
17  int Keep;
18  int HowToReportErrors;
19  int MarkAsStatic;
20  unsigned int PagesPerRegion;
21  void (*OutOfMemoryFunc)(void);
22  void (*MemoryLowFunc)(void);
23  void (*ErrorHook)(void);
24};
25extern omOpts_t om_Opts;
26
27#endif /* OM_OPTS_H */
Note: See TracBrowser for help on using the repository browser.