\doxysection{src/casl2.c File Reference} \label{casl2_8c}\index{src/casl2.c@{src/casl2.c}} {\ttfamily \#include \char`\"{}package.\+h\char`\"{}}\newline {\ttfamily \#include \char`\"{}assemble.\+h\char`\"{}}\newline {\ttfamily \#include \char`\"{}exec.\+h\char`\"{}}\newline Include dependency graph for casl2.\+c\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{casl2_8c__incl} \end{center} \end{figure} \doxysubsection*{Functions} \begin{DoxyCompactItemize} \item void \textbf{ addcerrlist\+\_\+casl2} () \begin{DoxyCompactList}\small\item\em CASL IIのエラーをエラーリストに追加 \end{DoxyCompactList}\item char $\ast$ \textbf{ objfile\+\_\+name} (const char $\ast$str) \begin{DoxyCompactList}\small\item\em アセンブル結果を書き込むファイルの名前 \end{DoxyCompactList}\item int \textbf{ main} (int argc, char $\ast$argv[$\,$]) \begin{DoxyCompactList}\small\item\em casl2コマンドのメイン \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection*{Variables} \begin{DoxyCompactItemize} \item static struct option \textbf{ longopts} [$\,$] \begin{DoxyCompactList}\small\item\em casl2コマンドのオプション \end{DoxyCompactList}\item \textbf{ CERR} \textbf{ cerr\+\_\+casl2} [$\,$] \begin{DoxyCompactList}\small\item\em casl2のエラー定義 \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Function Documentation} \mbox{\label{casl2_8c_a1e30152988af8038289b7dd97f3e6d7a}} \index{casl2.c@{casl2.c}!addcerrlist\_casl2@{addcerrlist\_casl2}} \index{addcerrlist\_casl2@{addcerrlist\_casl2}!casl2.c@{casl2.c}} \doxysubsubsection{addcerrlist\_casl2()} {\footnotesize\ttfamily void addcerrlist\+\_\+casl2 (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} CASL IIのエラーをエラーリストに追加 \begin{DoxyReturn}{Returns} なし \end{DoxyReturn} Definition at line 52 of file casl2.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=338pt]{casl2_8c_a1e30152988af8038289b7dd97f3e6d7a_cgraph} \end{center} \end{figure} Here is the caller graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=210pt]{casl2_8c_a1e30152988af8038289b7dd97f3e6d7a_icgraph} \end{center} \end{figure} \mbox{\label{casl2_8c_a0ddf1224851353fc92bfbff6f499fa97}} \index{casl2.c@{casl2.c}!main@{main}} \index{main@{main}!casl2.c@{casl2.c}} \doxysubsubsection{main()} {\footnotesize\ttfamily int main (\begin{DoxyParamCaption}\item[{int}]{argc, }\item[{char $\ast$}]{argv[$\,$] }\end{DoxyParamCaption})} casl2コマンドのメイン \begin{DoxyReturn}{Returns} 正常終了時は0、エラー発生時は1 \end{DoxyReturn} \begin{DoxyParams}{Parameters} {\em argc} & コマンドライン引数の数 \\ \hline {\em $\ast$argv\mbox{[}$\,$\mbox{]}} & コマンドライン引数の配列 \\ \hline \end{DoxyParams} Definition at line 74 of file casl2.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{casl2_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph} \end{center} \end{figure} \mbox{\label{casl2_8c_ab6b22940a9222f1056dface896c226a1}} \index{casl2.c@{casl2.c}!objfile\_name@{objfile\_name}} \index{objfile\_name@{objfile\_name}!casl2.c@{casl2.c}} \doxysubsubsection{objfile\_name()} {\footnotesize\ttfamily char $\ast$ objfile\+\_\+name (\begin{DoxyParamCaption}\item[{const char $\ast$}]{str }\end{DoxyParamCaption})} アセンブル結果を書き込むファイルの名前 \begin{DoxyReturn}{Returns} ファイル名 \end{DoxyReturn} \begin{DoxyParams}{Parameters} {\em $\ast$str} & ファイル名 \\ \hline \end{DoxyParams} Definition at line 57 of file casl2.\+c. Here is the call graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=321pt]{casl2_8c_ab6b22940a9222f1056dface896c226a1_cgraph} \end{center} \end{figure} Here is the caller graph for this function\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=191pt]{casl2_8c_ab6b22940a9222f1056dface896c226a1_icgraph} \end{center} \end{figure} \doxysubsection{Variable Documentation} \mbox{\label{casl2_8c_a28657f6b860d0eed7ce04865a344749c}} \index{casl2.c@{casl2.c}!cerr\_casl2@{cerr\_casl2}} \index{cerr\_casl2@{cerr\_casl2}!casl2.c@{casl2.c}} \doxysubsubsection{cerr\_casl2} {\footnotesize\ttfamily \textbf{ CERR} cerr\+\_\+casl2[$\,$]} {\bfseries Initial value\+:} \begin{DoxyCode}{0} \DoxyCodeLine{= \{} \DoxyCodeLine{ \{ 126, \textcolor{stringliteral}{"{}no source file"{}} \},} \DoxyCodeLine{ \{ 127, \textcolor{stringliteral}{"{}invalid option"{}} \},} \DoxyCodeLine{\}} \end{DoxyCode} casl2のエラー定義 Definition at line 47 of file casl2.\+c. \mbox{\label{casl2_8c_a94965649155359a4c4eb047af782bf22}} \index{casl2.c@{casl2.c}!longopts@{longopts}} \index{longopts@{longopts}!casl2.c@{casl2.c}} \doxysubsubsection{longopts} {\footnotesize\ttfamily struct option longopts[$\,$]\hspace{0.3cm}{\ttfamily [static]}} {\bfseries Initial value\+:} \begin{DoxyCode}{0} \DoxyCodeLine{= \{} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}source"{}}, no\_argument, NULL, \textcolor{charliteral}{'s'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}label"{}}, no\_argument, NULL, \textcolor{charliteral}{'l'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}labelonly"{}}, no\_argument, NULL, \textcolor{charliteral}{'L'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}assembledetail"{}}, no\_argument, NULL, \textcolor{charliteral}{'a'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}assembledetailonly"{}}, no\_argument, NULL, \textcolor{charliteral}{'A'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}assembleout"{}}, optional\_argument, NULL, \textcolor{charliteral}{'o'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}assembleoutonly"{}}, optional\_argument, NULL, \textcolor{charliteral}{'O'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}trace"{}}, no\_argument, NULL, \textcolor{charliteral}{'t'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}tracearithmetic"{}}, no\_argument, NULL, \textcolor{charliteral}{'t'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}tracelogical"{}}, no\_argument, NULL, \textcolor{charliteral}{'T'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}dump"{}}, no\_argument, NULL, \textcolor{charliteral}{'d'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}monitor"{}}, no\_argument, NULL, \textcolor{charliteral}{'m'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}memorysize"{}}, required\_argument, NULL, \textcolor{charliteral}{'M'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}clocks"{}}, required\_argument, NULL, \textcolor{charliteral}{'C'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}version"{}}, no\_argument, NULL, \textcolor{charliteral}{'v'} \},} \DoxyCodeLine{ \{ \textcolor{stringliteral}{"{}help"{}}, no\_argument, NULL, \textcolor{charliteral}{'h'} \},} \DoxyCodeLine{ \{ 0, 0, 0, 0 \},} \DoxyCodeLine{\}} \end{DoxyCode} casl2コマンドのオプション Definition at line 19 of file casl2.\+c.