changeset 94998:3f4cdd183536

(declare-function): Add compat definition. (awk-mode-syntax-table, c-awk-unstick-NL-prop): Declare for compiler.
author Glenn Morris <rgm@gnu.org>
date Thu, 15 May 2008 03:30:40 +0000
parents 81e2fa8a8244
children 41dee8b5372e
files lisp/progmodes/cc-mode.el
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-mode.el	Thu May 15 03:29:30 2008 +0000
+++ b/lisp/progmodes/cc-mode.el	Thu May 15 03:30:40 2008 +0000
@@ -74,6 +74,10 @@
 
 ;;; Code:
 
+;; For Emacs < 22.2.
+(eval-and-compile
+  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
 (eval-when-compile
   (let ((load-path
 	 (if (and (boundp 'byte-compile-dest-file)
@@ -1454,6 +1458,10 @@
 (easy-menu-define c-awk-menu awk-mode-map "AWK Mode Commands"
 		  (cons "AWK" (c-lang-const c-mode-menu awk)))
 
+;; (require 'cc-awk) brings these in.
+(defvar awk-mode-syntax-table)
+(declare-function c-awk-unstick-NL-prop "cc-awk" ())
+
 (defun awk-mode ()
   "Major mode for editing AWK code.
 To submit a problem report, enter `\\[c-submit-bug-report]' from an