www.delorie.com/djgpp/doc/libc/libc_285.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

DXE_macros

Syntax

 
#include <sys/dxe.h>

	DXE_EXPORT_TABLE(name)
	DXE_EXPORT_TABLE_AUTO(name)
	DXE_EXPORT(symbol)
	DXE_EXPORT_ASM(_symbol)
	DXE_EXPORT_END

Description

These macros allows you to define a table of symbols that are going to be exported into subsequently loaded modules. If you use DXE_EXPORT_TABLE_AUTO instead of DXE_EXPORT_TABLE the table will be automatically registered with the dynamic loader during program startup (thus you don't need to call dlregsym(name) manually).

 
	DXE_DEMAND(name);

This macro declares the two functions that are present if you are statically linking against a dynamic library (see the dxe3gen section for details on static linking). Note that name should be in capitals with any illegal character converted to underscore. After declaring the module with the above macro, you can call the dlload_NAME and dlunload_NAME functions to dynamically load and unload the statically linked dynamic library.

Portability

ANSI/ISO C No
POSIX No


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004