X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnon_gui%2Fcreate_bmp_for_circ_in_rect.c;fp=src%2Fnon_gui%2Fcreate_bmp_for_circ_in_rect.c;h=0000000000000000000000000000000000000000;hb=ec2d2ab8e90a0c4b86ffc2385655c2fb27fcacd9;hp=6a988099ec67fc630b2af5e483a01a960a25f4e4;hpb=795fb988211df268a8f7724bd2f4493c594abee9;p=debian%2Fatlc diff --git a/src/non_gui/create_bmp_for_circ_in_rect.c b/src/non_gui/create_bmp_for_circ_in_rect.c deleted file mode 100644 index 6a98809..0000000 --- a/src/non_gui/create_bmp_for_circ_in_rect.c +++ /dev/null @@ -1,98 +0,0 @@ -/* atlc - arbitrary transmission line calculator, for the analysis of -transmission lines are directional couplers. - -Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB). - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either package_version 2 -of the License, or (at your option) any later package_version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -USA. - -Dr. David Kirkby, e-mail drkirkby at ntlworld.com - -*/ - -/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular -inner and rectangular outer */ -#include "config.h" - - -#ifdef HAVE_STDLIB_H -#include -#endif - -#include "definitions.h" -#include "exit_codes.h" - -#ifdef WINDOWS -#pragma hrdstop -#include -#endif - -double dd, WW, HH, xx, yy, Er1; -int d, W, H, x, y; - -/* The following are only needed, so I can link in two -convert_circ_in_circ_dimensions_to_integers.c -and -convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c -*/ - -double Er2; - -int verbose=FALSE; -int lowest=2500, highest=10000; -int fileflag=FALSE; - - -extern int main(int argc, char **argv) /* Read parameters from command line here */ -{ - int bmp_size=DEFAULT_BMP_SIZE; - int q; - struct transmission_line_properties not_used; - FILE *image_data_fp=stdout; - - /* The following just keeps the compiler happy, as not_used is - not used in this case */ - not_used.W=1; - - while((q=get_options(argc,argv,"b:v")) != -1) - switch (q) - { - case 'b': - bmp_size=atol(my_optarg); - break; - case 'v': - verbose=TRUE; - break; - case '?': - printf("read a ? exiting\n"); - } - if(argc-my_optind ==7) - { - dd=atof(argv[my_optind]); - WW=atof(argv[my_optind+1]); - HH=atof(argv[my_optind+2]); - xx=atof(argv[my_optind+3]); - yy=atof(argv[my_optind+4]); - Er1=atof(argv[my_optind+5]); - if((image_data_fp=fopen(argv[my_optind+6],"wb"))==NULL) - exit_with_msg_and_exit_code("Can't open file in create_bmp_for_circ_in_rect.c",CANT_OPEN_FOR_WRITING); - check_parameters_of_create_bmp_for_circ_in_rect(); - convert_create_bmp_for_circ_in_rect_dimensions_to_integers(bmp_size); - write_bitmap(image_data_fp, not_used); - } - else - usage_create_bmp_for_circ_in_rect(); - return(0); -}