Ticket #120 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

New v.example proposal

Reported by: marisn Owned by: grass-dev@…
Priority: minor Milestone: 6.4.0
Component: Docs Version: svn-trunk
Keywords: example Cc:
Platform: Unspecified CPU: Unspecified

Description

My C programming skills are poor and thus I found v.example not really helpfull. I added some comments to v.example and db related code. I would be happy, if some of GRASS C gurus could have a look at attached v.example version and enhance it to provide best-practise example for new developers.

Attachments

main.c Download (6.9 KB) - added by marisn 4 years ago.
New v.example version

Change History

Changed 4 years ago by marisn

New v.example version

Changed 4 years ago by neteler

Hi Maris,

I have tried and the patch works. Please submit to SVN...

Markus

Changed 4 years ago by marisn

I *know* that this patch works, but as it's an example how GRASS modules should be coded, it has to be work of art with all best-practises etc. I would be happy, if some of GRASS C guru's could also take a look on v.example after applying this patch.

Changed 4 years ago by neteler

  • status changed from new to closed
  • platform set to Unspecified
  • resolution set to fixed
  • cpu set to Unspecified

Submitted to SVN for easier testing.

Markus

Note: See TracTickets for help on using tickets.