Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stuart John Watson
mw
Commits
56a2f88a
Commit
56a2f88a
authored
9 years ago
by
Dom Rushbrook
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
Unreturnable gag See merge request !3
parents
b8df4668
dfde1636
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/gags.c
+11
-0
11 additions, 0 deletions
src/gags.c
src/gagtable.c
+16
-0
16 additions, 0 deletions
src/gagtable.c
src/gagtable.h
+1
-1
1 addition, 1 deletion
src/gagtable.h
with
28 additions
and
1 deletion
src/gags.c
+
11
−
0
View file @
56a2f88a
...
...
@@ -39,6 +39,7 @@ void gag_nosport(char *text);
void
gag_ack
(
char
*
text
);
void
gag_hazelesque
(
char
*
text
);
void
gag_pklong
(
char
*
text
);
void
gag_unreturnable
(
char
*
text
);
char
*
apply_bork
(
char
*
text
,
const
gag_pattern_t
*
list
,
int
caps
);
/****
...
...
@@ -146,6 +147,10 @@ GagInfo gaglist[]={
"You have just been made to love Disney"
,
"Your love of Disney has faded"
,
gag_pklong
},
{
"unreturnable"
,
"unreturnable"
,
"De-unreturnable"
,
"You have just been made to love node.js and all things hipster..."
,
"Your affinity for javascript slowly fades away and you begin to make rational language choices again..."
,
gag_unreturnable
},
{
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
},
};
...
...
@@ -626,6 +631,11 @@ void gag_nosport(char *text)
snprintf
(
text
,
MAXTEXTLENGTH
-
1
,
"%s"
,
apply_bork
(
text
,
nosport
,
0
));
}
void
gag_unreturnable
(
char
*
text
)
{
snprintf
(
text
,
MAXTEXTLENGTH
-
1
,
"%s"
,
apply_bork
(
text
,
unreturnable
,
0
));
}
#define MAX_WORDS 30
/* Mars Attacks! */
...
...
@@ -751,6 +761,7 @@ void gag_pklong(char *text)
gag_wordrep
(
text
,
"disney "
);
}
/**
* old style lookup table gag filters
**/
...
...
This diff is collapsed.
Click to expand it.
src/gagtable.c
+
16
−
0
View file @
56a2f88a
...
...
@@ -1293,3 +1293,19 @@ const gag_pattern_t nosport[]={
{
NULL
,
NULL
}};
const
gag_pattern_t
unreturnable
[]
=
{
{
"javascript"
,
"node.js"
},
{
"C++"
,
"node.js"
},
{
"c++"
,
"node.js"
},
{
"fortran"
,
"node.js"
},
{
"pascal"
,
"node.js"
},
{
"python"
,
"node.js"
},
{
"java"
,
"node.js"
},
{
"linux"
,
"nodeOS"
},
{
"windows"
,
"nodeOS"
},
{
"debian"
,
"nodeOS"
},
{
"fedora"
,
"nodeOS"
},
{
"silver"
,
"our node.js server"
},
{
NULL
,
NULL
}
};
This diff is collapsed.
Click to expand it.
src/gagtable.h
+
1
−
1
View file @
56a2f88a
...
...
@@ -16,5 +16,5 @@ extern const gag_pattern_t warez[];
extern
const
gag_pattern_t
french
[];
extern
const
gag_pattern_t
babelfish
[];
extern
const
gag_pattern_t
nosport
[];
extern
const
gag_pattern_t
unreturnable
[];
#endif
/* GAGTABLE_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment