aboutsummaryrefslogtreecommitdiffhomepage
path: root/sanity.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
commit9992b8eb0e3366ff8a3948aa0b66a19c3c12c737 (patch)
tree6dda0fef85812016fbba9ea067c9d586092b506d /sanity.cpp
parentbab69f26724028d16054a3daf5c78aad7c67bb2d (diff)
Apply new indentation, brace, and whitespace style
Diffstat (limited to 'sanity.cpp')
-rw-r--r--sanity.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/sanity.cpp b/sanity.cpp
index cbce3c82..f8976941 100644
--- a/sanity.cpp
+++ b/sanity.cpp
@@ -34,43 +34,43 @@ static int insane;
void sanity_lose()
{
- debug( 0, _(L"Errors detected, shutting down. Break on sanity_lose() to debug.") );
- insane = 1;
+ debug(0, _(L"Errors detected, shutting down. Break on sanity_lose() to debug."));
+ insane = 1;
}
int sanity_check()
{
- if( !insane )
- if( get_is_interactive() )
- history_sanity_check();
- if( !insane )
- reader_sanity_check();
- if( !insane )
- kill_sanity_check();
- if( !insane )
- proc_sanity_check();
+ if (!insane)
+ if (get_is_interactive())
+ history_sanity_check();
+ if (!insane)
+ reader_sanity_check();
+ if (!insane)
+ kill_sanity_check();
+ if (!insane)
+ proc_sanity_check();
- return insane;
+ return insane;
}
-void validate_pointer( const void *ptr, const wchar_t *err, int null_ok )
+void validate_pointer(const void *ptr, const wchar_t *err, int null_ok)
{
- /*
- Test if the pointer data crosses a segment boundary.
- */
+ /*
+ Test if the pointer data crosses a segment boundary.
+ */
- if( (0x00000003l & (intptr_t)ptr) != 0 )
- {
- debug( 0, _(L"The pointer '%ls' is invalid"), err );
- sanity_lose();
- }
+ if ((0x00000003l & (intptr_t)ptr) != 0)
+ {
+ debug(0, _(L"The pointer '%ls' is invalid"), err);
+ sanity_lose();
+ }
- if((!null_ok) && (ptr==0))
- {
- debug( 0, _(L"The pointer '%ls' is null"), err );
- sanity_lose();
- }
+ if ((!null_ok) && (ptr==0))
+ {
+ debug(0, _(L"The pointer '%ls' is null"), err);
+ sanity_lose();
+ }
}