Ticket #244 (closed defect: fixed)
[MapScript] Inconsistent return values (0/-1 vs MS_SUCCESS/FAILURE)
| Reported by: | dmorissette | Owned by: | dmorissette |
|---|---|---|---|
| Priority: | high | Milestone: | 5.4 release |
| Component: | MapScript | Version: | 4.1 |
| Severity: | normal | Keywords: | |
| Cc: | tamas |
Description (last modified by dmorissette) (diff)
This is a problem that's been around for quite a while: some functions in MapScript? return 0/-1, and others return MS_SUCCESS/MS_FAILURE.
We should eventually walk through the MapScript? API and list all functions that still return 0/-1. Then for every function we should make required changes to return MS_SUCCESS/FAILURE and also make sure that we look for and update every location where the function is called.
We have talked about this between me and Steve, and it would be a good idea to clean this us before the 3.7 release if possible.
Change History
Note: See
TracTickets for help on using
tickets.
