1 #ifndef REGIONSH 2 #define REGIONSH 3 4 /* 5 * $Id: regions.h,v 1.6 2000/08/10 21:02:51 danny Exp $ 6 * 7 * Copyright � 1992, 1993 Free Software Foundation, Inc. 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, or (at your option) 12 * 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 software; see the file COPYING. If not, write to 21 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 */ 23 #include "global.h" 24 25 struct cmp 26 { 27 char mult; 28 CELLREF row; 29 CELLREF col; 30 }; 31 32 extern struct rng sort_rng; 33 extern struct rng sort_ele; 34 extern struct cmp *sort_keys; 35 extern int sort_keys_num; 36 extern int sort_keys_alloc; 37 extern struct rng all_rng; 38 extern unsigned int print_width; 39 40 41 42 43 extern void set_rng (struct rng *r, CELLREF r1, CELLREF c1, CELLREF r2, CELLREF c2); 44 extern void delete_region (struct rng *where); 45 extern void lock_region (struct rng *where, int locked); 46 extern void format_region (struct rng *where, int fmt, int just); 47 extern void txt_print_region (struct rng *print, FILE *fp); 48 extern void move_region (struct rng *fm, struct rng *to); 49 extern void copy_region (struct rng *fm, struct rng *to); 50 extern void copy_values_region (struct rng *fm, struct rng *to); 51 extern void sort_region (void); 52 extern int cmp_cells (int n1, int n2); 53 extern void swp_cells (int n1, int n2); 54 extern void rot_cells (int n1, int n2); 55 extern void precision_region (struct rng *, int); 56 57 #endif 58