~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to raster/r.random.cells/ransurf.h

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
#include <stdio.h>
4
4
#include <math.h>
5
 
#include <grass/gis.h>
 
5
#include <grass/raster.h>
6
6
#include "flag.h"
7
7
 
8
8
#define ODD(a)  ((a) & 1)
11
11
#define SEED_MIN                0
12
12
#define PI                      M_PI
13
13
 
14
 
#ifdef MAIN
15
 
#define GLOBAL
16
 
#else
17
 
#define GLOBAL extern
18
 
#endif
19
 
 
20
14
#define CELLSORTER struct cell_sorter_
21
15
CELLSORTER {
22
16
    int R, C;
23
17
    double Value;
24
18
};
25
19
 
26
 
GLOBAL double NS, EW;
27
 
GLOBAL int CellCount, Rs, Cs;
28
 
GLOBAL double MaxDist, MaxDistSq;
29
 
GLOBAL FLAG *Cells;
30
 
GLOBAL CELLSORTER *DoNext;
31
 
GLOBAL CELL **Out, *CellBuffer;
32
 
GLOBAL int Seed, OutFD;
33
 
GLOBAL struct Flag *Verbose;
34
 
GLOBAL struct Option *Distance;
35
 
GLOBAL struct Option *Output;
 
20
extern double NS, EW;
 
21
extern int CellCount, Rs, Cs;
 
22
extern double MaxDist, MaxDistSq;
 
23
extern FLAG *Cells;
 
24
extern CELLSORTER *DoNext;
 
25
extern CELL **Out, *CellBuffer;
 
26
extern int Seed, OutFD;
 
27
extern struct Flag *Verbose;
 
28
extern struct Option *Distance;
 
29
extern struct Option *Output;
 
30
extern struct Option *SeedStuff;