<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>Dom Rushbrook pushed to branch master at <a href="https://projects.sucs.org/arthur/mw">Justin Mitchell / mw</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/arthur/mw/commit/e58ece1ba6000ed332cef5aaeb7c82f5d34fec13">e58ece1b</a></strong>
<div>
<span>by Laurence Sebastian Bowes</span>
<i>at 2015-10-21T21:07:16Z</i>
</div>
<pre class='commit-message'>Added Unreturnable gag</pre>
</li>
<li>
<strong><a href="https://projects.sucs.org/arthur/mw/commit/dfde16368bc38a8a64d28ff323f5f75def105337">dfde1636</a></strong>
<div>
<span>by Laurence Sebastian Bowes</span>
<i>at 2015-10-21T21:39:07Z</i>
</div>
<pre class='commit-message'>Make the unreturnable gag a bit more interesting..</pre>
</li>
<li>
<strong><a href="https://projects.sucs.org/arthur/mw/commit/56a2f88adda58b7d7e9718c4017f423401379bff">56a2f88a</a></strong>
<div>
<span>by Dom Rushbrook</span>
<i>at 2015-10-21T22:33:14Z</i>
</div>
<pre class='commit-message'>Merge branch 'master' into 'master'
Unreturnable gag
See merge request !3</pre>
</li>
</ul>
<h4>3 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/gags.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
src/gagtable.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
src/gagtable.h
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/arthur/mw/compare/b8df4668dd3d8a6965dbf6e729b3e4bc79df592c...56a2f88adda58b7d7e9718c4017f423401379bff#diff-0'>
<strong>
src/gags.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/gags.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/gags.c
</span><span style="color: #aaaaaa">@@ -39,6 +39,7 @@ void gag_nosport(char *text);
</span> void gag_ack(char *text);
void gag_hazelesque(char *text);
void gag_pklong(char *text);
<span style="color: #000000;background-color: #ddffdd">+void gag_unreturnable(char *text);
</span> char *apply_bork(char *text, const gag_pattern_t *list, int caps);
/****
<span style="color: #aaaaaa">@@ -146,6 +147,10 @@ GagInfo gaglist[]={
</span> "You have just been made to love Disney",
"Your love of Disney has faded",
gag_pklong},
<span style="color: #000000;background-color: #ddffdd">+{"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},
</span> {NULL, NULL, NULL, NULL, NULL, NULL},
};
<span style="color: #aaaaaa">@@ -626,6 +631,11 @@ void gag_nosport(char *text)
</span> snprintf(text, MAXTEXTLENGTH-1, "%s", apply_bork(text, nosport, 0));
}
<span style="color: #000000;background-color: #ddffdd">+void gag_unreturnable(char *text)
+{
+ snprintf(text, MAXTEXTLENGTH-1, "%s", apply_bork(text, unreturnable, 0));
+}
+
</span> #define MAX_WORDS 30
/* Mars Attacks! */
<span style="color: #aaaaaa">@@ -751,6 +761,7 @@ void gag_pklong(char *text)
</span> gag_wordrep(text,"disney ");
}
<span style="color: #000000;background-color: #ddffdd">+
</span> /**
* old style lookup table gag filters
**/
</code></pre>
<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/arthur/mw/compare/b8df4668dd3d8a6965dbf6e729b3e4bc79df592c...56a2f88adda58b7d7e9718c4017f423401379bff#diff-1'>
<strong>
src/gagtable.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/gagtable.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/gagtable.c
</span><span style="color: #aaaaaa">@@ -1293,3 +1293,19 @@ const gag_pattern_t nosport[]={
</span>
{NULL,NULL}};
<span style="color: #000000;background-color: #ddffdd">+
+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} };
</span></code></pre>
<br>
</li>
<li id='diff-2'>
<a href='https://projects.sucs.org/arthur/mw/compare/b8df4668dd3d8a6965dbf6e729b3e4bc79df592c...56a2f88adda58b7d7e9718c4017f423401379bff#diff-2'>
<strong>
src/gagtable.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/gagtable.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/gagtable.h
</span><span style="color: #aaaaaa">@@ -16,5 +16,5 @@ extern const gag_pattern_t warez[];
</span> extern const gag_pattern_t french[];
extern const gag_pattern_t babelfish[];
extern const gag_pattern_t nosport[];
-
<span style="color: #000000;background-color: #ddffdd">+extern const gag_pattern_t unreturnable[];
</span> #endif /* GAGTABLE_H */
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://projects.sucs.org/arthur/mw/compare/b8df4668dd3d8a6965dbf6e729b3e4bc79df592c...56a2f88adda58b7d7e9718c4017f423401379bff">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":["merge_requests","issues","commit"],"url":"https://projects.sucs.org/arthur/mw/compare/b8df4668dd3d8a6965dbf6e729b3e4bc79df592c...56a2f88adda58b7d7e9718c4017f423401379bff"}}</script>
</p>
</div>
</body>
</html>