LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 648|回复: 2

APUE的10-14的定义canjump是不是错了?

[复制链接]
发表于 2004-1-16 22:59:17 | 显示全部楼层 |阅读模式
static volatile sig_atomic_t canjump;

  1. # grep canjump 10.14.c
  2. static vloatile  sig_atomic_t           canjump;
  3.   canjump=1 ;                                /* now sigsetjmp() is OK */
  4.   if(canjump==0)
  5.   canjump=0;
  6. #gcc -c 10.14.c
  7. 10.14.c:8: syntax error before `sig_atomic_t'
复制代码
发表于 2004-1-19 10:30:32 | 显示全部楼层
这是代码?
发表于 2004-1-19 23:01:02 | 显示全部楼层
volatile
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表