This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
http://ja.stackoverflow.com/questions/9370/ | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define LINE_INDEX_NUM 128 | |
#define LINE_SIZE 256 | |
#define KEY_INDEX_NUM 2084 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*@cc_on @*/ | |
/* if IE, do nothing (error 8004004, whatever that is) */ | |
/*@if (@_jscript_version > 0) | |
@else @*/ | |
document.getCurrentScript = function(){ | |
// fails when document.write nests like | |
// document.write('<'+'script'+'>' +'document.write(...)' + '</'+'script'+'>') | |
return (function (e) { | |
if (!e) return null // gracefully report failure | |
if (e.nodeName.toLowerCase() == 'script') return e; |