gerbv  2.10.1-dev~93f1b5
gerb_stats.h
Go to the documentation of this file.
1 /*
2  * gEDA - GNU Electronic Design Automation
3  * gerbv_stats.h -- a part of gerbv.
4  *
5  * Copyright (C) 2007 Stuart Brorson (sdb@cloud9.net)
6  *
7  * $Id$
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
22  */
23 
29 #ifndef gerb_stats_H
30 #define gerb_stats_H
31 
32 /* =================== Prototypes ================ */
33 gerbv_error_list_t* gerbv_stats_new_error_list(void);
34 void gerbv_stats_printf(gerbv_error_list_t* list, gerbv_message_type_t type, int layer, const char* text, ...)
35  __attribute__((format(printf, 4, 5)));
36 void
37 gerbv_stats_add_error(gerbv_error_list_t* error_list_in, int layer, const char* error_text, gerbv_message_type_t type);
38 #define gerbv_escape_char(c) ((char*)(int[]) { gerbv_escape_char_return_int((c)) })
40 
41 gerbv_aperture_list_t* gerbv_stats_new_aperture_list(void);
42 void gerbv_stats_add_aperture(
43  gerbv_aperture_list_t* aperture_list_in, int layer, int number, gerbv_aperture_type_t type, double parameter[5]
44  );
45 void gerbv_stats_add_to_D_list(gerbv_aperture_list_t* D_list_in, int number);
46 int
47 gerbv_stats_increment_D_list_count(gerbv_aperture_list_t* D_list_in, int number, int count, gerbv_error_list_t* error);
48 
49 #endif /* gerb_stats_H */
int gerbv_escape_char_return_int(char c)
Escape special ASCII char (' ', '\0').
Definition: gerb_stats.c:242
gerbv_message_type_t
Definition: gerbv.h:140
gerbv_aperture_type_t
Definition: gerbv.h:150