#include "config.h"
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>
#include <errno.h>
#include <termios.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include "fallback.h"
#include "util.h"
#include "common.h"
#include "sanity.h"
#include "proc.h"
#include "history.h"
#include "reader.h"
#include "kill.h"
#include "wutil.h"
Functions | |
| void | sanity_lose () |
| Call this function to tell the program it is not in a sane state. | |
| int | sanity_check () |
| Perform sanity checks, return 1 if program is in a sane state 0 otherwise. | |
| void | validate_pointer (const void *ptr, const wchar_t *err, int null_ok) |
| Try and determine if ptr is a valid pointer. | |
Variables | |
| static int | insane |
| Status from earlier sanity checks. | |
|
||||||||||||||||
|
Try and determine if ptr is a valid pointer. If not, loose sanity.
|
1.4.4