\doxysection{src/casl2.c File Reference}
\label{casl2_8c}\index{src/casl2.c@{src/casl2.c}}
{\ttfamily \#include "{}package.\+h"{}}\newline
{\ttfamily \#include "{}assemble.\+h"{}}\newline
{\ttfamily \#include "{}exec.\+h"{}}\newline
Include dependency graph for casl2.\+c\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{casl2_8c__incl}
\end{center}
\end{figure}
\doxysubsubsection*{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}
\doxysubsubsection*{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}
\label{doc-func-members}
\doxysubsection{Function Documentation}
\index{casl2.c@{casl2.c}!addcerrlist\_casl2@{addcerrlist\_casl2}}
\index{addcerrlist\_casl2@{addcerrlist\_casl2}!casl2.c@{casl2.c}}
\doxysubsubsection{addcerrlist\_casl2()}
{\footnotesize\ttfamily \label{casl2_8c_a1e30152988af8038289b7dd97f3e6d7a}
void addcerrlist\+\_\+casl2 (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})}
CASL IIのエラーをエラーリストに追加
Definition at line \textbf{ 51} of file \textbf{ casl2.\+c}.
Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=332pt]{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=207pt]{casl2_8c_a1e30152988af8038289b7dd97f3e6d7a_icgraph}
\end{center}
\end{figure}
\index{casl2.c@{casl2.c}!main@{main}}
\index{main@{main}!casl2.c@{casl2.c}}
\doxysubsubsection{main()}
{\footnotesize\ttfamily \label{casl2_8c_a0ddf1224851353fc92bfbff6f499fa97}
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 \textbf{ 73} of file \textbf{ 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}
\index{casl2.c@{casl2.c}!objfile\_name@{objfile\_name}}
\index{objfile\_name@{objfile\_name}!casl2.c@{casl2.c}}
\doxysubsubsection{objfile\_name()}
{\footnotesize\ttfamily \label{casl2_8c_ab6b22940a9222f1056dface896c226a1}
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 \textbf{ 56} of file \textbf{ casl2.\+c}.
Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=316pt]{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=188pt]{casl2_8c_ab6b22940a9222f1056dface896c226a1_icgraph}
\end{center}
\end{figure}
\label{doc-var-members}
\doxysubsection{Variable Documentation}
\index{casl2.c@{casl2.c}!cerr\_casl2@{cerr\_casl2}}
\index{cerr\_casl2@{cerr\_casl2}!casl2.c@{casl2.c}}
\doxysubsubsection{cerr\_casl2}
{\footnotesize\ttfamily \label{casl2_8c_a28657f6b860d0eed7ce04865a344749c}
\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 \textbf{ 46} of file \textbf{ casl2.\+c}.
\index{casl2.c@{casl2.c}!longopts@{longopts}}
\index{longopts@{longopts}!casl2.c@{casl2.c}}
\doxysubsubsection{longopts}
{\footnotesize\ttfamily \label{casl2_8c_a94965649155359a4c4eb047af782bf22}
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 \textbf{ 23} of file \textbf{ casl2.\+c}.