ChinaUnix.net
相关文章推荐:

gcc function attribute warnunusedresult

__attribute__ 机制作用: 可以设置函数属性(function attribute), 变量属性(Variable attribute), 类型屬性(Type attribute) 语法: __attribute__ (parameter) 注: attribute 前后各有两个下划线(underscore) 后面紧跟小括号((bracket)), 括号中间为 __attribute__参数. 其位置一般于声明的尾部";" 以前。 函数属性(function attribute) 函数属性可以帮助开发者把一些特性添加到函数声明中,从而可以使编译...

by neilengineer - Linux文档专区 - 2009-09-16 19:23:43 阅读(619) 回复(0)

相关讨论

__attibute__可以控制编译器的行为,比如参数检查,字节对齐等等。 介绍了针对函数,类型,结构的__attribute__用法 http://linux.chinaunix.net/techdoc/beginner/2008/05/07/1001328.shtml 这里专门介绍了weak attribute 的用法 http://www.cs.virginia.edu/~wh5a/blog/The%20weak%20attribute%20of%20gcc.html 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/94300/showart_2046199.html

by raymond1984 - Linux文档专区 - 2009-09-05 14:24:31 阅读(804) 回复(0)

作者:聂飞(afreez) 北京-中关村   联系方式: [email=afreez@sina.com]afreez@sina.com[/email] (欢迎与作者交流)   初次发布时间:2006-06-17!     GNU C的一大特色(却不被初学者所知)就是__attribute__机制。__attribute__可以设置函数属性(function attribute)、变量属性(Variable attribute)和类型属性(Type attribute)。   __attribute__书写特征是:__attribute__前后都有两个下划线,并切后面会紧...

by panhuachun - Linux文档专区 - 2008-03-07 19:02:18 阅读(636) 回复(0)

正在看php.net上提供的Smarty文档(英文官方),对一些内容不太明白。比如文档中的这两个例子: Example 3-3. function syntax {config_load file="colors.conf"} {include file="header.tpl"} {if $highlight_name} Welcome, {$name}! {else} Welcome, {$name}! {/if} {include file="footer.tpl"} ////////////////////////////////////////////////////// Example 3-4. f...

by cjcameron - PHP - 2006-08-11 14:03:02 阅读(1040) 回复(2)

1. gcc的__attribute__编译属性 要了解Linux Kernel代码的分段信息,需要了解一下gcc的__attribute__的编绎属性,__attribute__主要用于改变所声明或定义的函数或数据的特性,它有很多子项,用于改变作用对象的特性。比如对函数,noline将禁止进行内联扩展、noreturn表示没有返回值、pure表明函数除返回值外,不会通过其它(如全局变量、指针)对函数外部产生任何影响。但这里我们比较感兴趣的是对代码段起作用子项section。 __at...

by myleeming - Linux文档专区 - 2009-12-15 11:18:25 阅读(846) 回复(0)

================================ Author: taoyuetao Email: [email=tao_yuetao@yahoo.com.cn]tao_yuetao@yahoo.com.cn[/email] Blog: taoyuetao.cublog.cn ================================ 在分析 linux 内核时注意到有些函数会有添加__attribute__((unused)), 在gcc手册中找到了有关的解释: unused:This attribute, attached to a function, means that the function is meant to be possibly unused. gcc will...

by taoyuetao - Linux文档专区 - 2007-01-30 14:35:48 阅读(992) 回复(0)

__attribute__((bitwise)) __attribute__((force)) 是什么意思? 在gcc文档中没有找到。 他们用来在big-endian 和 little-edian 之间做强制转换

by zqy2000zqy - C/C++ - 2006-05-30 14:52:26 阅读(993) 回复(2)

我觉得gcc中的关键字__attribute__和有意思,其用处也很广范,十分希望哪位老师讲述讲述!

by sc_px_jiangyun - 程序开发 - 2006-04-07 10:58:38 阅读(855) 回复(2)

我觉得gcc中的关键字__attribute__和有意思,其用处也很广范,十分希望哪位老师讲述讲述!

by sc_px_jiangyun - Linux环境编程 - 2006-04-07 10:58:38 阅读(1489) 回复(2)

[color="#000000"]自定义的函数: [color="#990000"]函数执行: 实例: 取得IP所对应的DNS名称 (IP -> FQDN) [color="#000000"]$host= gethost($ip); echo "hostname: $host"; ?> 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_345382.html

by atyu30 - BSD文档中心 - 2007-07-23 23:11:59 阅读(1133) 回复(0)

* ファイル選択時のデフォルトパスの取得(汎用モジュール) IF p_iofile IS INITIAL. CALL function 'WS_ULDL_PATH' IMPORTING upload_path = p_iofile. * ファイル選択ボックス(汎用モジュール) CALL function 'WS_FILENAME_GET' EXPORTING def_filename = ' ' def_path = p_iofile mask = ',*.*,*.*.' m...

by sap_xiaoxin - Linux文档专区 - 2007-03-01 13:46:30 阅读(419) 回复(0)