xPL Framework for Linux using C bindings (any language can link to the shared or static libraries, so not C only). Includes examples and a robust Linux based xPL Hub

FS#33 - Const correctnes of API

Attached to Project: xPL4Linux (xpllib)
Opened by Chris M. (chris m.) - Saturday, 26 December 2009, 08:19 GMT-5
Task Type Bug Report
Category Programming API
Status Unconfirmed
Assigned To No-one
Operating System Ubuntu
Severity High
Priority Normal
Reported Version 1.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

The API isn't const correct, i.e. the functions in the xPL.h define all Strings as char* instead of const char* where possible and only char* where necessary.

This causes troubles when using that library from an const correct application.

Current worarounds are:
- define String as const char* (although the library was compiled with char*) - possible but is a timebomb
- copy all strings to be able to pass a non const char* - this wastes ressources!
This task depends upon

Loading...