root/doc_inner/gnu_global/S/41943.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>src/load.c</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.14' />
<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/42028.html'>src</a>/load.c</h2>
<em class='comment'>/* [&lt;][&gt;]<a href='#L15'>[^]</a><a href='#L20'>[v]</a>[top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L15' title='Defined at 15.'>addcerrlist_load</a></li>
<li><a href='#L20' title='Defined at 20.'>loadassemble</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#include</em> "<a href='41476.html'>load.h</a>"
<a id='L2' name='L2'></a>   2 
<a id='L3' name='L3'></a>   3 
<a id='L4' name='L4'></a>   4 <em class='comment'>/**</em>
<a id='L5' name='L5'></a>   5 <em class='comment'> * @brief ファイル読み込みのエラー定義</em>
<a id='L6' name='L6'></a>   6 <em class='comment'> */</em>
<a id='L7' name='L7'></a>   7 <strong class='reserved'>static</strong> <a href='../S/41475.html#L17' title='Defined at 17 in include/cerr.h.'>CERR</a> <a href='../Y/46.html' title='Multiple used in 2 places.'>cerr_load</a>[] = <em class='brace'>{</em>
<a id='L8' name='L8'></a>   8     <em class='brace'>{</em> 210, "load - memory overflow" <em class='brace'>}</em>,
<a id='L9' name='L9'></a>   9     <em class='brace'>{</em> 211, "object file not specified" <em class='brace'>}</em>,
<a id='L10' name='L10'></a>  10     <em class='brace'>{</em> 212, "invalid option" <em class='brace'>}</em>,
<a id='L11' name='L11'></a>  11     <em class='brace'>{</em> 213, "invalid argument" <em class='brace'>}</em>,
<a id='L12' name='L12'></a>  12 <em class='brace'>}</em>;
<a id='L13' name='L13'></a>  13 
<a id='L14' name='L14'></a>  14 <em class='comment'>/* load.hで定義された関数群 */</em>
<a id='L15' name='L15'></a>  15 <strong class='reserved'>void</strong> <a href='../R/93.html' title='Multiple referred from 4 places.'>addcerrlist_load</a>()
<a id='L16' name='L16'></a>  16 <em class='brace'>{</em>
<a id='L17' name='L17'></a>  17     <a href='../S/41939.html#L14' title='Defined at 14 in src/cerr.c.'>addcerrlist</a>(<a href='../S/41483.html#L15' title='Defined at 15 in include/cmem.h.'>ARRAYSIZE</a>(<a href='../Y/46.html' title='Multiple used in 2 places.'>cerr_load</a>), <a href='../Y/46.html' title='Multiple used in 2 places.'>cerr_load</a>);
<a id='L18' name='L18'></a>  18 <em class='brace'>}</em>
<a id='L19' name='L19'></a>  19 
<a id='L20' name='L20'></a>  20 <a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../R/190.html' title='Multiple referred from 4 places.'>loadassemble</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/96.html' title='Multiple used in 22 places.'>file</a>, <a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/201.html' title='Multiple used in 21 places.'>start</a>)
<a id='L21' name='L21'></a>  21 <em class='brace'>{</em>
<a id='L22' name='L22'></a>  22     <a href='../Y/2.html' title='Multiple used in 10 places.'>FILE</a> *<a href='../Y/101.html' title='Multiple used in 32 places.'>fp</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L23' name='L23'></a>  23     <a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/85.html' title='Multiple used in 29 places.'>end</a> = 0;
<a id='L24' name='L24'></a>  24 
<a id='L25' name='L25'></a>  25     <a href='../Y/21.html' title='Multiple used in 24 places.'>assert</a>(<a href='../Y/96.html' title='Multiple used in 22 places.'>file</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>);
<a id='L26' name='L26'></a>  26     <strong class='reserved'>if</strong>((<a href='../Y/101.html' title='Multiple used in 32 places.'>fp</a> = <a href='../Y/100.html' title='Multiple used in 8 places.'>fopen</a>(<a href='../Y/96.html' title='Multiple used in 22 places.'>file</a>, "rb")) == <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L27' name='L27'></a>  27         <a href='../Y/175.html' title='Multiple used in 8 places.'>perror</a>(<a href='../Y/96.html' title='Multiple used in 22 places.'>file</a>);
<a id='L28' name='L28'></a>  28         <strong class='reserved'>return</strong> 0;
<a id='L29' name='L29'></a>  29     <em class='brace'>}</em>
<a id='L30' name='L30'></a>  30     <a href='../Y/85.html' title='Multiple used in 29 places.'>end</a> = <a href='../Y/201.html' title='Multiple used in 21 places.'>start</a> + <a href='../Y/104.html' title='Multiple used in 2 places.'>fread</a>(<a href='../Y/223.html' title='Multiple used in 242 places.'>sys</a>-&gt;<a href='../Y/145.html' title='Multiple used in 69 places.'>memory</a> + <a href='../Y/201.html' title='Multiple used in 21 places.'>start</a>, <strong class='reserved'>sizeof</strong>(<a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a>), <a href='../Y/223.html' title='Multiple used in 242 places.'>sys</a>-&gt;<a href='../Y/147.html' title='Multiple used in 30 places.'>memsize</a> - <a href='../Y/201.html' title='Multiple used in 21 places.'>start</a>, <a href='../Y/101.html' title='Multiple used in 32 places.'>fp</a>);
<a id='L31' name='L31'></a>  31     <strong class='reserved'>if</strong>(<a href='../Y/85.html' title='Multiple used in 29 places.'>end</a> == <a href='../Y/223.html' title='Multiple used in 242 places.'>sys</a>-&gt;<a href='../Y/147.html' title='Multiple used in 30 places.'>memsize</a>) <em class='brace'>{</em>
<a id='L32' name='L32'></a>  32         <a href='../S/41939.html#L46' title='Defined at 46 in src/cerr.c.'>setcerr</a>(210, <a href='../Y/96.html' title='Multiple used in 22 places.'>file</a>);    <em class='comment'>/* load - memory overflow */</em>
<a id='L33' name='L33'></a>  33         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/204.html' title='Multiple used in 30 places.'>stderr</a>, "Load error - %d: %s\n", <a href='../Y/32.html' title='Multiple used in 62 places.'>cerr</a>-&gt;<a href='../Y/159.html' title='Multiple used in 57 places.'>num</a>, <a href='../Y/32.html' title='Multiple used in 62 places.'>cerr</a>-&gt;<a href='../Y/153.html' title='Multiple used in 26 places.'>msg</a>);
<a id='L34' name='L34'></a>  34     <em class='brace'>}</em>
<a id='L35' name='L35'></a>  35     <a href='../Y/94.html' title='Multiple used in 8 places.'>fclose</a>(<a href='../Y/101.html' title='Multiple used in 32 places.'>fp</a>);
<a id='L36' name='L36'></a>  36     <strong class='reserved'>return</strong> <a href='../Y/85.html' title='Multiple used in 29 places.'>end</a>;
<a id='L37' name='L37'></a>  37 <em class='brace'>}</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;]<a href='#L15'>[^]</a><a href='#L20'>[v]</a><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] */