Generates a md5 hash from the lexical tokens of a C++ ignoring directives and whitespace. [詳細]
#include "cpp_lexer.hpp"
#include <iostream>
#include <vector>
#include <sstream>
#include <cstdio>
#include <cstring>
#include "md5.h"
関数 | |
void | getTokenData (const char *fname, vector< char > &vdata) |
string | getmd5hash (const char *fname, const vector< char > &vbasedata) |
int | main (int argc, char *argv[]) |
Generates a md5 hash from the lexical tokens of a C++ ignoring directives and whitespace.
If only a filename is given, will output a 16 byte string. If both filename and define are given will output a file consisting of the hashes:
#define @define2@ "@md5hash@"
cpp-gen-md5.cpp で定義されています。
string getmd5hash | ( | const char * | fname, |
const vector< char > & | vbasedata | ||
) |
cpp-gen-md5.cpp の 125 行で定義されています。
void getTokenData | ( | const char * | fname, |
vector< char > & | vdata | ||
) |
cpp-gen-md5.cpp の 68 行で定義されています。
int main | ( | int | argc, |
char * | argv[] | ||
) |
cpp-gen-md5.cpp の 32 行で定義されています。