gerbvhtdocs/doxygen/gerb__stats_8c-source.html

460 lines
44 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>gerbv: src/gerb_stats.c Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="dir_0fba06f62092f0c8d9ff47b96507f331.html">src</a>
</div>
</div>
<div class="contents">
<h1>gerb_stats.c</h1><a href="gerb__stats_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * gEDA - GNU Electronic Design Automation</span>
<a name="l00003"></a>00003 <span class="comment"> * gerbv_stats.c -- a part of gerbv.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C) Stuart Brorson (sdb@cloud9.net)</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * $Id$</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
<a name="l00010"></a>00010 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00011"></a>00011 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00012"></a>00012 <span class="comment"> * (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<a name="l00017"></a>00017 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00020"></a>00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA</span>
<a name="l00022"></a>00022 <span class="comment"> */</span>
<a name="l00023"></a>00023
<a name="l00029"></a>00029 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#include "config.h"</span>
<a name="l00031"></a>00031 <span class="preprocessor">#endif</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;glib.h&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="gerbv_8h.html" title="The main header file for the libgerbv library.">gerbv.h</a>"</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="gerb__stats_8h.html" title="Header info for the statistics generating functions for RS274X files.">gerb_stats.h</a>"</span>
<a name="l00040"></a>00040
<a name="l00041"></a>00041
<a name="l00042"></a>00042 <span class="comment">/* DEBUG printing. #define DEBUG 1 in config.h to use this fcn. */</span>
<a name="l00043"></a>00043 <span class="preprocessor">#define dprintf if(DEBUG) printf</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00048"></a>00048 <a class="code" href="structgerbv__stats__t.html">gerbv_stats_t</a> *
<a name="l00049"></a><a class="code" href="gerbv_8h.html#5616195ffdb5915a0db83250296b3d79">00049</a> <a class="code" href="gerb__stats_8c.html#5616195ffdb5915a0db83250296b3d79" title="Allocates a new gerbv_stats structure.">gerbv_stats_new</a>(<span class="keywordtype">void</span>) {
<a name="l00050"></a>00050
<a name="l00051"></a>00051 <a class="code" href="structgerbv__stats__t.html">gerbv_stats_t</a> *stats;
<a name="l00052"></a>00052 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *<a class="code" href="structerror__list.html">error_list</a>;
<a name="l00053"></a>00053 gerbv_aperture_list_t *aperture_list;
<a name="l00054"></a>00054 gerbv_aperture_list_t *D_code_list;
<a name="l00055"></a>00055
<a name="l00056"></a>00056 <span class="comment">/* Malloc space for new stats struct. Return NULL if error. */</span>
<a name="l00057"></a>00057 <span class="keywordflow">if</span> ((stats = (<a class="code" href="structgerbv__stats__t.html">gerbv_stats_t</a> *)g_malloc(<span class="keyword">sizeof</span>(<a class="code" href="structgerbv__stats__t.html">gerbv_stats_t</a>))) == NULL) {
<a name="l00058"></a>00058 <span class="keywordflow">return</span> NULL;
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="comment">/* Set new stats struct to zero */</span>
<a name="l00062"></a>00062 memset((<span class="keywordtype">void</span> *)stats, 0, <span class="keyword">sizeof</span>(<a class="code" href="structgerbv__stats__t.html">gerbv_stats_t</a>));
<a name="l00063"></a>00063
<a name="l00064"></a>00064 <span class="comment">/* Initialize error list */</span>
<a name="l00065"></a>00065 error_list = gerbv_stats_new_error_list();
<a name="l00066"></a>00066 <span class="keywordflow">if</span> (error_list == NULL)
<a name="l00067"></a>00067 GERB_FATAL_ERROR(<span class="stringliteral">"malloc error_list failed\n"</span>);
<a name="l00068"></a>00068 stats-&gt;error_list = (<a class="code" href="structerror__list.html">gerbv_error_list_t</a> *) error_list;
<a name="l00069"></a>00069
<a name="l00070"></a>00070 <span class="comment">/* Initialize aperture list */</span>
<a name="l00071"></a>00071 aperture_list = gerbv_stats_new_aperture_list();
<a name="l00072"></a>00072 <span class="keywordflow">if</span> (aperture_list == NULL)
<a name="l00073"></a>00073 GERB_FATAL_ERROR(<span class="stringliteral">"malloc aperture_list failed\n"</span>);
<a name="l00074"></a>00074 stats-&gt;aperture_list = (gerbv_aperture_list_t *) aperture_list;
<a name="l00075"></a>00075
<a name="l00076"></a>00076 <span class="comment">/* Initialize D codes list */</span>
<a name="l00077"></a>00077 D_code_list = gerbv_stats_new_aperture_list();
<a name="l00078"></a>00078 <span class="keywordflow">if</span> (D_code_list == NULL)
<a name="l00079"></a>00079 GERB_FATAL_ERROR(<span class="stringliteral">"malloc D_code_list failed\n"</span>);
<a name="l00080"></a>00080 stats-&gt;D_code_list = (gerbv_aperture_list_t *) D_code_list;
<a name="l00081"></a>00081
<a name="l00082"></a>00082 <span class="keywordflow">return</span> stats;
<a name="l00083"></a>00083 }
<a name="l00084"></a>00084
<a name="l00085"></a>00085
<a name="l00086"></a>00086 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00093"></a>00093 <span class="keywordtype">void</span>
<a name="l00094"></a><a class="code" href="gerbv_8h.html#6764e0c2e4177d9a2d94d6b0b343b031">00094</a> <a class="code" href="gerb__stats_8c.html#6764e0c2e4177d9a2d94d6b0b343b031">gerbv_stats_add_layer</a>(<a class="code" href="structgerbv__stats__t.html">gerbv_stats_t</a> *accum_stats,
<a name="l00095"></a>00095 <a class="code" href="structgerbv__stats__t.html">gerbv_stats_t</a> *input_stats,
<a name="l00096"></a>00096 <span class="keywordtype">int</span> this_layer) {
<a name="l00097"></a>00097
<a name="l00098"></a>00098 dprintf(<span class="stringliteral">"---&gt; Entering gerbv_stats_add_layer ... \n"</span>);
<a name="l00099"></a>00099
<a name="l00100"></a>00100 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *error;
<a name="l00101"></a>00101 gerbv_aperture_list_t *aperture;
<a name="l00102"></a>00102 gerbv_aperture_list_t *D_code;
<a name="l00103"></a>00103
<a name="l00104"></a>00104 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#222196c9c7c5595a26014d438626bd83">layer_count</a>++;
<a name="l00105"></a>00105 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#7fd6404f50ab4c12dba6848145d3a471">G0</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#7fd6404f50ab4c12dba6848145d3a471">G0</a>;
<a name="l00106"></a>00106 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#20c76a50ec0b905fdc0b22c8a93705be">G1</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#20c76a50ec0b905fdc0b22c8a93705be">G1</a>;
<a name="l00107"></a>00107 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#cb7f003824607ce14666ab1c37fbd3d7">G2</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#cb7f003824607ce14666ab1c37fbd3d7">G2</a>;
<a name="l00108"></a>00108 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#dcb2715281495355b6b78e4be0e356c4">G3</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#dcb2715281495355b6b78e4be0e356c4">G3</a>;
<a name="l00109"></a>00109 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#08b90872671b182a6481ff3dfb015e34">G4</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#08b90872671b182a6481ff3dfb015e34">G4</a>;
<a name="l00110"></a>00110 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#c6c5cb4a5ac073262f7d945ecf19cf40">G10</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#c6c5cb4a5ac073262f7d945ecf19cf40">G10</a>;
<a name="l00111"></a>00111 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#76a89f69381b84fe7fbcc0f9c008cbe2">G11</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#76a89f69381b84fe7fbcc0f9c008cbe2">G11</a>;
<a name="l00112"></a>00112 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#809d12c600c5e436becefa6ac68a9899">G12</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#809d12c600c5e436becefa6ac68a9899">G12</a>;
<a name="l00113"></a>00113 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#db97474c53d0d6556aa0db191290343b">G36</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#db97474c53d0d6556aa0db191290343b">G36</a>;
<a name="l00114"></a>00114 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#36a212db6e2b56accbd171d323646f0c">G37</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#36a212db6e2b56accbd171d323646f0c">G37</a>;
<a name="l00115"></a>00115 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#866c0a5ce629c59e90c3bdf3454bdb4c">G54</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#866c0a5ce629c59e90c3bdf3454bdb4c">G54</a>;
<a name="l00116"></a>00116 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#1ecbf942f961d3924ac13f4a0e2eb8cb">G55</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#1ecbf942f961d3924ac13f4a0e2eb8cb">G55</a>;
<a name="l00117"></a>00117 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#77266675215ecba5beb327dd8040c0c2">G70</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#77266675215ecba5beb327dd8040c0c2">G70</a>;
<a name="l00118"></a>00118 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#fa38f315e69cd1afc4d5ac2ed28c82f0">G71</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#fa38f315e69cd1afc4d5ac2ed28c82f0">G71</a>;
<a name="l00119"></a>00119 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#342f86af65ebbb3662b48c244579f99b">G74</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#342f86af65ebbb3662b48c244579f99b">G74</a>;
<a name="l00120"></a>00120 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#ba868ff9baaf7c34b63ea45735dd60f5">G75</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#ba868ff9baaf7c34b63ea45735dd60f5">G75</a>;
<a name="l00121"></a>00121 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#ede29de3a70dd8923119063f41e38dc5">G90</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#ede29de3a70dd8923119063f41e38dc5">G90</a>;
<a name="l00122"></a>00122 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#e2ea45ad9b2d7905bf5e53cab19e68f8">G91</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#e2ea45ad9b2d7905bf5e53cab19e68f8">G91</a>;
<a name="l00123"></a>00123 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#2cf538b65e8b825c9097b6e4c67262b8">G_unknown</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#2cf538b65e8b825c9097b6e4c67262b8">G_unknown</a>;
<a name="l00124"></a>00124
<a name="l00125"></a>00125 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#2ef56b5b06f489df9395bd773952a33b">D1</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#2ef56b5b06f489df9395bd773952a33b">D1</a>;
<a name="l00126"></a>00126 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#7beaff4100609e1ffa0142ec4545ba78">D2</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#7beaff4100609e1ffa0142ec4545ba78">D2</a>;
<a name="l00127"></a>00127 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#e237cc36435ea2b6606ce8a3c2c4165a">D3</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#e237cc36435ea2b6606ce8a3c2c4165a">D3</a>;
<a name="l00128"></a>00128 <span class="comment">/* Create list of user-defined D codes from aperture list */</span>
<a name="l00129"></a>00129 <span class="keywordflow">for</span> (D_code = input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#8bdcc430dea32309c7d102e4568862ce">D_code_list</a>;
<a name="l00130"></a>00130 D_code != NULL;
<a name="l00131"></a>00131 D_code = D_code-&gt;next) {
<a name="l00132"></a>00132 <span class="keywordflow">if</span> (D_code-&gt;number != -1) {
<a name="l00133"></a>00133 dprintf(<span class="stringliteral">" .... In gerbv_stats_add_layer, D code section, adding number = %d to accum_stats D list ...\n"</span>,
<a name="l00134"></a>00134 D_code-&gt;number);
<a name="l00135"></a>00135 gerbv_stats_add_to_D_list(accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#8bdcc430dea32309c7d102e4568862ce">D_code_list</a>,
<a name="l00136"></a>00136 D_code-&gt;number);
<a name="l00137"></a>00137 dprintf(<span class="stringliteral">" .... In gerbv_stats_add_layer, D code section, calling increment_D_count with count %d ...\n"</span>,
<a name="l00138"></a>00138 D_code-&gt;count);
<a name="l00139"></a>00139 gerbv_stats_increment_D_list_count(accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#8bdcc430dea32309c7d102e4568862ce">D_code_list</a>,
<a name="l00140"></a>00140 D_code-&gt;number,
<a name="l00141"></a>00141 D_code-&gt;count,
<a name="l00142"></a>00142 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#9ab39063b9449f7ee77ed0fdff1913e9">error_list</a>);
<a name="l00143"></a>00143 }
<a name="l00144"></a>00144 }
<a name="l00145"></a>00145 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#9d37781803d97f26f24165d359ebc965">D_unknown</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#9d37781803d97f26f24165d359ebc965">D_unknown</a>;
<a name="l00146"></a>00146 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#55e13bae20c8e1e25856da76a254dd9a">D_error</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#55e13bae20c8e1e25856da76a254dd9a">D_error</a>;
<a name="l00147"></a>00147
<a name="l00148"></a>00148 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#892f665ca815eb68e06a545a5f5dcab1">M0</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#892f665ca815eb68e06a545a5f5dcab1">M0</a>;
<a name="l00149"></a>00149 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#3a65b98ad8962039eb8b105185f56e06">M1</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#3a65b98ad8962039eb8b105185f56e06">M1</a>;
<a name="l00150"></a>00150 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#22c9557f482e15fdae13b31bf2365bc8">M2</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#22c9557f482e15fdae13b31bf2365bc8">M2</a>;
<a name="l00151"></a>00151 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#24af01afcc2942563feba4b9a2542246">M_unknown</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#24af01afcc2942563feba4b9a2542246">M_unknown</a>;
<a name="l00152"></a>00152
<a name="l00153"></a>00153 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#f4244f8911d9d0081b0f2805f66c0c3a">X</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#f4244f8911d9d0081b0f2805f66c0c3a">X</a>;
<a name="l00154"></a>00154 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#d401e15e4639c5e56f81de30418b7ac6">Y</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#d401e15e4639c5e56f81de30418b7ac6">Y</a>;
<a name="l00155"></a>00155 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#755e83eace8027661c27454569d3b5e2">I</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#755e83eace8027661c27454569d3b5e2">I</a>;
<a name="l00156"></a>00156 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#5c8ac440fb01f7be01ff4f2be1c7d2ae">J</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#5c8ac440fb01f7be01ff4f2be1c7d2ae">J</a>;
<a name="l00157"></a>00157
<a name="l00158"></a>00158 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#104c217a2d2d1b508a50e14ba20a89ba">star</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#104c217a2d2d1b508a50e14ba20a89ba">star</a>;
<a name="l00159"></a>00159 accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#bbd09c0352bef256b7128020359939c3">unknown</a> += input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#bbd09c0352bef256b7128020359939c3">unknown</a>;
<a name="l00160"></a>00160
<a name="l00161"></a>00161 <span class="comment">/* ==== Now deal with the error list ==== */</span>
<a name="l00162"></a>00162 <span class="keywordflow">for</span> (error = input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#9ab39063b9449f7ee77ed0fdff1913e9">error_list</a>;
<a name="l00163"></a>00163 error != NULL;
<a name="l00164"></a>00164 error = error-&gt;<a class="code" href="structerror__list.html#8db9d6389d86e186f5436221713a19b4">next</a>) {
<a name="l00165"></a>00165 <span class="keywordflow">if</span> (error-&gt;<a class="code" href="structerror__list.html#a4e99bd82209e7f7e1a0d8207a4f9536">error_text</a> != NULL) {
<a name="l00166"></a>00166 gerbv_stats_add_error(accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#9ab39063b9449f7ee77ed0fdff1913e9">error_list</a>,
<a name="l00167"></a>00167 this_layer,
<a name="l00168"></a>00168 error-&gt;<a class="code" href="structerror__list.html#a4e99bd82209e7f7e1a0d8207a4f9536">error_text</a>,
<a name="l00169"></a>00169 error-&gt;<a class="code" href="structerror__list.html#a4d844a4cfd7352d6f3de702cc1c89ae">type</a>);
<a name="l00170"></a>00170 }
<a name="l00171"></a>00171 }
<a name="l00172"></a>00172
<a name="l00173"></a>00173 <span class="comment">/* ==== Now deal with the aperture list ==== */</span>
<a name="l00174"></a>00174 <span class="keywordflow">for</span> (aperture = input_stats-&gt;<a class="code" href="structgerbv__stats__t.html#69ab56a163b40a24ba13cb66d69490cc">aperture_list</a>;
<a name="l00175"></a>00175 aperture != NULL;
<a name="l00176"></a>00176 aperture = aperture-&gt;next) {
<a name="l00177"></a>00177 <span class="keywordflow">if</span> (aperture-&gt;number != -1) {
<a name="l00178"></a>00178 gerbv_stats_add_aperture(accum_stats-&gt;<a class="code" href="structgerbv__stats__t.html#69ab56a163b40a24ba13cb66d69490cc">aperture_list</a>,
<a name="l00179"></a>00179 this_layer,
<a name="l00180"></a>00180 aperture-&gt;number,
<a name="l00181"></a>00181 aperture-&gt;type,
<a name="l00182"></a>00182 aperture-&gt;parameter);
<a name="l00183"></a>00183 }
<a name="l00184"></a>00184 }
<a name="l00185"></a>00185
<a name="l00186"></a>00186 dprintf(<span class="stringliteral">"&lt;---- .... Leaving gerbv_stats_add_layer. \n"</span>);
<a name="l00187"></a>00187
<a name="l00188"></a>00188 <span class="keywordflow">return</span>;
<a name="l00189"></a>00189 }
<a name="l00190"></a>00190
<a name="l00191"></a>00191 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00192"></a>00192 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *
<a name="l00193"></a>00193 gerbv_stats_new_error_list() {
<a name="l00194"></a>00194 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *<a class="code" href="structerror__list.html">error_list</a>;
<a name="l00195"></a>00195
<a name="l00196"></a>00196 <span class="comment">/* Malloc space for new error_list struct. Return NULL if error. */</span>
<a name="l00197"></a>00197 <span class="keywordflow">if</span> ((error_list = (<a class="code" href="structerror__list.html">gerbv_error_list_t</a> *)g_malloc(<span class="keyword">sizeof</span>(<a class="code" href="structerror__list.html">gerbv_error_list_t</a>))) == NULL) {
<a name="l00198"></a>00198 <span class="keywordflow">return</span> NULL;
<a name="l00199"></a>00199 }
<a name="l00200"></a>00200
<a name="l00201"></a>00201 error_list-&gt;<a class="code" href="structerror__list.html#c143b0eb32c4b794c32911857ee991d1">layer</a> = -1;
<a name="l00202"></a>00202 error_list-&gt;<a class="code" href="structerror__list.html#a4e99bd82209e7f7e1a0d8207a4f9536">error_text</a> = NULL;
<a name="l00203"></a>00203 error_list-&gt;<a class="code" href="structerror__list.html#8db9d6389d86e186f5436221713a19b4">next</a> = NULL;
<a name="l00204"></a>00204 <span class="keywordflow">return</span> error_list;
<a name="l00205"></a>00205 }
<a name="l00206"></a>00206
<a name="l00207"></a>00207
<a name="l00208"></a>00208 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00209"></a>00209 <span class="keywordtype">void</span>
<a name="l00210"></a>00210 gerbv_stats_add_error(<a class="code" href="structerror__list.html">gerbv_error_list_t</a> *error_list_in,
<a name="l00211"></a>00211 <span class="keywordtype">int</span> layer, <span class="keyword">const</span> <span class="keywordtype">char</span> *error_text,
<a name="l00212"></a>00212 <a class="code" href="gerbv_8h.html#748b853fa7b95afbc791e995e43150d3">gerbv_message_type_t</a> type) {
<a name="l00213"></a>00213
<a name="l00214"></a>00214 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *error_list_new;
<a name="l00215"></a>00215 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *error_last = NULL;
<a name="l00216"></a>00216 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *error;
<a name="l00217"></a>00217
<a name="l00218"></a>00218 <span class="comment">/* Replace embedded error messages */</span>
<a name="l00219"></a>00219 <span class="keywordflow">switch</span> (type) {
<a name="l00220"></a>00220 <span class="keywordflow">case</span> <a class="code" href="gerbv_8h.html#748b853fa7b95afbc791e995e43150d38f6a52b4917894c78a88898348e54cbb">GERBV_MESSAGE_FATAL</a>:
<a name="l00221"></a>00221 GERB_FATAL_ERROR(error_text);
<a name="l00222"></a>00222 <span class="keywordflow">break</span>;
<a name="l00223"></a>00223 <span class="keywordflow">case</span> <a class="code" href="gerbv_8h.html#748b853fa7b95afbc791e995e43150d31e862b571deb98ab0dac738451458d12">GERBV_MESSAGE_ERROR</a>:
<a name="l00224"></a>00224 GERB_COMPILE_ERROR(error_text);
<a name="l00225"></a>00225 <span class="keywordflow">break</span>;
<a name="l00226"></a>00226 <span class="keywordflow">case</span> <a class="code" href="gerbv_8h.html#748b853fa7b95afbc791e995e43150d3bbb704bfe4710b05d75a865e59fe4e72">GERBV_MESSAGE_WARNING</a>:
<a name="l00227"></a>00227 GERB_COMPILE_WARNING(error_text);
<a name="l00228"></a>00228 <span class="keywordflow">break</span>;
<a name="l00229"></a>00229 <span class="keywordflow">case</span> <a class="code" href="gerbv_8h.html#748b853fa7b95afbc791e995e43150d381c8a82d58481911eecdacbf5ada3de2">GERBV_MESSAGE_NOTE</a>:
<a name="l00230"></a>00230 <span class="keywordflow">break</span>;
<a name="l00231"></a>00231 }
<a name="l00232"></a>00232
<a name="l00233"></a>00233 <span class="comment">/* First handle case where this is the first list element */</span>
<a name="l00234"></a>00234 <span class="keywordflow">if</span> (error_list_in-&gt;<a class="code" href="structerror__list.html#a4e99bd82209e7f7e1a0d8207a4f9536">error_text</a> == NULL) {
<a name="l00235"></a>00235 error_list_in-&gt;<a class="code" href="structerror__list.html#c143b0eb32c4b794c32911857ee991d1">layer</a> = layer;
<a name="l00236"></a>00236 error_list_in-&gt;<a class="code" href="structerror__list.html#a4e99bd82209e7f7e1a0d8207a4f9536">error_text</a> = g_strdup_printf(<span class="stringliteral">"%s"</span>, error_text);
<a name="l00237"></a>00237 error_list_in-&gt;<a class="code" href="structerror__list.html#a4d844a4cfd7352d6f3de702cc1c89ae">type</a> = type;
<a name="l00238"></a>00238 error_list_in-&gt;<a class="code" href="structerror__list.html#8db9d6389d86e186f5436221713a19b4">next</a> = NULL;
<a name="l00239"></a>00239 <span class="keywordflow">return</span>;
<a name="l00240"></a>00240 }
<a name="l00241"></a>00241
<a name="l00242"></a>00242 <span class="comment">/* Next check to see if this error is already in the list */</span>
<a name="l00243"></a>00243 <span class="keywordflow">for</span>(error = error_list_in; error != NULL; error = error-&gt;<a class="code" href="structerror__list.html#8db9d6389d86e186f5436221713a19b4">next</a>) {
<a name="l00244"></a>00244 <span class="keywordflow">if</span> ((strcmp(error-&gt;<a class="code" href="structerror__list.html#a4e99bd82209e7f7e1a0d8207a4f9536">error_text</a>, error_text) == 0) &amp;&amp;
<a name="l00245"></a>00245 (error-&gt;<a class="code" href="structerror__list.html#c143b0eb32c4b794c32911857ee991d1">layer</a> == layer) ) {
<a name="l00246"></a>00246 <span class="keywordflow">return</span>; <span class="comment">/* This error text is already in the error list */</span>
<a name="l00247"></a>00247 }
<a name="l00248"></a>00248 error_last = error; <span class="comment">/* point to last element in error list */</span>
<a name="l00249"></a>00249 }
<a name="l00250"></a>00250 <span class="comment">/* This error text is unique. Therefore, add it to the list */</span>
<a name="l00251"></a>00251
<a name="l00252"></a>00252 <span class="comment">/* Now malloc space for new error list element */</span>
<a name="l00253"></a>00253 error_list_new = (<a class="code" href="structerror__list.html">gerbv_error_list_t</a> *) g_malloc(<span class="keyword">sizeof</span>(<a class="code" href="structerror__list.html">gerbv_error_list_t</a>));
<a name="l00254"></a>00254 <span class="keywordflow">if</span> (error_list_new == NULL) {
<a name="l00255"></a>00255 GERB_FATAL_ERROR(<span class="stringliteral">"malloc error_list failed\n"</span>);
<a name="l00256"></a>00256 }
<a name="l00257"></a>00257
<a name="l00258"></a>00258 <span class="comment">/* Set member elements */</span>
<a name="l00259"></a>00259 error_list_new-&gt;<a class="code" href="structerror__list.html#c143b0eb32c4b794c32911857ee991d1">layer</a> = layer;
<a name="l00260"></a>00260 error_list_new-&gt;<a class="code" href="structerror__list.html#a4e99bd82209e7f7e1a0d8207a4f9536">error_text</a> = g_strdup_printf(<span class="stringliteral">"%s"</span>, error_text);
<a name="l00261"></a>00261 error_list_new-&gt;<a class="code" href="structerror__list.html#a4d844a4cfd7352d6f3de702cc1c89ae">type</a> = type;
<a name="l00262"></a>00262 error_list_new-&gt;<a class="code" href="structerror__list.html#8db9d6389d86e186f5436221713a19b4">next</a> = NULL;
<a name="l00263"></a>00263 error_last-&gt;<a class="code" href="structerror__list.html#8db9d6389d86e186f5436221713a19b4">next</a> = error_list_new;
<a name="l00264"></a>00264
<a name="l00265"></a>00265 <span class="keywordflow">return</span>;
<a name="l00266"></a>00266 }
<a name="l00267"></a>00267
<a name="l00268"></a>00268 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00269"></a>00269 gerbv_aperture_list_t *
<a name="l00270"></a>00270 gerbv_stats_new_aperture_list() {
<a name="l00271"></a>00271 gerbv_aperture_list_t *aperture_list;
<a name="l00272"></a>00272 <span class="keywordtype">int</span> i;
<a name="l00273"></a>00273
<a name="l00274"></a>00274 dprintf(<span class="stringliteral">"Mallocing new gerb aperture list\n"</span>);
<a name="l00275"></a>00275 <span class="comment">/* Malloc space for new aperture_list struct. Return NULL if error. */</span>
<a name="l00276"></a>00276 <span class="keywordflow">if</span> ((aperture_list = (gerbv_aperture_list_t *)g_malloc(<span class="keyword">sizeof</span>(gerbv_aperture_list_t)))
<a name="l00277"></a>00277 == NULL) {
<a name="l00278"></a>00278 <span class="keywordflow">return</span> NULL;
<a name="l00279"></a>00279 }
<a name="l00280"></a>00280
<a name="l00281"></a>00281 dprintf(<span class="stringliteral">" Placing values in certain structs.\n"</span>);
<a name="l00282"></a>00282 aperture_list-&gt;number = -1;
<a name="l00283"></a>00283 aperture_list-&gt;count = 0;
<a name="l00284"></a>00284 aperture_list-&gt;type = 0;
<a name="l00285"></a>00285 <span class="keywordflow">for</span> (i = 0; i&lt;5; i++) {
<a name="l00286"></a>00286 aperture_list-&gt;parameter[i] = 0.0;
<a name="l00287"></a>00287 }
<a name="l00288"></a>00288 aperture_list-&gt;next = NULL;
<a name="l00289"></a>00289 <span class="keywordflow">return</span> aperture_list;
<a name="l00290"></a>00290 }
<a name="l00291"></a>00291
<a name="l00292"></a>00292
<a name="l00293"></a>00293 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00294"></a>00294 <span class="keywordtype">void</span>
<a name="l00295"></a>00295 gerbv_stats_add_aperture(gerbv_aperture_list_t *aperture_list_in,
<a name="l00296"></a>00296 <span class="keywordtype">int</span> layer, <span class="keywordtype">int</span> number, <a class="code" href="gerbv_8h.html#c99303749c4afdc6a24eafbfa37e1237">gerbv_aperture_type_t</a> type,
<a name="l00297"></a>00297 <span class="keywordtype">double</span> parameter[5]) {
<a name="l00298"></a>00298
<a name="l00299"></a>00299 gerbv_aperture_list_t *aperture_list_new;
<a name="l00300"></a>00300 gerbv_aperture_list_t *aperture_last = NULL;
<a name="l00301"></a>00301 gerbv_aperture_list_t *aperture;
<a name="l00302"></a>00302 <span class="keywordtype">int</span> i;
<a name="l00303"></a>00303
<a name="l00304"></a>00304 dprintf(<span class="stringliteral">" ---&gt; Entering gerbv_stats_add_aperture ....\n"</span>);
<a name="l00305"></a>00305
<a name="l00306"></a>00306 <span class="comment">/* First handle case where this is the first list element */</span>
<a name="l00307"></a>00307 <span class="keywordflow">if</span> (aperture_list_in-&gt;number == -1) {
<a name="l00308"></a>00308 dprintf(<span class="stringliteral">" .... Adding first aperture to aperture list ... \n"</span>);
<a name="l00309"></a>00309 dprintf(<span class="stringliteral">" .... Aperture type = %d ... \n"</span>, type);
<a name="l00310"></a>00310 aperture_list_in-&gt;number = number;
<a name="l00311"></a>00311 aperture_list_in-&gt;type = type;
<a name="l00312"></a>00312 aperture_list_in-&gt;layer = layer;
<a name="l00313"></a>00313 <span class="keywordflow">for</span>(i=0; i&lt;5; i++) {
<a name="l00314"></a>00314 aperture_list_in-&gt;parameter[i] = parameter[i];
<a name="l00315"></a>00315 }
<a name="l00316"></a>00316 aperture_list_in-&gt;next = NULL;
<a name="l00317"></a>00317 dprintf(<span class="stringliteral">" &lt;--- .... Leaving gerbv_stats_add_aperture.\n"</span>);
<a name="l00318"></a>00318 <span class="keywordflow">return</span>;
<a name="l00319"></a>00319 }
<a name="l00320"></a>00320
<a name="l00321"></a>00321 <span class="comment">/* Next check to see if this aperture is already in the list */</span>
<a name="l00322"></a>00322 <span class="keywordflow">for</span>(aperture = aperture_list_in;
<a name="l00323"></a>00323 aperture != NULL;
<a name="l00324"></a>00324 aperture = aperture-&gt;next) {
<a name="l00325"></a>00325 <span class="keywordflow">if</span> ((aperture-&gt;number == number) &amp;&amp;
<a name="l00326"></a>00326 (aperture-&gt;layer == layer) ) {
<a name="l00327"></a>00327 dprintf(<span class="stringliteral">" .... This aperture is already in the list ... \n"</span>);
<a name="l00328"></a>00328 dprintf(<span class="stringliteral">" &lt;--- .... Leaving gerbv_stats_add_aperture.\n"</span>);
<a name="l00329"></a>00329 <span class="keywordflow">return</span>;
<a name="l00330"></a>00330 }
<a name="l00331"></a>00331 aperture_last = aperture; <span class="comment">/* point to last element in list */</span>
<a name="l00332"></a>00332 }
<a name="l00333"></a>00333 <span class="comment">/* This aperture number is unique. Therefore, add it to the list */</span>
<a name="l00334"></a>00334 dprintf(<span class="stringliteral">" .... Adding another aperture to list ... \n"</span>);
<a name="l00335"></a>00335 dprintf(<span class="stringliteral">" .... Aperture type = %d ... \n"</span>, type);
<a name="l00336"></a>00336
<a name="l00337"></a>00337 <span class="comment">/* Now malloc space for new aperture list element */</span>
<a name="l00338"></a>00338 aperture_list_new = (gerbv_aperture_list_t *) g_malloc(<span class="keyword">sizeof</span>(gerbv_aperture_list_t));
<a name="l00339"></a>00339 <span class="keywordflow">if</span> (aperture_list_new == NULL) {
<a name="l00340"></a>00340 GERB_FATAL_ERROR(<span class="stringliteral">"malloc aperture_list failed\n"</span>);
<a name="l00341"></a>00341 }
<a name="l00342"></a>00342
<a name="l00343"></a>00343 <span class="comment">/* Set member elements */</span>
<a name="l00344"></a>00344 aperture_list_new-&gt;layer = layer;
<a name="l00345"></a>00345 aperture_list_new-&gt;number = number;
<a name="l00346"></a>00346 aperture_list_new-&gt;type = type;
<a name="l00347"></a>00347 aperture_list_new-&gt;next = NULL;
<a name="l00348"></a>00348 <span class="keywordflow">for</span>(i=0; i&lt;5; i++) {
<a name="l00349"></a>00349 aperture_list_new-&gt;parameter[i] = parameter[i];
<a name="l00350"></a>00350 }
<a name="l00351"></a>00351 aperture_last-&gt;next = aperture_list_new;
<a name="l00352"></a>00352
<a name="l00353"></a>00353 dprintf(<span class="stringliteral">" &lt;--- .... Leaving gerbv_stats_add_aperture.\n"</span>);
<a name="l00354"></a>00354
<a name="l00355"></a>00355 <span class="keywordflow">return</span>;
<a name="l00356"></a>00356 }
<a name="l00357"></a>00357
<a name="l00358"></a>00358 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00359"></a>00359 <span class="keywordtype">void</span>
<a name="l00360"></a>00360 gerbv_stats_add_to_D_list(gerbv_aperture_list_t *D_list_in,
<a name="l00361"></a>00361 <span class="keywordtype">int</span> number) {
<a name="l00362"></a>00362
<a name="l00363"></a>00363 gerbv_aperture_list_t *D_list;
<a name="l00364"></a>00364 gerbv_aperture_list_t *D_list_last=NULL;
<a name="l00365"></a>00365 gerbv_aperture_list_t *D_list_new;
<a name="l00366"></a>00366
<a name="l00367"></a>00367 dprintf(<span class="stringliteral">" ----&gt; Entering add_to_D_list, numbr = %d\n"</span>, number);
<a name="l00368"></a>00368
<a name="l00369"></a>00369 <span class="comment">/* First handle case where this is the first list element */</span>
<a name="l00370"></a>00370 <span class="keywordflow">if</span> (D_list_in-&gt;number == -1) {
<a name="l00371"></a>00371 dprintf(<span class="stringliteral">" .... Adding first D code to D code list ... \n"</span>);
<a name="l00372"></a>00372 dprintf(<span class="stringliteral">" .... Aperture number = %d ... \n"</span>, number);
<a name="l00373"></a>00373 D_list_in-&gt;number = number;
<a name="l00374"></a>00374 D_list_in-&gt;count = 0;
<a name="l00375"></a>00375 D_list_in-&gt;next = NULL;
<a name="l00376"></a>00376 dprintf(<span class="stringliteral">" &lt;--- .... Leaving add_to_D_list.\n"</span>);
<a name="l00377"></a>00377 <span class="keywordflow">return</span>;
<a name="l00378"></a>00378 }
<a name="l00379"></a>00379
<a name="l00380"></a>00380 <span class="comment">/* Look to see if this is already in list */</span>
<a name="l00381"></a>00381 <span class="keywordflow">for</span>(D_list = D_list_in;
<a name="l00382"></a>00382 D_list != NULL;
<a name="l00383"></a>00383 D_list = D_list-&gt;next) {
<a name="l00384"></a>00384 <span class="keywordflow">if</span> (D_list-&gt;number == number) {
<a name="l00385"></a>00385 dprintf(<span class="stringliteral">" .... Found in D list .... \n"</span>);
<a name="l00386"></a>00386 dprintf(<span class="stringliteral">" &lt;--- .... Leaving add_to_D_list.\n"</span>);
<a name="l00387"></a>00387 <span class="keywordflow">return</span>;
<a name="l00388"></a>00388 }
<a name="l00389"></a>00389 D_list_last = D_list; <span class="comment">/* point to last element in list */</span>
<a name="l00390"></a>00390 }
<a name="l00391"></a>00391
<a name="l00392"></a>00392 <span class="comment">/* This aperture number is unique. Therefore, add it to the list */</span>
<a name="l00393"></a>00393 dprintf(<span class="stringliteral">" .... Adding another D code to D code list ... \n"</span>);
<a name="l00394"></a>00394
<a name="l00395"></a>00395 <span class="comment">/* Malloc space for new aperture list element */</span>
<a name="l00396"></a>00396 D_list_new = (gerbv_aperture_list_t *) g_malloc(<span class="keyword">sizeof</span>(gerbv_aperture_list_t));
<a name="l00397"></a>00397 <span class="keywordflow">if</span> (D_list_new == NULL) {
<a name="l00398"></a>00398 GERB_FATAL_ERROR(<span class="stringliteral">"malloc D_list failed\n"</span>);
<a name="l00399"></a>00399 }
<a name="l00400"></a>00400
<a name="l00401"></a>00401 <span class="comment">/* Set member elements */</span>
<a name="l00402"></a>00402 D_list_new-&gt;number = number;
<a name="l00403"></a>00403 D_list_new-&gt;count = 0;
<a name="l00404"></a>00404 D_list_new-&gt;next = NULL;
<a name="l00405"></a>00405 D_list_last-&gt;next = D_list_new;
<a name="l00406"></a>00406
<a name="l00407"></a>00407 dprintf(<span class="stringliteral">" &lt;--- .... Leaving add_to_D_list.\n"</span>);
<a name="l00408"></a>00408
<a name="l00409"></a>00409 <span class="keywordflow">return</span>;
<a name="l00410"></a>00410 }
<a name="l00411"></a>00411
<a name="l00412"></a>00412 <span class="comment">/* ------------------------------------------------------- */</span>
<a name="l00413"></a>00413 <span class="keywordtype">int</span>
<a name="l00414"></a>00414 gerbv_stats_increment_D_list_count(gerbv_aperture_list_t *D_list_in,
<a name="l00415"></a>00415 <span class="keywordtype">int</span> number,
<a name="l00416"></a>00416 <span class="keywordtype">int</span> count,
<a name="l00417"></a>00417 <a class="code" href="structerror__list.html">gerbv_error_list_t</a> *error) {
<a name="l00418"></a>00418
<a name="l00419"></a>00419 gerbv_aperture_list_t *D_list;
<a name="l00420"></a>00420
<a name="l00421"></a>00421 dprintf(<span class="stringliteral">" Entering inc_D_list_count, code = D%d, input count to add = %d\n"</span>, number, count);
<a name="l00422"></a>00422
<a name="l00423"></a>00423 <span class="comment">/* Find D code in list and increment it */</span>
<a name="l00424"></a>00424 <span class="keywordflow">for</span>(D_list = D_list_in;
<a name="l00425"></a>00425 D_list != NULL;
<a name="l00426"></a>00426 D_list = D_list-&gt;next) {
<a name="l00427"></a>00427 <span class="keywordflow">if</span> (D_list-&gt;number == number) {
<a name="l00428"></a>00428 dprintf(<span class="stringliteral">" old count = %d\n"</span>, D_list-&gt;count);
<a name="l00429"></a>00429 D_list-&gt;count += count; <span class="comment">/* Add to this aperture count, then return */</span>
<a name="l00430"></a>00430 dprintf(<span class="stringliteral">" updated count = %d\n"</span>, D_list-&gt;count);
<a name="l00431"></a>00431 <span class="keywordflow">return</span> 0; <span class="comment">/* Return 0 for success */</span>
<a name="l00432"></a>00432 }
<a name="l00433"></a>00433 }
<a name="l00434"></a>00434
<a name="l00435"></a>00435 <span class="comment">/* This D number is not defined. Therefore, flag error */</span>
<a name="l00436"></a>00436 dprintf(<span class="stringliteral">" .... Didn't find this D code in defined list .... \n"</span>);
<a name="l00437"></a>00437 dprintf(<span class="stringliteral">" &lt;--- .... Leaving inc_D_list_count.\n"</span>);
<a name="l00438"></a>00438 gerbv_stats_add_error(error,
<a name="l00439"></a>00439 -1,
<a name="l00440"></a>00440 <span class="stringliteral">"Undefined aperture number called out in D code.\n"</span>,
<a name="l00441"></a>00441 <a class="code" href="gerbv_8h.html#748b853fa7b95afbc791e995e43150d31e862b571deb98ab0dac738451458d12">GERBV_MESSAGE_ERROR</a>);
<a name="l00442"></a>00442 <span class="keywordflow">return</span> -1; <span class="comment">/* Return -1 for failure */</span>
<a name="l00443"></a>00443 }
<a name="l00444"></a>00444
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Aug 19 00:14:48 2008 for gerbv by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>