root/doc_inner/doxygen/latex/word_8c.tex

/* [<][>][^][v][top][bottom][index][help] */
\doxysection{src/word.c File Reference}
\label{word_8c}\index{src/word.c@{src/word.c}}
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$assert.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$ctype.\+h$>$}\newline
{\ttfamily \#include "{}word.\+h"{}}\newline
{\ttfamily \#include "{}cerr.\+h"{}}\newline
Include dependency graph for word.\+c\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ WORD} \textbf{ n2word} (const char $\ast$str)
\begin{DoxyCompactList}\small\item\em 10進数値を表す文字列を\+WORD値に変換する \end{DoxyCompactList}\item 
\textbf{ WORD} \textbf{ h2word} (const char $\ast$str)
\begin{DoxyCompactList}\small\item\em 16進数の文字列を\+WORD値に変換する \end{DoxyCompactList}\item 
void \textbf{ addcerrlist\+\_\+word} ()
\begin{DoxyCompactList}\small\item\em wordデータ型についてのエラーをエラーリストに追加する \end{DoxyCompactList}\item 
\textbf{ WORD} \textbf{ nh2word} (const char $\ast$str)
\begin{DoxyCompactList}\small\item\em 10進数または16進数の文字列を\+WORD値に変換する \end{DoxyCompactList}\item 
char $\ast$ \textbf{ word2n} (\textbf{ WORD} word)
\begin{DoxyCompactList}\small\item\em WORD値を10進数値を表す文字列に変換する \end{DoxyCompactList}\item 
char $\ast$ \textbf{ word2bit} (const \textbf{ WORD} word)
\begin{DoxyCompactList}\small\item\em WORD値を2進数の文字列に変換する \end{DoxyCompactList}\item 
void \textbf{ print\+\_\+dumpword} (\textbf{ WORD} word, bool logicalmode)
\begin{DoxyCompactList}\small\item\em WORD値を解析して表示する \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static \textbf{ CERR} \textbf{ cerr\+\_\+word} [$\,$]
\begin{DoxyCompactList}\small\item\em wordのエラー定義 \end{DoxyCompactList}\end{DoxyCompactItemize}


\label{doc-func-members}
\doxysubsection{Function Documentation}
\index{word.c@{word.c}!addcerrlist\_word@{addcerrlist\_word}}
\index{addcerrlist\_word@{addcerrlist\_word}!word.c@{word.c}}
\doxysubsubsection{addcerrlist\_word()}
{\footnotesize\ttfamily \label{word_8c_a77bd186bba51763cd956c4a25b6941d8} 
void addcerrlist\+\_\+word (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})}



wordデータ型についてのエラーをエラーリストに追加する 



Definition at line \textbf{ 77} of file \textbf{ word.\+c}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=330pt]{word_8c_a77bd186bba51763cd956c4a25b6941d8_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=349pt]{word_8c_a77bd186bba51763cd956c4a25b6941d8_icgraph}
\end{center}
\end{figure}
\index{word.c@{word.c}!h2word@{h2word}}
\index{h2word@{h2word}!word.c@{word.c}}
\doxysubsubsection{h2word()}
{\footnotesize\ttfamily \label{word_8c_a377333383c6d6954b94c04e0b5df9b7d} 
\textbf{ WORD} h2word (\begin{DoxyParamCaption}\item[{const char $\ast$}]{str}{}\end{DoxyParamCaption})}



16進数の文字列を\+WORD値に変換する 

\begin{DoxyReturn}{Returns}
WORD値
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em $\ast$str} & 16進数値を表す文字列 \\
\hline
\end{DoxyParams}


Definition at line \textbf{ 47} of file \textbf{ word.\+c}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=275pt]{word_8c_a377333383c6d6954b94c04e0b5df9b7d_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_a377333383c6d6954b94c04e0b5df9b7d_icgraph}
\end{center}
\end{figure}
\index{word.c@{word.c}!n2word@{n2word}}
\index{n2word@{n2word}!word.c@{word.c}}
\doxysubsubsection{n2word()}
{\footnotesize\ttfamily \label{word_8c_a1824944cce248b98090886185f84ded6} 
\textbf{ WORD} n2word (\begin{DoxyParamCaption}\item[{const char $\ast$}]{str}{}\end{DoxyParamCaption})}



10進数値を表す文字列を\+WORD値に変換する 

\begin{DoxyReturn}{Returns}
WORD値
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em $\ast$str} & 10進数値を表す文字列 \\
\hline
\end{DoxyParams}


Definition at line \textbf{ 28} of file \textbf{ word.\+c}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=275pt]{word_8c_a1824944cce248b98090886185f84ded6_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_a1824944cce248b98090886185f84ded6_icgraph}
\end{center}
\end{figure}
\index{word.c@{word.c}!nh2word@{nh2word}}
\index{nh2word@{nh2word}!word.c@{word.c}}
\doxysubsubsection{nh2word()}
{\footnotesize\ttfamily \label{word_8c_a29fa9e71f68a25a914b4d2d1ce0b3043} 
\textbf{ WORD} nh2word (\begin{DoxyParamCaption}\item[{const char $\ast$}]{str}{}\end{DoxyParamCaption})}



