aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/pcmpl-x.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/pcmpl-x.el')
-rw-r--r--lisp/pcmpl-x.el32
1 files changed, 32 insertions, 0 deletions
diff --git a/lisp/pcmpl-x.el b/lisp/pcmpl-x.el
index 5244ada5231..6e96a67b7b2 100644
--- a/lisp/pcmpl-x.el
+++ b/lisp/pcmpl-x.el
@@ -286,5 +286,37 @@ long options."
286 (pcmpl-x-ag-options)))) 286 (pcmpl-x-ag-options))))
287 (pcomplete-here* (pcomplete-dirs-or-entries))))) 287 (pcomplete-here* (pcomplete-dirs-or-entries)))))
288 288
289;;;###autoload
290(defun pcomplete/bcc32 ()
291 "Completion function for Borland's C++ compiler."
292 (let ((cur (pcomplete-arg 0)))
293 (cond
294 ((string-match "\\`-w\\([^;]+;\\)*\\([^;]*\\)\\'" cur)
295 (pcomplete-here
296 '("ali" "amb" "amp" "asc" "asm" "aus" "bbf" "bei" "big" "ccc"
297 "cln" "cod" "com" "cpt" "csu" "def" "dig" "dpu" "dsz" "dup"
298 "eas" "eff" "ext" "hch" "hid" "ias" "ibc" "ifr" "ill" "nil"
299 "lin" "lvc" "mcs" "mes" "mpc" "mpd" "msg" "nak" "ncf" "nci"
300 "ncl" "nfd" "ngu" "nin" "nma" "nmu" "nod" "nop" "npp" "nsf"
301 "nst" "ntd" "nto" "nvf" "obi" "obs" "ofp" "osh" "ovf" "par"
302 "pch" "pck" "pia" "pin" "pow" "prc" "pre" "pro" "rch" "ret"
303 "rng" "rpt" "rvl" "sig" "spa" "stl" "stu" "stv" "sus" "tai"
304 "tes" "thr" "ucp" "use" "voi" "zdi") (match-string 2 cur)))
305 ((string-match "\\`-[LIn]\\([^;]+;\\)*\\([^;]*\\)\\'" cur)
306 (pcomplete-here (pcomplete-dirs) (match-string 2 cur)))
307 ((string-match "\\`-[Ee]\\(.*\\)\\'" cur)
308 (pcomplete-here (pcomplete-dirs-or-entries "\\.[Ee][Xx][Ee]\\'")
309 (match-string 1 cur)))
310 ((string-match "\\`-o\\(.*\\)\\'" cur)
311 (pcomplete-here (pcomplete-dirs-or-entries "\\.[Oo][Bb][Jj]\\'")
312 (match-string 1 cur)))
313 (t
314 (pcomplete-opt "3456ABCDEHIKLMNOPRSTUVXabcdefgijklnoptuvwxyz"))))
315 (while (pcomplete-here
316 (pcomplete-dirs-or-entries "\\.[iCc]\\([Pp][Pp]\\)?\\'"))))
317
318;;;###autoload
319(defalias 'pcomplete/bcc 'pcomplete/bcc32)
320
289(provide 'pcmpl-x) 321(provide 'pcmpl-x)
290;;; pcmpl-x.el ends here 322;;; pcmpl-x.el ends here