From 13d5a5ace5c88b8659e5a96975919b3fb7143d3e Mon Sep 17 00:00:00 2001 From: Simone Piccardi Date: Sun, 24 Jun 2001 10:13:52 +0000 Subject: [PATCH] Nouva macro quasi funzionante. --- gapil.tex | 2 +- macro.tex | 9 ++++----- process.tex | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/gapil.tex b/gapil.tex index 2564ee7..a8b017b 100644 --- a/gapil.tex +++ b/gapil.tex @@ -1,4 +1,4 @@ -%% +%% %% GaPiL : Guida alla Programmazione in Linux %% %% S. Piccardi Feb. 2001 diff --git a/macro.tex b/macro.tex index f1b1bf5..e832de6 100644 --- a/macro.tex +++ b/macro.tex @@ -94,24 +94,23 @@ tab.~\thechapter.\theusercount} % multi-functions boxed description % \newcommand{\headdecl}[1]{\par \texttt{\#include <#1>}} -\newcommand{\funcdecl}[1]{\par \texttt{#1}} +\newcommand{\funcdecl}[1]{\item\texttt{#1}\par} \newenvironment{functions} {% defining what is done by \begin \center \footnotesize \begin{minipage}[c]{14cm} + \begin{description}{}{} - \begin{list}{}{} - \item } +} {% defining what is done by \end - \end{list} + \end{description} \par \par \texttt{ } \end{minipage} \normalsize \par } -\newenvironment{errlist}{\begin{description}}{\end{description}} diff --git a/process.tex b/process.tex index 9cf5f86..741d4bb 100644 --- a/process.tex +++ b/process.tex @@ -435,7 +435,7 @@ maniera indiretta attraverso dei puntatori. Le funzioni previste dallo standard ANSI C per la gestione della memoria sono quattro, i prototipi sono i seguenti: -\begin{prototypes} +\begin{functions} \headdecl{stdlib.h} \funcdecl{void *calloc(size\_t size)} Alloca \texttt{size} bytes nello heap. La memoria viene inizializzata a 0. @@ -461,7 +461,7 @@ quattro, i prototipi sono i seguenti: La funzione non ritorna nulla. -\end{prototypes} +\end{functions} \begin{prototype}{stdlib.h}{void *calloc(size\_t size)} Alloca \texttt{size} bytes nello heap. La memoria viene inizializzata a 0. -- 2.30.2