BSL.xcc
Copyright 2007 STMicroelectronics.
This program is free software; you can redistribute it and/or modify it under the terms of either (at your option): the GNU General Public License (GPL) version 2; the GNU Lesser General Public License (LGPL) version 2.1; any later version of these licences as published by the Free Software Foundation.
The BSL (Basic Services Library) contains the following modules:
- Except Exception support, mostly assertion macros for now.
- Hacker Implementation of Hacker's Delights algorithms.
- Memory Memory allocator with
freeAll
and pools. - BBTree Base Binary Tree common code (unused).
- String String and StringTable implementations.
- Buffer Character buffer for preparing output.
- REScan Support for the re2c scanner generator.
- ETable Support for tables of enumerated values.
- Escape Support for XML escape codes.
- XMLCan XML Canonical pull scanner.
- XMLGen XML Generator.
- XMLScan XML pull Scanner.
- XMLAuto XML Dump function generator.
Include all the exported BSL headers.
#include "BSL/Except.h" #include "BSL/Hacker.h" #include "BSL/Memory.h" #include "BSL/BBTree.h" #include "BSL/String.h" #include "BSL/Buffer.h" #include "BSL/REScan.h" #include "BSL/ETable.h" #include "BSL/Escape.h" #include "BSL/XMLCan.h" #include "BSL/XMLGen.h" #include "BSL/XMLScan.h" #include "BSL/XMLAuto.h"
BSL_TRACE— File handle used to print the BSL traces.
extern FILE *BSL_TRACE; #ifdef CDT_NTRACE #define BSL_TRACE NULL #endif//CDT_NTRACE
Variables used to control BSL in non-release mode.
extern int32_t BSL_MEMORY_STATS; extern int32_t FORCE_POOLED;
BSL_INIT— Initialize the BSL library.
void BSL_INIT(void);
BSL_FINI— Finalize BSL library.
void BSL_FINI(void);