#include <ctype.h>
#include <debug.h>
#include <random.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syscall.h>
Go to the source code of this file.
Functions | |
static void | init_grammar (void) |
void | expand (int num, char **grammar[], char *location[], int handle) |
static void | usage (int ret_code, const char *message,...) PRINTF_FORMAT(2 |
int | main (int argc, char *argv[]) |
Variables | |
char * | start [] |
char | startLoc [] = { 3, 0, 4, 7, 16 } |
char * | adj [] = { "3", "4", "2", ",", "1" } |
char | adjLoc [] = { 3, 0, 1, 2, 5 } |
char * | adj3 [] = { "3", "4" } |
char | adj3Loc [] = { 2, 0, 1, 2 } |
char * | adj1 [] |
char | adj1Loc [] |
char * | adj2 [] |
char | adj2Loc [] |
char * | name [] |
char | nameLoc [] = { 7, 0, 1, 6, 10, 16, 21, 23, 27 } |
char * | stuff [] |
char | stuffLoc [] = { 14, 0, 1, 3, 4, 5, 6, 8, 10, 11, 12, 13, 14, 15, 17, 18 } |
char * | noun_and_prep [] |
char | noun_and_prepLoc [] |
char * | organics [] |
char | organicsLoc [] |
char * | body_parts [] |
char | body_partsLoc [] = { 6, 0, 1, 2, 3, 4, 5, 6 } |
char * | noun [] |
char | nounLoc [] = { 13, 0, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15 } |
char * | animal [] |
char | animalLoc [] = { 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } |
char * | good_verb [] |
char | good_verbLoc [] = { 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11 } |
char * | curse [] |
char | curseLoc [] = { 4, 0, 3, 7, 13, 20 } |
char * | afflictors [] |
char | afflictorsLoc [] = { 6, 0, 2, 4, 6, 8, 12, 16 } |
char * | quantity [] |
char | quantityLoc [] = { 10, 0, 4, 8, 11, 14, 15, 18, 22, 26, 32, 33 } |
char * | numbers [] |
char | numbersLoc [] = { 7, 0, 2, 4, 5, 7, 8, 10, 13 } |
char * | adv [] |
char | advLoc [] = { 8, 0, 1, 2, 3, 4, 11, 12, 18, 19 } |
char * | metaphor [] |
char | metaphorLoc [] = { 6, 0, 3, 5, 7, 9, 20, 23 } |
char * | force [] = { "force", "fury", "power", "rage" } |
char | forceLoc [] = { 4, 0, 1, 2, 3, 4 } |
char * | bad_action [] |
char | bad_actionLoc [] |
char * | beasties [] |
char | beastiesLoc [] |
char * | condition [] |
char | conditionLoc [] = { 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } |
char * | place [] |
char | placeLoc [] = { 5, 0, 3, 7, 11, 17, 20 } |
char * | relation [] |
char | relationLoc [] = { 6, 0, 1, 2, 3, 5, 7, 9 } |
char * | in_something [] |
char | in_somethingLoc [] = { 8, 0, 1, 3, 4, 5, 6, 8, 9, 10 } |
char * | bad_place [] |
char | bad_placeLoc [] = { 6, 0, 2, 3, 5, 7, 8, 9 } |
char ** | daGrammar [27] |
char * | daGLoc [27] |
void expand | ( | int | num, | |
char ** | grammar[], | |||
char * | location[], | |||
int | handle | |||
) |
static void init_grammar | ( | void | ) | [static] |
Definition at line 178 of file insult.c.
References adj, adj1, adj1Loc, adj2, adj2Loc, adj3, adj3Loc, adjLoc, adv, advLoc, afflictors, afflictorsLoc, animal, animalLoc, bad_action, bad_actionLoc, bad_place, bad_placeLoc, beasties, beastiesLoc, body_parts, body_partsLoc, conditionLoc, curse, curseLoc, daGLoc, daGrammar, force, forceLoc, good_verb, good_verbLoc, in_something, in_somethingLoc, metaphor, metaphorLoc, name, nameLoc, noun, noun_and_prep, noun_and_prepLoc, nounLoc, numbers, numbersLoc, organics, organicsLoc, place, placeLoc, quantity, quantityLoc, relation, relationLoc, start, startLoc, stuff, and stuffLoc.
Referenced by main().
int main | ( | int argc | , | |
char * | argv[] | |||
) |
Definition at line 273 of file insult.c.
References atoi(), close(), create(), daGLoc, daGrammar, EXIT_FAILURE, EXIT_SUCCESS, expand(), hprintf(), init_grammar(), NULL, open(), printf(), random_init(), STDOUT_FILENO, strcmp(), and usage().
static void static void usage | ( | int | ret_code, | |
const char * | message, | |||
... | ||||
) | [static] |
char* adj[] = { "3", "4", "2", ",", "1" } |
char* adj1[] |
Initial value:
{ "lame", "dried", "up", "par-broiled", "bloated", "half-baked", "spiteful", "egotistical", "ungrateful", "stupid", "moronic", "fat", "ugly", "puny", "pitiful", "insignificant", "blithering", "repulsive", "worthless", "blundering", "retarded", "useless", "obnoxious", "low-budget", "assinine", "neurotic", "subhuman", "crochety", "indescribable", "contemptible", "unspeakable", "sick", "lazy", "good-for-nothing", "slutty", "mentally-deficient", "creepy", "sloppy", "dismal", "pompous", "pathetic", "friendless", "revolting", "slovenly", "cantankerous", "uncultured", "insufferable", "gross", "unkempt", "defective", "crumby" }
Definition at line 23 of file insult.c.
Referenced by init_grammar().
char adj1Loc[] |
Initial value:
{ 50, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 }
Definition at line 33 of file insult.c.
Referenced by init_grammar().
char* adj2[] |
Initial value:
{ "putrefied", "festering", "funky", "moldy", "leprous", "curdled", "fetid", "slimy", "crusty", "sweaty", "damp", "deranged", "smelly", "stenchy", "malignant", "noxious", "grimy", "reeky", "nasty", "mutilated", "sloppy", "gruesome", "grisly", "sloshy", "wormy", "mealy", "spoiled", "contaminated", "rancid", "musty", "fly-covered", "moth-eaten", "decaying", "decomposed", "freeze-dried", "defective", "petrified", "rotting", "scabrous", "hirsute" }
Definition at line 37 of file insult.c.
Referenced by init_grammar().
char adj2Loc[] |
Initial value:
{ 40, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 }
Definition at line 45 of file insult.c.
Referenced by init_grammar().
char* adj3[] = { "3", "4" } |
char adj3Loc[] = { 2, 0, 1, 2 } |
char adjLoc[] = { 3, 0, 1, 2, 5 } |
char* adv[] |
Initial value:
{ "viciously", "manicly", "merrily", "happily", ",", "with", "the", "19", "of", "18", ",", "gleefully", ",", "with", "much", "ritualistic", "celebration", ",", "franticly" }
Definition at line 116 of file insult.c.
Referenced by init_grammar().
char advLoc[] = { 8, 0, 1, 2, 3, 4, 11, 12, 18, 19 } |
char* afflictors[] |
Initial value:
{ "15", "21", "15", "21", "15", "21", "15", "21", "a", "22", "Rush", "Limbaugh", "the", "hosts", "of", "Hades" }
Definition at line 100 of file insult.c.
Referenced by init_grammar().
char afflictorsLoc[] = { 6, 0, 2, 4, 6, 8, 12, 16 } |
char* animal[] |
Initial value:
{ "donkey", "llama", "dingo", "lizard", "gekko", "lemur", "moose", "camel", "goat", "eel" }
Definition at line 85 of file insult.c.
Referenced by init_grammar().
char animalLoc[] = { 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } |
char* bad_action[] |
Initial value:
{ "spit", "shimmy", "slobber", "find", "refuge", "find", "shelter", "dance", "retch", "vomit", "defecate", "erect", "a", "strip", "mall", "build", "a", "26", "have", "a", "religious", "experience", "discharge", "bodily", "waste", "fart", "dance", "drool", "lambada", "spill", "16", "rusty", "tacks", "bite", "you", "sneeze", "sing", "16", "campfire", "songs", "smite", "you", "16", "times", "construct", "a", "new", "home", "throw", "a", "party", "procreate" }
Definition at line 130 of file insult.c.
Referenced by init_grammar().
char bad_actionLoc[] |
Initial value:
{ 25, 0, 1, 2, 3, 5, 7, 8, 9, 10, 11, 15, 18, 22, 25, 26, 27, 28, 29, 33, 35, 36, 40, 44, 48, 51, 52 }
Definition at line 138 of file insult.c.
Referenced by init_grammar().
char* bad_place[] |
Initial value:
{ "rat", "hole", "sewer", "toxic", "dump", "oil", "refinery", "landfill", "porto-pottie" }
Definition at line 169 of file insult.c.
Referenced by init_grammar().
char bad_placeLoc[] = { 6, 0, 2, 3, 5, 7, 8, 9 } |
char* beasties[] |
Initial value:
{ "yaks", "22", "maggots", "22", "cockroaches", "stinging", "scorpions", "fleas", "22", "weasels", "22", "gnats", "South", "American", "killer", "bees", "spiders", "4", "monkeys", "22", "wiener-dogs", "22", "rats", "22", "wolverines", "4", ",", "22", "pit-fiends" }
Definition at line 141 of file insult.c.
Referenced by init_grammar().
char beastiesLoc[] |
Initial value:
{ 14, 0, 1, 3, 5, 7, 8, 10, 12, 16, 17, 19, 21, 23, 25, 29 }
Definition at line 147 of file insult.c.
Referenced by init_grammar().
char* body_parts[] |
Initial value:
{ "kidneys", "genitals", "buttocks", "earlobes", "innards", "feet" }
Definition at line 76 of file insult.c.
Referenced by init_grammar().
char body_partsLoc[] = { 6, 0, 1, 2, 3, 4, 5, 6 } |
char* condition[] |
char conditionLoc[] = { 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } |
char* curse[] |
Initial value:
{ "14", "20", "23", "14", "17", "20", "23", "14", "find", "your", "9", "suddenly", "delectable", "14", "and", "14", "seek", "a", "battleground", "23" }
Definition at line 95 of file insult.c.
Referenced by init_grammar().
char curseLoc[] = { 4, 0, 3, 7, 13, 20 } |
char* daGLoc[27] |
char** daGrammar[27] |
char* force[] = { "force", "fury", "power", "rage" } |
char forceLoc[] = { 4, 0, 1, 2, 3, 4 } |
char* good_verb[] |
Initial value:
{ "love", "cuddle", "fondle", "adore", "smooch", "hug", "caress", "worship", "look", "at", "touch" }
Definition at line 90 of file insult.c.
Referenced by init_grammar().
char good_verbLoc[] = { 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11 } |
char* in_something[] |
Initial value:
{ "entrails", "anal", "cavity", "shoes", "house", "pantry", "general", "direction", "pants", "bed" }
Definition at line 164 of file insult.c.
Referenced by init_grammar().
char in_somethingLoc[] = { 8, 0, 1, 3, 4, 5, 6, 8, 9, 10 } |
char* metaphor[] |
Initial value:
{ "an", "irate", "manticore", "Thor's", "belch", "Alah's", "fist", "16", "titans", "a", "particularly", "vicious", "she-bear", "in", "the", "midst", "of", "her", "menstrual", "cycle", "a", "pissed-off", "Jabberwock" }
Definition at line 122 of file insult.c.
Referenced by init_grammar().
char metaphorLoc[] = { 6, 0, 3, 5, 7, 9, 20, 23 } |
char* name[] |
Initial value:
{ "10", ",", "bad", "excuse", "for", "6", ",", "6", "for", "brains", ",", "4", "11", "8", "for", "brains", "offspring", "of", "a", "motherless", "10", "7", "6", "7", "4", "11", "8" }
Definition at line 48 of file insult.c.
Referenced by dir_readdir(), do_remove(), dump_regs(), found_partition(), fsutil_ls(), getcwd(), init_grammar(), list_dir(), main(), msc_attached(), parse_options(), readdir(), run_actions(), test_alarm_priority(), test_main(), test_mlfqs_fair(), test_mlfqs_load_60(), test_mlfqs_load_avg(), test_priority_condvar(), test_priority_donate_chain(), test_priority_fifo(), test_priority_sema(), and test_sleep().
char nameLoc[] = { 7, 0, 1, 6, 10, 16, 21, 23, 27 } |
char* noun[] |
Initial value:
{ "pop", "tart", "warthog", "twinkie", "barnacle", "fondue", "pot", "cretin", "fuckwad", "moron", "ass", "neanderthal", "nincompoop", "simpleton", "11" }
Definition at line 80 of file insult.c.
Referenced by init_grammar().
char* noun_and_prep[] |
Initial value:
{ "bit", "of", "piece", "of", "vat", "of", "lump", "of", "crock", "of", "ball", "of", "tub", "of", "load", "of", "bucket", "of", "mound", "of", "glob", "of", "bag", "of", "heap", "of", "mountain", "of", "load", "of", "barrel", "of", "sack", "of", "blob", "of", "pile", "of", "truckload", "of", "vat", "of" }
Definition at line 60 of file insult.c.
Referenced by init_grammar().
char noun_and_prepLoc[] |
Initial value:
{ 21, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42 }
Definition at line 66 of file insult.c.
Referenced by init_grammar().
char nounLoc[] = { 13, 0, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15 } |
char* numbers[] |
Initial value:
{ "a", "thousand", "three", "million", "ninty-nine", "nine-hundred,", "ninty-nine", "forty-two", "a", "gazillion", "sixty-eight", "times", "thirty-three" }
Definition at line 111 of file insult.c.
Referenced by init_grammar().
char numbersLoc[] = { 7, 0, 2, 4, 5, 7, 8, 10, 13 } |
char* organics[] |
Initial value:
{ "droppings", "mung", "zits", "puckies", "tumors", "cysts", "tumors", "livers", "froth", "parts", "scabs", "guts", "entrails", "blubber", "carcuses", "gizards", "9" }
Definition at line 69 of file insult.c.
Referenced by init_grammar().
char organicsLoc[] |
Initial value:
{ 17, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }
Definition at line 74 of file insult.c.
Referenced by init_grammar().
char* place[] |
Initial value:
{ "in", "24", "25", "upon", "your", "mother's", "grave", "on", "24", "best", "rug", "in", "the", "26", "you", "call", "home", "upon", "your", "heinie" }
Definition at line 154 of file insult.c.
Referenced by init_grammar().
char placeLoc[] = { 5, 0, 3, 7, 11, 17, 20 } |
char* quantity[] |
Initial value:
{ "a", "4", "hoard", "of", "a", "4", "pack", "of", "a", "truckload", "of", "a", "swarm", "of", "many", "an", "army", "of", "a", "4", "heard", "of", "a", "4", "platoon", "of", "a", "4", "and", "4", "group", "of", "16" }
Definition at line 105 of file insult.c.
Referenced by init_grammar().
char quantityLoc[] = { 10, 0, 4, 8, 11, 14, 15, 18, 22, 26, 32, 33 } |
char* relation[] |
Initial value:
{ "your", "your", "your", "your", "father's", "your", "mother's", "your", "grandma's" }
Definition at line 159 of file insult.c.
Referenced by init_grammar().
char relationLoc[] = { 6, 0, 1, 2, 3, 5, 7, 9 } |
char* start[] |
Initial value:
{ "You", "1", "5", ".", "May", "13", ".", "With", "the", "19", "of", "18", ",", "may", "13", "." }
Definition at line 14 of file insult.c.
Referenced by hex_dump(), init_grammar(), test_main(), timer_sleep(), too_many_loops(), and uhci_process_completed().
char startLoc[] = { 3, 0, 4, 7, 16 } |
char* stuff[] |
Initial value:
{ "shit", "toe", "jam", "filth", "puss", "earwax", "leaf", "clippings", "bat", "guano", "mucus", "fungus", "mung", "refuse", "earwax", "spittoon", "spittle", "phlegm" }
Definition at line 54 of file insult.c.
Referenced by init_grammar().
char stuffLoc[] = { 14, 0, 1, 3, 4, 5, 6, 8, 10, 11, 12, 13, 14, 15, 17, 18 } |