]> git.eshelyaron.com Git - emacs.git/commitdiff
(declare-function): Add compat definition.
authorGlenn Morris <rgm@gnu.org>
Thu, 15 May 2008 03:30:40 +0000 (03:30 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 15 May 2008 03:30:40 +0000 (03:30 +0000)
(awk-mode-syntax-table, c-awk-unstick-NL-prop): Declare for compiler.

lisp/progmodes/cc-mode.el

index bfdbdf4d9e1dacd6503c175578bbba073d72f633..a80564a81d15da5a783122ce9f52f0e483383d76 100644 (file)
 
 ;;; 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 @@ Key bindings:
 (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