aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sanity.h
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-05-03 12:31:07 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-03 12:53:54 -0700
commitfa5356373377a5792e260468b04c8344f0e3448e (patch)
tree40a4edc1f989b23fb6338bd5cdfdbdfbbbc715da /src/sanity.h
parent835176ef324b049d5195a0276b8d7eb1b3b85c47 (diff)
restyle sanity & screen module to match project style
Reduces lint errors from 163 to 112 (-31%). Line count from 1866 to 1493 (-20%). Another step in resolving issue #2902.
Diffstat (limited to 'src/sanity.h')
-rw-r--r--src/sanity.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/sanity.h b/src/sanity.h
index 7480c403..6eedb08f 100644
--- a/src/sanity.h
+++ b/src/sanity.h
@@ -1,27 +1,18 @@
-/** \file sanity.h
- Prototypes for functions for performing sanity checks on the program state
-*/
-
+// Prototypes for functions for performing sanity checks on the program state.
#ifndef FISH_SANITY_H
#define FISH_SANITY_H
-/**
- Call this function to tell the program it is not in a sane state.
-*/
+/// Call this function to tell the program it is not in a sane state.
void sanity_lose();
-/**
- Perform sanity checks, return 1 if program is in a sane state 0 otherwise.
-*/
+/// Perform sanity checks, return 1 if program is in a sane state 0 otherwise.
int sanity_check();
-/**
- Try and determine if ptr is a valid pointer. If not, loose sanity.
-
- \param ptr The pointer to validate
- \param err A description of what the pointer refers to, for use in error messages
- \param null_ok Wheter the pointer is allowed to point to 0
-*/
+/// Try and determine if ptr is a valid pointer. If not, loose sanity.
+///
+/// \param ptr The pointer to validate
+/// \param err A description of what the pointer refers to, for use in error messages
+/// \param null_ok Wheter the pointer is allowed to point to 0
void validate_pointer(const void *ptr, const wchar_t *err, int null_ok);
#endif