fixed the coding style
convert the tabs to spaces convert the file format to unix style git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2483 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
977afc4f67
commit
b2da13707b
1766
include/rtdef.h
1766
include/rtdef.h
File diff suppressed because it is too large
Load Diff
|
@ -1,35 +1,35 @@
|
||||||
/*
|
/*
|
||||||
* File : rtm.h
|
* File : rtm.h
|
||||||
* This file is part of RT-Thread RTOS
|
* This file is part of RT-Thread RTOS
|
||||||
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
|
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
* found in the file LICENSE in this distribution or at
|
* found in the file LICENSE in this distribution or at
|
||||||
* http://www.rt-thread.org/license/LICENSE
|
* http://www.rt-thread.org/license/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __RTM_H__
|
#ifndef __RTM_H__
|
||||||
#define __RTM_H__
|
#define __RTM_H__
|
||||||
|
|
||||||
#include <rtdef.h>
|
#include <rtdef.h>
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
#ifdef RT_USING_MODULE
|
#ifdef RT_USING_MODULE
|
||||||
struct rt_module_symtab
|
struct rt_module_symtab
|
||||||
{
|
{
|
||||||
void *addr;
|
void *addr;
|
||||||
const char *name;
|
const char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define RTM_EXPORT(symbol) \
|
#define RTM_EXPORT(symbol) \
|
||||||
const char __rtmsym_##symbol##_name[] = #symbol; \
|
const char __rtmsym_##symbol##_name[] = #symbol; \
|
||||||
const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \
|
const struct rt_module_symtab __rtmsym_##symbol SECTION("RTMSymTab")= \
|
||||||
{ \
|
{ \
|
||||||
(void *)&symbol, \
|
(void *)&symbol, \
|
||||||
__rtmsym_##symbol##_name \
|
__rtmsym_##symbol##_name \
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
#define RTM_EXPORT(symbol)
|
#define RTM_EXPORT(symbol)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue