# HG changeset patch # User Nobuyasu Oshiro # Date 1329815361 -32400 # Node ID 42e6dd499688d2aa7cea6b711d2a895007e9b3e7 # Parent 1f5bfcd8b6852387bae3587f8161ac5c73755b23 modify resume.tex diff -r 1f5bfcd8b685 -r 42e6dd499688 paper/resume.tex --- a/paper/resume.tex Tue Feb 21 18:03:14 2012 +0900 +++ b/paper/resume.tex Tue Feb 21 18:09:21 2012 +0900 @@ -141,27 +141,17 @@ \section{構文の追加} -\subsection{``\_\_rectype''構文} +\subsection{``\_\_rectype'', ``selftype'' 構文} %\verb+__rectype+キーワードはリカーシブタイプを宣言する時に使われる. 通常, 関数定義において引数の中に自分自身を指す関数ポインタを入れることはできない. そこで, \verb+__rectype+を使うことでlisting\ref{code:rectype}の用な宣言が行うことができる. -この時\verb+__rectype+は funcPtr を指す. +また, 構造体の宣言時に宣言中の構造体を指す``selftype'' 構文の追加も行った. +listing\ref{code:rectype}の様な宣言が行えるようになった. +この時\verb+__rectype+は funcPtr を指し, selftype は struct node を指す. \begin{figure}[h] \begin{minipage}[b]{.45\textwidth} \begin{lstlisting}[caption=\_\_rectype 構文使用例,label=code:rectype] typedef (*funcPtr)(int,__rectype*); - \end{lstlisting} - \end{minipage} - \hfill -\end{figure} - -\subsection{selftype 構文} -selftype 構文は構造体の宣言時に使われる. -listing\ref{code:selftype}な宣言が行える. -この場合, selftype は struct node を指す. -\begin{figure}[h] - \begin{minipage}[b]{.45\textwidth} - \begin{lstlisting}[caption=selftype 構文使用例,label=code:selftype] struct node { int num; selftype child;