root/doc_inner/gnu_global/S/662.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>doc_inner/doxygen/latex/hash_8c_source.tex</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.14' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2920.html'>doc_inner</a>/<a href='../files/2921.html'>doxygen</a>/<a href='../files/2922.html'>latex</a>/hash_8c_source.tex</h2>
<em class='comment'>/* [&lt;][&gt;][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>\doxysection{hash.\+c}
<a id='L2' name='L2'></a>\label{hash_8c_source}\index{src/hash.c@{src/hash.c}}
<a id='L3' name='L3'></a>\textbf{ Go to the documentation of this file.}
<a id='L4' name='L4'></a>\begin{DoxyCode}{0}
<a id='L5' name='L5'></a>\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#include\ "{}hash.h"{}}}
<a id='L6' name='L6'></a>\DoxyCodeLine{00002\ }
<a id='L7' name='L7'></a>\DoxyCodeLine{00003\ \textcolor{keywordtype}{unsigned}\ hash(\textcolor{keywordtype}{int}\ keyc,\ HKEY\ *keyv[],\ \textcolor{keywordtype}{int}\ tabsize)}
<a id='L8' name='L8'></a>\DoxyCodeLine{00004\ \{}
<a id='L9' name='L9'></a>\DoxyCodeLine{00005\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ hashval\ =\ 0;}
<a id='L10' name='L10'></a>\DoxyCodeLine{00006\ \ \ \ \ \textcolor{keyword}{enum}\ \{}
<a id='L11' name='L11'></a>\DoxyCodeLine{00007\ \ \ \ \ \ \ \ \ HASHNUM\ =\ 31}
<a id='L12' name='L12'></a>\DoxyCodeLine{00008\ \ \ \ \ \};}
<a id='L13' name='L13'></a>\DoxyCodeLine{00009\ }
<a id='L14' name='L14'></a>\DoxyCodeLine{00010\ \ \ \ \ \textcolor{keywordflow}{for}(\textcolor{keywordtype}{int}\ i\ =\ 0;\ i\ &lt;\ keyc;\ i++)\ \{}
<a id='L15' name='L15'></a>\DoxyCodeLine{00011\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{switch}(keyv[i]-\/&gt;type)\ \{}
<a id='L16' name='L16'></a>\DoxyCodeLine{00012\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ CHARS:}
<a id='L17' name='L17'></a>\DoxyCodeLine{00013\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{for}(\textcolor{keywordtype}{int}\ j\ =\ 0;\ keyv[i]-\/&gt;val.s[j];\ j++)\ \{}
<a id='L18' name='L18'></a>\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ hashval\ =\ keyv[i]-\/&gt;val.s[j]\ +\ HASHNUM\ *\ hashval;}
<a id='L19' name='L19'></a>\DoxyCodeLine{00015\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
<a id='L20' name='L20'></a>\DoxyCodeLine{00016\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
<a id='L21' name='L21'></a>\DoxyCodeLine{00017\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ INT:}
<a id='L22' name='L22'></a>\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ \ \ \ \ hashval\ =\ keyv[i]-\/&gt;val.i\ +\ HASHNUM\ *\ hashval;}
<a id='L23' name='L23'></a>\DoxyCodeLine{00019\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
<a id='L24' name='L24'></a>\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{default}:}
<a id='L25' name='L25'></a>\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
<a id='L26' name='L26'></a>\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ \}}
<a id='L27' name='L27'></a>\DoxyCodeLine{00023\ \ \ \ \ \}}
<a id='L28' name='L28'></a>\DoxyCodeLine{00024\ \ \ \ \ \textcolor{keywordflow}{return}\ (hashval\ \%\ tabsize);}
<a id='L29' name='L29'></a>\DoxyCodeLine{00025\ \}}
<a id='L30' name='L30'></a>
<a id='L31' name='L31'></a>\end{DoxyCode}
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */