Opened 16 years ago

Last modified 16 years ago

#1 new enhancement

ANSI compilation mode patch for CS-Map Library — at Initial Version

Reported by: mloskot Owned by: somebody
Priority: major Milestone:
Component: Library Version: svn-trunk
Keywords: ansi pedantic Cc:

Description

I prepared patch that enables strict ANSI compilation mode with GCC for the CS-Ma. Only sources of library Source and Include directories have been changed.

Here is set of compilation flags I used:

-Wall -Wextra -Werror -pedantic -ansi

One major update is not included in this patch, CS-Map uses names that belong to class of names reserved by C/C++ implementation. Reserved identifiers begin with 1 or 2 underscores and continuewith a capital letter (for instance,

__This

name as variable is invalid), so they match to the following regular expression:

_[_A-Z][0-9_a-zA-Z]*

In terms of the C/C++ ANSI, use of such identifiers leads to undefined behavior.

Change History (0)

Note: See TracTickets for help on using tickets.