feisty meow concerns codebase
2.140
|
Spits out a CGI appropriate chunk of text with a fortune in it. More...
#include "nechung_oracle.h"
#include <basis/astring.h>
#include <basis/environment.h>
#include <basis/guards.h>
#include <filesystem/filename.h>
#include <loggers/console_logger.h>
#include <loggers/critical_events.h>
#include <loggers/program_wide_logger.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | LOG(s) program_wide_logger::get().log(s, 0) |
#define | DEFAULT_FORTUNE_FILE "fortunes.dat" |
Functions | |
int | main (int argc, char *argv[]) |
Spits out a CGI appropriate chunk of text with a fortune in it.
Definition in file cgi_nechung.cpp.
#define DEFAULT_FORTUNE_FILE "fortunes.dat" |
Definition at line 40 of file cgi_nechung.cpp.
#define LOG | ( | s | ) | program_wide_logger::get().log(s, 0) |
Definition at line 35 of file cgi_nechung.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 42 of file cgi_nechung.cpp.
References filesystem::filename::basename(), DEFAULT_FORTUNE_FILE, basis::astring::end(), filesystem::filename::extension(), basis::environment::get(), basis::astring::length(), LOG, nechung_oracle::pick_random(), filesystem::filename::raw(), SETUP_CONSOLE_LOGGER, basis::environment::TMP(), and basis::astring::zap().