Development Specs: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
== Systematic Approach ==
* Collect all possible error states from functions
* assign error codes for macros?
== How should Error/Warning messages be formatted? ==
== How should Error/Warning messages be formatted? ==
* map names in [ ]
* map names in [ ]
Line 4: Line 8:


== Macros to be defined for C library ==
== Macros to be defined for C library ==
MSG_RASTER_NOT_FOUND_IN_MAPSET - "Raster map [%s] not found in [%s]"
* MSG_RASTER_NOT_FOUND_IN_MAPSET - "Raster map [%s] not found in [%s]"
MSG_CANNOT_OPEN_RASTER - "Failed opening raster map [%s]"
* MSG_CANNOT_OPEN_RASTER - "Failed opening raster map [%s]"

Revision as of 09:57, 20 July 2006

Systematic Approach

  • Collect all possible error states from functions
  • assign error codes for macros?

How should Error/Warning messages be formatted?

  • map names in [ ]


Macros to be defined for C library

  • MSG_RASTER_NOT_FOUND_IN_MAPSET - "Raster map [%s] not found in [%s]"
  • MSG_CANNOT_OPEN_RASTER - "Failed opening raster map [%s]"