From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Looking for mode for Oracle Pro*C. AKA embedded SQL/C. Date: 17 May 2003 17:12:24 +1000 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <873cjedp2f.fsf@tiger.rapttech.com.au> References: Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053154837 14003 80.91.224.249 (17 May 2003 07:00:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 17 May 2003 07:00:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 17 09:00:31 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19GvgE-0003dR-00 for ; Sat, 17 May 2003 09:00:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GvgA-0001eO-04 for gnu-help-gnu-emacs@m.gmane.org; Sat, 17 May 2003 03:00:26 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-NNTP-Posting-Host: ppp185.nsw.padsl.internode.on.net Original-X-Trace: duster.adelaide.on.net 1053154754 ppp185.nsw.padsl.internode.on.net (17 May 2003 16:29:14 +0950) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!snewsf0.syd.ops.aspac.uu.net!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:113330 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9825 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9825 >>>>> "Mamouliane" == Mamouliane writes: Mamouliane> Oracle Pro*C is basically a pre-processor. It takes a Mamouliane> source file written in C and containing SQL Mamouliane> statements. Hence the name embedded SQL. The Mamouliane> pre-processor replaces all SQL statements by C statements Mamouliane> & function calls. In the end what you have is C source Mamouliane> code that is then compiled and linked with Oracle Mamouliane> libraries. This is a very basic description of what it Mamouliane> does but you get the idea. Mamouliane> Is anyone aware of such a mode available for Pro*C? I Mamouliane> know of a SQL mode and PL/SQL mode but can't find a mode Mamouliane> for Pro*C or embedded SQL/C. Should I write such a mode? Mamouliane> Is it very difficult? It would basically be an extension Mamouliane> to the available C mode. There is already modes for SQL Mamouliane> and PL/SQL out there so I figure I would use that too. Before writing your own mode, maybe check out multi-mode-mode which allows you to use multiple modes in one buffer. I've not used it myself, but remember seeing an article in one of the newsgroups where someone was using sql-mode and c-mode for Oracle proc. Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!