r6.0.1:Upgrading Guide

From liblfds.org
Jump to navigation Jump to search

Introduction

Release moves and only moves release 6 into the new namespace policy, which is to say, prefixes all API names, defines, etc, with a string which is unique on a per release basis. For release 6.0.1, this string is "lfds601_" (or "LFDS601_", where used in uppercase).

Upgrade Paths

Supported upgrade paths are from 6 to 6.0.1.

User-Visible Changes

All names are now prefixed with "lfds601_" (where lowercase is used) or "LFDS601_" (where uppercase is used), the top-level directory "liblfds601" now contains the code (previously, the "src", "bin" and so on directories were top-level; the test programme however remains in the top-level directory "test"), the header file name has changed from "liblfds.h" to "liblfds601.h", the library name has changed from "liblfds" to "liblfds601" and on Windows, the solution file has changed name from "liblfds.sln" to "liblfds601.sln".

(For those building with command line tools, the Windows and Linux makefiles have not changed name.)

User-Invisible Changes

None.

Upgrading

Where release 6 does not exist in a namespace but rather simply uses names directly (e.g. "freelist_pop" is called "freelist_pop", not "lfds6_freelist_pop"), upgrading is a straightforward, mechanical but rather tedious task, whereby every liblfds name (function names, structure names, type names, #define names, everything) must be prefixed with "lfds601_" or "LFDS601_", case as appropriate.

Finally, modify your build system to take into account the new directory "liblfds601" which is now in the path to the library code.

Notes

Once code is using a namespaced release, upgrading is much easier, since most of the work is a simple global search and replace on the prefix string.