Skip to content

i.pr: modernize code and add doc files#1654

Open
nilason wants to merge 2 commits intoOSGeo:grass8from
nilason:fix_i_pr2
Open

i.pr: modernize code and add doc files#1654
nilason wants to merge 2 commits intoOSGeo:grass8from
nilason:fix_i_pr2

Conversation

@nilason
Copy link
Contributor

@nilason nilason commented Mar 19, 2026

Modernize i.pr{.*} code and add doc files.

This enables the installation of i.pr and all sub-addons (except i.pr.training and i.pr.statistics). If, there wasn't for an issue with g.extension's get_multi_addon_addons_which_install_only_html_man_page(), in particularly the regex, which doesn't handle the i.pr well and causes failure. That will need a fix of its own, I haven't found one yet though.

  • add parameters to function prototypes
  • make full use of G_fatal_error() and G_warning() (no need to sprintf the message to a buffer before)
  • update Makefiles to install with GRASS 8 g.extension
  • rename i.pr.features_selection parameter 'svm_C' to 'svm_c'
  • remove or comment out unused variables
  • PRLIB/test.c: re-define the macro SQR to an inline function, addressing -Wunsequenced compiler warning

The sub-addons i.pr.training and i.pr.statistics are disabled for the time being due to use of GRASS 6 API.

nilason added 2 commits March 19, 2026 17:29
- add parameters to function prototypes
- make full use of G_fatal_error() and G_warning() (no need to
  sprintf the message to a buffer before)
- update Makefiles to install with GRASS 8 g.extension
- rename i.pr.features_selection parameter 'svm_C' to 'svm_c'
- remove or comment out unused variables
- PRLIB/test.c: re-define the macro SQR to an inline function,
  addressing -Wunsequenced compiler warning

The sub-addons 'i.pr.training' and 'i.pr.statistics' are disabled
for the time being due to use of GRASS 6 API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant