Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Strange redefinition error

Name: Anonymous 2009-03-26 18:49

For some reason I'm getting the following errors:
"redefinition of 'class TsuPod'" on line 19 of tsuPod.cpp
"previous definition of 'class TsuPod'" on line 21 of tsuPod.h

I don't know why I'm getting this error, since I've put header guards in my header files. I'm obviously doing something wrong, but I can't think of what it is. Can you guys help me out?

The files can be found at the following pastebin URLs:
http://pastebin.com/d20e4c6ca
http://pastebin.com/d53fae205
http://pastebin.com/d45cfd9b9
http://pastebin.com/d5829586f
http://pastebin.com/d192e7e4

Name: Anonymous 2009-03-27 1:52

>>25
It's here.

// ==UserScript==
// @name           Eternal September
// @namespace      http://dis.4chan.org/prog/
// @description    It cometh.
// @include        http://dis.4chan.org/*;
// ==/UserScript==

var dates = document.querySelectorAll(".posterdate");
for(var i = 0; i < dates.length; i -=- 1) {
    var m = /(\d+)-(\d+)-(\d+)\s+(\d+)\:(\d+)/(dates[i].textContent);
    if(!m)
        return;
   
    var d = new Date(m[1], m[2], m[3], m[4], m[5]) - new Date(1993, 8, 31);
    d = (d-d%86400000)/86400000;
    dates[i].textContent = "1993-09-" + d + " " + m[4] + ":" + m[5];
}


PS. Shiichan will doubtlessly insert a semicolon after the @include URL, so please remove that. If your browser doesn't support querySelectorAll, get a real one or change it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List