\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 \char`\"{}word.\+h\char`\"{}}\newline {\ttfamily \#include \char`\"{}cerr.\+h\char`\"{}}\newline Include dependency graph for word.\+c\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{word_8c__incl} \end{center} \end{figure} \doxysubsection*{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} \doxysubsection*{Variables} \begin{DoxyCompactItemize} \item static \textbf{ CERR} \textbf{ cerr\+\_\+word} [$\,$] \begin{DoxyCompactList}\small\item\em wordのエラー定義 \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Function Documentation} \mbox{\label{word_8c_a77bd186bba51763cd956c4a25b6941d8}} \index{word.c@{word.c}!addcerrlist\_word@{addcerrlist\_word}} \index{addcerrlist\_word@{addcerrlist\_word}!word.c@{word.c}} \doxysubsubsection{addcerrlist\_word()} {\footnotesize\ttfamily void addcerrlist\+\_\+word (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} wordデータ型についてのエラーをエラーリストに追加する \begin{DoxyReturn}{Returns} なし \end{DoxyReturn} Definition at line 77 of file word.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=336pt]{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=350pt]{word_8c_a77bd186bba51763cd956c4a25b6941d8_icgraph} \end{center} \end{figure} \mbox{\label{word_8c_a377333383c6d6954b94c04e0b5df9b7d}} \index{word.c@{word.c}!h2word@{h2word}} \index{h2word@{h2word}!word.c@{word.c}} \doxysubsubsection{h2word()} {\footnotesize\ttfamily \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 47 of file word.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=279pt]{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} \mbox{\label{word_8c_a1824944cce248b98090886185f84ded6}} \index{word.c@{word.c}!n2word@{n2word}} \index{n2word@{n2word}!word.c@{word.c}} \doxysubsubsection{n2word()} {\footnotesize\ttfamily \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 28 of file word.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=279pt]{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} \mbox{\label{word_8c_a29fa9e71f68a25a914b4d2d1ce0b3043}} \index{word.c@{word.c}!nh2word@{nh2word}} \index{nh2word@{nh2word}!word.c@{word.c}} \doxysubsubsection{nh2word()} {\footnotesize\ttfamily \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 82 of file 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} \mbox{\label{word_8c_a3d6536ab9a2be37884f49fc380e2fbcf}} \index{word.c@{word.c}!print\_dumpword@{print\_dumpword}} \index{print\_dumpword@{print\_dumpword}!word.c@{word.c}} \doxysubsubsection{print\_dumpword()} {\footnotesize\ttfamily void print\+\_\+dumpword (\begin{DoxyParamCaption}\item[{\textbf{ WORD}}]{word, }\item[{bool}]{logicalmode }\end{DoxyParamCaption})} WORD値を解析して表示する \begin{DoxyReturn}{Returns} なし \end{DoxyReturn} \begin{DoxyParams}{Parameters} {\em word} & WORD値 \\ \hline {\em logicalmode} & 論理演算の場合はtrue、算術演算の場合はfalse \\ \hline \end{DoxyParams} Definition at line 137 of file word.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=325pt]{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} \mbox{\label{word_8c_a4288f24ba41b026b9ceb7c02b5b7146c}} \index{word.c@{word.c}!word2bit@{word2bit}} \index{word2bit@{word2bit}!word.c@{word.c}} \doxysubsubsection{word2bit()} {\footnotesize\ttfamily 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 120 of file word.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=201pt]{word_8c_a4288f24ba41b026b9ceb7c02b5b7146c_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_a4288f24ba41b026b9ceb7c02b5b7146c_icgraph} \end{center} \end{figure} \mbox{\label{word_8c_a6df928c3d6130ea9168e9befef66cb8c}} \index{word.c@{word.c}!word2n@{word2n}} \index{word2n@{word2n}!word.c@{word.c}} \doxysubsubsection{word2n()} {\footnotesize\ttfamily 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 102 of file word.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{word_8c_a6df928c3d6130ea9168e9befef66cb8c_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_a6df928c3d6130ea9168e9befef66cb8c_icgraph} \end{center} \end{figure} \doxysubsection{Variable Documentation} \mbox{\label{word_8c_ac8fb1a103644e3dcb0030d71a1e72014}} \index{word.c@{word.c}!cerr\_word@{cerr\_word}} \index{cerr\_word@{cerr\_word}!word.c@{word.c}} \doxysubsubsection{cerr\_word} {\footnotesize\ttfamily \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 70 of file word.\+c.