Chinaunix

标题: int ziplocal_putValue OF((FILE *file, uLong x, int nbByte)); 这个是什么用法 [打印本页]

作者: DraculaW    时间: 2007-01-31 11:16
标题: int ziplocal_putValue OF((FILE *file, uLong x, int nbByte)); 这个是什么用法
我最近在看  zlib的source code 里面有很多这样的定义阿

int ziplocal_putValue OF((FILE *file, uLong x, int nbByte));

这个是声明了个函数 但是 为什么要用OF把它的参数包括起来呢
作者: promiscuous    时间: 2007-01-31 11:35
OF应该是一个宏, 可以忽略掉 zlib中具体用来干吗我也不是很清楚



mozilla/security/nss/cmd/zlib/zconf.h  - 84 个相同结果

   119: #ifndef OF /* function prototypes */
        #  ifdef STDC
        #    define OF(args)  args
        #  else #    define OF(args)  ()
        #  endif
作者: DraculaW    时间: 2007-01-31 13:17
Errr  晕  好像意思是 可以带参数可以把参数忽略掉 这个做法好奇怪啊




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2