File: regions.h

package info (click to toggle)
oleo 1.6-11
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,608 kB
  • ctags: 3,113
  • sloc: ansic: 38,917; yacc: 1,737; sh: 343; makefile: 81
file content (73 lines) | stat: -rw-r--r-- 2,142 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef REGIONSH
#define REGIONSH

/*	Copyright (C) 1992, 1993 Free Software Foundation, Inc.

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 version 2, or (at your option)
any later 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 software; see the file COPYING.  If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */


/*  t. lord	Sat Aug  8 15:48:59 1992	*/

#include "global.h"


struct cmp
{
  char mult;
  CELLREF row;
  CELLREF col;
};

extern struct rng sort_rng;
extern struct rng sort_ele;
extern struct cmp *sort_keys;
extern int sort_keys_num;
extern int sort_keys_alloc;
extern struct rng all_rng;
extern unsigned int print_width;




#if PROTOTYPES
extern void set_rng (struct rng *r, CELLREF r1, CELLREF c1, CELLREF r2, CELLREF c2);
extern void delete_region (struct rng *where);
extern void lock_region (struct rng *where, int locked);
extern void format_region (struct rng *where, int fmt, int just);
extern void print_region (struct rng *print, FILE *fp);
extern void move_region (struct rng *fm, struct rng *to);
extern void copy_region (struct rng *fm, struct rng *to);
extern void copy_values_region (struct rng *fm, struct rng *to);
extern void sort_region (void);
extern int cmp_cells (int n1, int n2);
extern void swp_cells (int n1, int n2);
extern void rot_cells (int n1, int n2);
#else /* PROTOTYPES */
extern void set_rng ();
extern void delete_region ();
extern void lock_region ();
extern void format_region ();
extern void print_region ();
extern void move_region ();
extern void copy_region ();
extern void copy_values_region ();
extern void sort_region ();
extern int cmp_cells ();
extern void swp_cells ();
extern void rot_cells ();
#endif /* PROTOTYPES */


#endif