Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
set(use_math_DEFS "")
if(MSVC)
set(use_math_DEFS "-D_USE_MATH_DEFINES=1")
Expand Down
1 change: 1 addition & 0 deletions lib/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
MODULE_TOPDIR = ..

include $(MODULE_TOPDIR)/include/Make/Vars.make
Expand Down
1 change: 1 addition & 0 deletions lib/arraystats/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
MODULE_TOPDIR = ../..


Expand Down
1 change: 1 addition & 0 deletions lib/arraystats/basic.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/arraystats.h>
Expand Down
1 change: 1 addition & 0 deletions lib/arraystats/class.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/* functions to classify sorted arrays of doubles and fill a vector of
* classbreaks */

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
"""Tests for the basic statistics ctypes bindings

AS_basic_stats() and AS_eqdrt() only read a plain array of doubles and write
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
"""Tests for the classification ctypes bindings

The AS_class_*() functions only read an array of doubles (assumed already
Expand Down
1 change: 1 addition & 0 deletions lib/bitmap/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
MODULE_TOPDIR = ../..

include $(MODULE_TOPDIR)/include/Make/Vars.make
Expand Down
1 change: 1 addition & 0 deletions lib/bitmap/bitmap.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
** Bitmap library
**
Expand Down
1 change: 1 addition & 0 deletions lib/bitmap/smain.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdio.h>
#include <stdlib.h>
#include <grass/bitmap.h>
Expand Down
1 change: 1 addition & 0 deletions lib/bitmap/sparse.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
** Bitmap library
**
Expand Down
1 change: 1 addition & 0 deletions lib/btree/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
MODULE_TOPDIR = ../..

include $(MODULE_TOPDIR)/include/Make/Vars.make
Expand Down
1 change: 1 addition & 0 deletions lib/btree/create.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdio.h>
#include <stdlib.h>
#include <grass/btree.h>
Expand Down
1 change: 1 addition & 0 deletions lib/btree/find.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdio.h>
#include <grass/btree.h>

Expand Down
1 change: 1 addition & 0 deletions lib/btree/free.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/btree.h>
Expand Down
1 change: 1 addition & 0 deletions lib/btree/next.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/btree.h>

int btree_next(BTREE *B, void **key, void **data)
Expand Down
1 change: 1 addition & 0 deletions lib/btree/rewind.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/btree.h>

int btree_rewind(BTREE *B)
Expand Down
1 change: 1 addition & 0 deletions lib/btree/update.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions lib/btree2/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
MODULE_TOPDIR = ../..

include $(MODULE_TOPDIR)/include/Make/Vars.make
Expand Down
1 change: 1 addition & 0 deletions lib/cairodriver/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
MODULE_TOPDIR = ../..

EXTRA_CFLAGS=-I../driver $(CAIROINC) $(FTINC)
Expand Down
1 change: 1 addition & 0 deletions lib/cairodriver/read_xid.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/glocale.h>

#include "cairodriver.h"
Expand Down
1 change: 1 addition & 0 deletions lib/cairodriver/write_xid.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/glocale.h>

#include "cairodriver.h"
Expand Down
1 change: 1 addition & 0 deletions lib/calc/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
MODULE_TOPDIR = ../..


Expand Down
1 change: 1 addition & 0 deletions lib/calc/calc.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <unistd.h>
#include <signal.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/check.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/calc.h>

int c_int0(int argc, int *argt)
Expand Down
1 change: 1 addition & 0 deletions lib/calc/function.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/calc.h>

func_desc calc_func_descs[] = {{"add", c_varop, f_add},
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xabs.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xacos.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>
#include <math.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xadd.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xand.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xand2.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xasin.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>
#include <math.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xatan.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>
#include <math.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xbitand.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xbitnot.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xbitor.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xbitxor.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xceil.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xcos.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xdiv.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xdouble.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xeq.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xeval.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xexp.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xfloat.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xfloor.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xge.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xgraph.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xgt.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xif.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xint.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xisnull.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xle.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xlog.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xlt.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xmax.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xmedian.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>
#include <stdbool.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xmin.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xmod.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xmode.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>
#include <stdbool.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xmul.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xne.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xneg.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xnmax.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xnmedian.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>
#include <stdbool.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xnmin.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xnmode.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>
#include <stdbool.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xnot.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xnull.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xor.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xor2.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xpow.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xrand.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <stdlib.h>

#include <grass/config.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xround.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <limits.h>
#include <math.h>

Expand Down
1 change: 1 addition & 0 deletions lib/calc/xshiftl.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xshiftr.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xshiftru.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xsin.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xsqrt.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <math.h>

#include <grass/gis.h>
Expand Down
1 change: 1 addition & 0 deletions lib/calc/xsub.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
Expand Down
Loading
Loading