Fatta una bella passata di spell su tutto quanto ...
[gapil.git] / macro.tex
index 2f4ea86a4cc19f39f452e43c63bc54800b410775..bff8918bc46fec18118ca05b62bb24aaa24db7f1 100644 (file)
--- a/macro.tex
+++ b/macro.tex
@@ -9,14 +9,17 @@
 % Figure commands
 %
 \newcommand{\curfig}{fig.~\thefigure}
+
 \newcommand{\nfig}{%
 \setcounter{usercount}{\value{figure}}%
 \addtocounter{usercount}{1}%
 fig.~\thechapter.\theusercount}
+
 \newcommand{\pfig}{%
 \setcounter{usercount}{\value{figure}}%
 \addtocounter{usercount}{-1}%
 fig.~\thechapter.\theusercount}
+
 \newcommand{\figref}[1]{fig.~\ref{#1}}
 %
 % Tables commands
@@ -60,20 +63,24 @@ tab.~\thechapter.\theusercount}
 %
 % Macro to create a special environment for function prototypes
 %
-\newenvironment{prototype}[1]{
+\newenvironment{prototype}[2]{
   \center
-  \begin{minipage}[c]{14cm}
-  \par \texttt{#1}
    \footnotesize
+  \begin{minipage}[c]{14cm}
+    \par \texttt{\#include <#1>}
+%    \par \ 
+    \par \texttt{#2}
+%   \begin{lstlisting}{}
+% #1
+% #2
+%   \end{lstlisting}
   \begin{list}{}{} 
     \item }
 { \end{list} 
   \par 
-\normalsize 
 \par \texttt{ }
 \end{minipage} 
+\normalsize 
 \par
 }
 \newenvironment{errlist}{\begin{description}}{\end{description}}
-
-