10進数または16進数の文字列を\+WORD値に変換する 

\begin{DoxyReturn}{Returns}
WORD値
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em $\ast$str} & 10進数または16進数の文字列 \\
\hline
\end{DoxyParams}


Definition at line \textbf{ 82} of file \textbf{ word.\+c}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_a29fa9e71f68a25a914b4d2d1ce0b3043_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_a29fa9e71f68a25a914b4d2d1ce0b3043_icgraph}
\end{center}
\end{figure}
\index{word.c@{word.c}!print\_dumpword@{print\_dumpword}}
\index{print\_dumpword@{print\_dumpword}!word.c@{word.c}}
\doxysubsubsection{print\_dumpword()}
{\footnotesize\ttfamily \label{word_8c_a3d6536ab9a2be37884f49fc380e2fbcf} 
void print\+\_\+dumpword (\begin{DoxyParamCaption}\item[{\textbf{ WORD}}]{word}{, }\item[{bool}]{logicalmode}{}\end{DoxyParamCaption})}



WORD値を解析して表示する 


\begin{DoxyParams}{Parameters}
{\em word} & WORD値 \\
\hline
{\em logicalmode} & 論理演算の場合はtrue、算術演算の場合はfalse \\
\hline
\end{DoxyParams}


Definition at line \textbf{ 137} of file \textbf{ word.\+c}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=319pt]{word_8c_a3d6536ab9a2be37884f49fc380e2fbcf_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_a3d6536ab9a2be37884f49fc380e2fbcf_icgraph}
\end{center}
\end{figure}
\index{word.c@{word.c}!word2bit@{word2bit}}
\index{word2bit@{word2bit}!word.c@{word.c}}
\doxysubsubsection{word2bit()}
{\footnotesize\ttfamily \label{word_8c_a0aeacffd5642c8b9d278b4c77d7a34ec} 
char $\ast$ word2bit (\begin{DoxyParamCaption}\item[{const \textbf{ WORD}}]{word}{}\end{DoxyParamCaption})}



WORD値を2進数の文字列に変換する 

\begin{DoxyReturn}{Returns}
2進数値を表す文字列
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em word} & WORD値 \\
\hline
\end{DoxyParams}


Definition at line \textbf{ 120} of file \textbf{ word.\+c}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=198pt]{word_8c_a0aeacffd5642c8b9d278b4c77d7a34ec_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_a0aeacffd5642c8b9d278b4c77d7a34ec_icgraph}
\end{center}
\end{figure}
\index{word.c@{word.c}!word2n@{word2n}}
\index{word2n@{word2n}!word.c@{word.c}}
\doxysubsubsection{word2n()}
{\footnotesize\ttfamily \label{word_8c_af0f7f3f8b1dcb1ae401afef951d2ef19} 
char $\ast$ word2n (\begin{DoxyParamCaption}\item[{\textbf{ WORD}}]{word}{}\end{DoxyParamCaption})}



WORD値を10進数値を表す文字列に変換する 

\begin{DoxyReturn}{Returns}
10進数値を表す文字列
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em $\ast$word} & WORD値 \\
\hline
\end{DoxyParams}


Definition at line \textbf{ 102} of file \textbf{ word.\+c}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_af0f7f3f8b1dcb1ae401afef951d2ef19_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{word_8c_af0f7f3f8b1dcb1ae401afef951d2ef19_icgraph}
\end{center}
\end{figure}


\label{doc-var-members}
\doxysubsection{Variable Documentation}
\index{word.c@{word.c}!cerr\_word@{cerr\_word}}
\index{cerr\_word@{cerr\_word}!word.c@{word.c}}
\doxysubsubsection{cerr\_word}
{\footnotesize\ttfamily \label{word_8c_ac8fb1a103644e3dcb0030d71a1e72014} 
\textbf{ CERR} cerr\+\_\+word[$\,$]\hspace{0.3cm}{\ttfamily [static]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{=\ \{}
\DoxyCodeLine{\ \ \ \ \{\ 114,\ \textcolor{stringliteral}{"{}not\ integer"{}}\ \},}
\DoxyCodeLine{\ \ \ \ \{\ 115,\ \textcolor{stringliteral}{"{}not\ hex"{}}\ \},}
\DoxyCodeLine{\ \ \ \ \{\ 116,\ \textcolor{stringliteral}{"{}out\ of\ hex\ range"{}}\ \},}
\DoxyCodeLine{\}}

\end{DoxyCode}


wordのエラー定義 



Definition at line \textbf{ 70} of file \textbf{ word.\+c}.


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