10.07.2015 Views

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MPLAB <strong>C30</strong> C 编 译 器 诊 断too many arguments for format当 检 查 对 printf、 scanf 等 的 调 用 的 参 数 列 表 时 , 编 译 器 发 现 实 际 参 数 的 个 数 比 格 式 字符 串 要 求 的 多 。traditional C ignores #‘directive’ with the # indented如 果 伪 指 令 的 # 不 在 第 1 列 , 传 统 C 忽 略 伪 指 令 。traditional C rejects initialization of unions在 传 统 C 中 , 联 合 不 能 被 初 始 化traditional C rejects the ‘ul’ suffix传 统 C 中 , 后 缀 “u” 无 效 。traditional C rejects the unary plus operator传 统 C 中 , 单 目 加 运 算 符 无 效 。trigraph ??char converted to char三 字 母 组 合 , 为 三 字 符 序 列 , 可 用 于 表 示 键 盘 中 可 能 没 有 的 符 号 。 三 字 母 组 合 序 列 按照 如 下 进 行 转 换 :??( = [ ??) = ] ??< = { ??> = } ??= = # ??/ = \ ??’ = ^ ??! = | ??- = ~trigraph ??char ignored三 字 母 组 合 序 列 被 忽 略 。 char 可 能 为 (, )、 、 =、 /、 '、 ! 或 -。type defaults to ‘int’ in declaration of ‘identifier’在 指 定 的 标 识 符 没 有 显 式 的 类 型 声 明 的 情 况 下 , 编 译 器 假 定 其 类 型 为 int。type mismatch with previous external declprevious external decl of ‘identifier’指 定 标 识 符 的 类 型 与 先 前 的 声 明 不 匹 配 。type mismatch with previous implicit declaration显 式 声 明 与 先 前 的 隐 式 声 明 冲 突 。type of ‘identifier’ defaults to ‘int’当 标 识 符 没 有 显 式 的 类 型 声 明 时 , 编 译 器 假 定 标 识 符 的 类 型 为 int。type qualifiers ignored on function return type对 函 数 返 回 值 类 型 使 用 的 类 型 限 定 符 被 忽 略 了 。Uundefining ‘defined’“defined” 不 能 用 作 宏 名 , 不 能 被 undefine。undefining ‘name’对 先 前 定 义 的 宏 名 “name” 使 用 了 #undef 伪 指 令 。union cannot be made transparent对 联 合 使 用 了 transparent_union 属 性 , 但 指 定 的 变 量 不 满 足 该 属 性 的 要 求 。‘union identifier’ declared inside parameter list在 函 数 参 数 列 表 内 部 声 明 了 指 定 的 联 合 。 良 好 的 编 程 习 惯 是 在 参 数 列 表 外 部 声 明 联 合 ,因 为 当 在 参 数 列 表 内 部 定 义 联 合 时 , 联 合 不 能 成 为 完 全 类 型 。© 2005 Microchip Technology Inc. DS51284C_CN 第 149 页

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!