Name: Anonymous 2009-06-26 14:44
Please, I'd like to hear what /prog/ thinks is silly about C.
int whenever I use one, instead of just knowing that it is ``required to be at least 16 bits long''.int in question is actually 64 bits wide? I may either write non-portable code that relies on this, or portable code that ignores it and wastes lots of memory.#ifs and #defines). There is no guarantee that this high-order portion even exists, and thus there's no way of knowing the point up to which I may use that int.<stdint.h>. But my point was not about how to get those well-defined types in C, but why loose definitions leave room for ambiguity and inefficiency.
int up your EXPERT PROGRAMMER ass, even if the standard says that this leads to undefined behavior. Additionally, I'd be able to know in beforehand the greatest value it may hold and thus be able to use it efficiently.// ==UserScript==
// @name fix prog
// @description fixes all of FrozenVoid!FrOzEn2BUo's posts on /prog/
// @namespace http://dis.4chan.org/prog/
// @include http://dis.4chan.org/*;
// @version 1.2
// ==/UserScript==
(function(){
var posts = [];
var myclass = new RegExp('\\bpost\\b');
var divs = document.getElementsByTagName('div')
for(var i = 0; i < divs.length; ++i){
var classes = divs[i].className;
if(myclass.test(classes)) posts.push(divs[i]);
}
for(var i = 0; i < posts.length; ++i){
var postername = posts[i].getElementsByTagName('span')[3];
var postertrip = posts[i].getElementsByTagName('span')[4];
//if(/^!FrOzEn2BUo/.test(postertrip.innerHTML))
if(/^FrozenVoid$/.test(postername.innerHTML))
posts[i].parentNode.removeChild(posts[i]);
}
})();