root/doc_inner/gnu_global/S/2415.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>include/cerr.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.5' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2930.html'>include</a>/cerr.h</h2>
<em class='comment'>/* [&lt;][&gt;][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<h2 class='header'><a href='../J/1307.html' title='Multiple included from 14 places.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#ifndef</em> <a href='../S/2415.html#L2' title='Defined at 2 in include/cerr.h.'>YACASL2_CERR_H_INCLUDED</a>
<a id='L2' name='L2'></a>   2 <em class='sharp'>#define</em> <a href='../S/2415.html#L1' title='Referred from 1 in include/cerr.h.'>YACASL2_CERR_H_INCLUDED</a>
<a id='L3' name='L3'></a>   3 
<a id='L4' name='L4'></a>   4 <em class='sharp'>#include</em> &lt;stdbool.h&gt;
<a id='L5' name='L5'></a>   5 <em class='sharp'>#include</em> &lt;stdio.h&gt;
<a id='L6' name='L6'></a>   6 <em class='sharp'>#include</em> &lt;stdlib.h&gt;
<a id='L7' name='L7'></a>   7 <em class='sharp'>#include</em> &lt;string.h&gt;
<a id='L8' name='L8'></a>   8 <em class='sharp'>#include</em> &lt;assert.h&gt;
<a id='L9' name='L9'></a>   9 <em class='sharp'>#include</em> &lt;stdbool.h&gt;
<a id='L10' name='L10'></a>  10 <em class='sharp'>#include</em> "<a href='2424.html'>cmem.h</a>"
<a id='L11' name='L11'></a>  11 
<a id='L12' name='L12'></a>  12 <em class='comment'>/**</em>
<a id='L13' name='L13'></a>  13 <em class='comment'> * @brief エラーを表すデータ型</em>
<a id='L14' name='L14'></a>  14 <em class='comment'> */</em>
<a id='L15' name='L15'></a>  15 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> _CERR <em class='brace'>{</em>
<a id='L16' name='L16'></a>  16     <strong class='reserved'>int</strong> <a href='../Y/157.html' title='Multiple used in 57 places.'>num</a>;        <em class='comment'>/**&lt;エラー番号 */</em>
<a id='L17' name='L17'></a>  17     <strong class='reserved'>char</strong> *<a href='../Y/151.html' title='Multiple used in 23 places.'>msg</a>;      <em class='comment'>/**&lt;エラーメッセージ */</em>
<a id='L18' name='L18'></a>  18 <em class='brace'>}</em> <a href='../R/7.html' title='Multiple referred from 25 places.'>CERR</a>;
<a id='L19' name='L19'></a>  19 
<a id='L20' name='L20'></a>  20 <em class='comment'>/**</em>
<a id='L21' name='L21'></a>  21 <em class='comment'> * @brief 現在のエラー</em>
<a id='L22' name='L22'></a>  22 <em class='comment'> */</em>
<a id='L23' name='L23'></a>  23 <strong class='reserved'>extern</strong> <a href='../S/2415.html#L18' title='Defined at 18 in include/cerr.h.'>CERR</a> *<a href='../Y/32.html' title='Multiple used in 59 places.'>cerr</a>;
<a id='L24' name='L24'></a>  24 
<a id='L25' name='L25'></a>  25 <em class='comment'>/**</em>
<a id='L26' name='L26'></a>  26 <em class='comment'> * @brief エラーリストのデータ型</em>
<a id='L27' name='L27'></a>  27 <em class='comment'> */</em>
<a id='L28' name='L28'></a>  28 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../S/2415.html#L29' title='Referred from 29 in include/cerr.h.'>_CERRLIST</a> <em class='brace'>{</em>
<a id='L29' name='L29'></a>  29     <strong class='reserved'>struct</strong> <a href='../S/2415.html#L28' title='Defined at 28 in include/cerr.h.'>_CERRLIST</a> *<a href='../Y/154.html' title='Multiple used in 30 places.'>next</a>;     <em class='comment'>/**&lt;リスト次項目へのポインタ */</em>
<a id='L30' name='L30'></a>  30     <a href='../S/2415.html#L18' title='Defined at 18 in include/cerr.h.'>CERR</a> *<a href='../Y/32.html' title='Multiple used in 59 places.'>cerr</a>;                 <em class='comment'>/**&lt;エラーの構造体 */</em>
<a id='L31' name='L31'></a>  31 <em class='brace'>}</em> <a href='../R/8.html' title='Multiple referred from 11 places.'>CERRLIST</a>;
<a id='L32' name='L32'></a>  32 
<a id='L33' name='L33'></a>  33 <em class='comment'>/**</em>
<a id='L34' name='L34'></a>  34 <em class='comment'> * @brief エラーリスト</em>
<a id='L35' name='L35'></a>  35 <em class='comment'> */</em>
<a id='L36' name='L36'></a>  36 <strong class='reserved'>extern</strong> <a href='../S/2415.html#L31' title='Defined at 31 in include/cerr.h.'>CERRLIST</a> *<a href='../Y/51.html' title='Multiple used in 9 places.'>cerrlist</a>;
<a id='L37' name='L37'></a>  37 
<a id='L38' name='L38'></a>  38 <strong class='reserved'>enum</strong> <em class='brace'>{</em>
<a id='L39' name='L39'></a>  39     <a href='../R/10.html' title='Multiple referred from 2 places.'>CERRSTRSIZE</a> = 10,    <em class='comment'>/**&lt;エラーメッセージ中に挿入できる文字列のサイズ */</em>
<a id='L40' name='L40'></a>  40     <a href='../S/2845.html#L50' title='Referred from 50 in src/cerr.c.'>CERRMSGSIZE</a> = 70,    <em class='comment'>/**&lt;エラーメッセージのサイズ */</em>
<a id='L41' name='L41'></a>  41 <em class='brace'>}</em>;
<a id='L42' name='L42'></a>  42 
<a id='L43' name='L43'></a>  43 <em class='comment'>/**</em>
<a id='L44' name='L44'></a>  44 <em class='comment'> * @brief エラーを初期化する</em>
<a id='L45' name='L45'></a>  45 <em class='comment'> *</em>
<a id='L46' name='L46'></a>  46 <em class='comment'> * @return なし</em>
<a id='L47' name='L47'></a>  47 <em class='comment'> */</em>
<a id='L48' name='L48'></a>  48 <strong class='reserved'>void</strong> <a href='../S/2845.html#L3' title='Defined at 3 in src/cerr.c.'>cerr_init</a>();
<a id='L49' name='L49'></a>  49 
<a id='L50' name='L50'></a>  50 <em class='comment'>/**</em>
<a id='L51' name='L51'></a>  51 <em class='comment'> * @brief エラーリストを作成・追加する</em>
<a id='L52' name='L52'></a>  52 <em class='comment'> *</em>
<a id='L53' name='L53'></a>  53 <em class='comment'> * @return なし</em>
<a id='L54' name='L54'></a>  54 <em class='comment'> *</em>
<a id='L55' name='L55'></a>  55 <em class='comment'> * @param cerrc 作成または追加するエラーの数</em>
<a id='L56' name='L56'></a>  56 <em class='comment'> * @param cerrv 作成または追加するエラーの配列</em>
<a id='L57' name='L57'></a>  57 <em class='comment'> */</em>
<a id='L58' name='L58'></a>  58 <strong class='reserved'>void</strong> <a href='../S/2845.html#L13' title='Defined at 13 in src/cerr.c.'>addcerrlist</a>(<strong class='reserved'>int</strong> <a href='../Y/50.html' title='Multiple used in 4 places.'>cerrc</a>, <a href='../S/2415.html#L18' title='Defined at 18 in include/cerr.h.'>CERR</a> <a href='../Y/52.html' title='Multiple used in 4 places.'>cerrv</a>[]);
<a id='L59' name='L59'></a>  59 
<a id='L60' name='L60'></a>  60 <em class='comment'>/**</em>
<a id='L61' name='L61'></a>  61 <em class='comment'> * @brief エラーリストを表示する</em>
<a id='L62' name='L62'></a>  62 <em class='comment'> *</em>
<a id='L63' name='L63'></a>  63 <em class='comment'> * @return なし</em>
<a id='L64' name='L64'></a>  64 <em class='comment'> */</em>
<a id='L65' name='L65'></a>  65 <strong class='reserved'>void</strong> <a href='../S/2845.html#L32' title='Defined at 32 in src/cerr.c.'>printcerrlist</a>();
<a id='L66' name='L66'></a>  66 
<a id='L67' name='L67'></a>  67 <em class='comment'>/**</em>
<a id='L68' name='L68'></a>  68 <em class='comment'> * @brief 現在のエラーを設定する</em>
<a id='L69' name='L69'></a>  69 <em class='comment'> *</em>
<a id='L70' name='L70'></a>  70 <em class='comment'> * @return なし</em>
<a id='L71' name='L71'></a>  71 <em class='comment'> *</em>
<a id='L72' name='L72'></a>  72 <em class='comment'> * @param num エラー番号</em>
<a id='L73' name='L73'></a>  73 <em class='comment'> * @param *str エラーメッセージに含まれる文字列</em>
<a id='L74' name='L74'></a>  74 <em class='comment'> */</em>
<a id='L75' name='L75'></a>  75 <strong class='reserved'>void</strong> <a href='../S/2845.html#L45' title='Defined at 45 in src/cerr.c.'>setcerr</a>(<strong class='reserved'>int</strong> <a href='../Y/157.html' title='Multiple used in 57 places.'>num</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/203.html' title='Multiple used in 103 places.'>str</a>);
<a id='L76' name='L76'></a>  76 
<a id='L77' name='L77'></a>  77 <em class='comment'>/**</em>
<a id='L78' name='L78'></a>  78 <em class='comment'> * @brief エラー番号に対応するエラーメッセージを返す</em>
<a id='L79' name='L79'></a>  79 <em class='comment'> *</em>
<a id='L80' name='L80'></a>  80 <em class='comment'> * @return エラーメッセージ</em>
<a id='L81' name='L81'></a>  81 <em class='comment'> *</em>
<a id='L82' name='L82'></a>  82 <em class='comment'> * @param num エラー番号</em>
<a id='L83' name='L83'></a>  83 <em class='comment'> */</em>
<a id='L84' name='L84'></a>  84 <strong class='reserved'>char</strong> *<a href='../S/2845.html#L58' title='Defined at 58 in src/cerr.c.'>getcerrmsg</a>(<strong class='reserved'>int</strong> <a href='../Y/157.html' title='Multiple used in 57 places.'>num</a>);
<a id='L85' name='L85'></a>  85 
<a id='L86' name='L86'></a>  86 <em class='comment'>/**</em>
<a id='L87' name='L87'></a>  87 <em class='comment'> * @brief エラーリストと現在のエラーを解放する</em>
<a id='L88' name='L88'></a>  88 <em class='comment'> *</em>
<a id='L89' name='L89'></a>  89 <em class='comment'> * @return なし</em>
<a id='L90' name='L90'></a>  90 <em class='comment'> */</em>
<a id='L91' name='L91'></a>  91 <strong class='reserved'>void</strong> <a href='../S/2845.html#L72' title='Defined at 72 in src/cerr.c.'>freecerr</a>();
<a id='L92' name='L92'></a>  92 <em class='sharp'>#endif</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */