cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/27/00:49:29

Message-ID: <37C5A6B9.2CBA4A68@bigfoot.com>
From: =?iso-8859-1?Q?Fran=E7ois?= Jacques <francois DOT jacques AT bigfoot DOT com>
Organization: Becher Labs
X-Mailer: Mozilla 4.61 [en] (OS/2; U)
X-Accept-Language: en,fr,fr-CA
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP (gcc) and Borland IDE
References: <37C15F25 DOT 2003401A AT inti DOT gov DOT ar> <19990825092911 DOT I14930 AT crater DOT eth DOT ericsson DOT se>
Lines: 80
Date: Thu, 26 Aug 1999 21:42:34 +0100
NNTP-Posting-Host: 24.200.41.54
X-Complaints-To: abuse AT videotron DOT net
X-Trace: wagner.videotron.net 935718155 24.200.41.54 (Thu, 26 Aug 1999 21:42:35 EDT)
NNTP-Posting-Date: Thu, 26 Aug 1999 21:42:35 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thanks a lot Laszlo! I'll try it next week end.

Stay tuned!


Laszlo Molnar wrote:

> > > 2. Need to configure Borland IDE to parse output from GCC (like in
> > > Codewright) *OR* use a perl script to adapt GCC output to Borland
> > > format. I do not think that would be a problem but sincerly haven't
> > > tried it. Anyone did?
>
> Ok, here is what I used 5 years ago. It's full of bugs. It worked for
> me, don't ask me how :-)
>
> Laszlo
>
> ---cut here with a very sharp knife---
>
> /*
> //                               GCC2MSG V1.0
> //                                  ML1050
> //                                   1994
> */
>
> /*
> //              GNU C Message to Borland C 3.1 Editor Message
> //
> //                       GNU Transfer Command line:
> // -c -x c $EDNAME -o $OUTNAME $SAVE CUR $MEM(640K) $CAP MSG(GCC2MSG) $NOSWAP
> //
> //         OPTIONS/MAKE/After Compiling = Stop ( Don't run TLINK! )
> */
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <io.h>
> #include <fcntl.h>
> #include <string.h>
>
> char header [] = "BI#PIP#OK";
> char separ  [] = { 0,1,255,255,1,0 };
> char end    [] = { 0,0x7f };
>
> /**************************************/
> void main (void)
> {
>     char  linein  [500];
>     char  oldfile [200]="\x0\x0*";
>     char  filenam [200];
>     char  linenum [200];
>     char  errorm  [500];
>     char  *ptr;
>
>     setmode (1,O_BINARY);
>     write (1,header,9);
>
>     while (gets (linein) != NULL)
>         if (linein [strlen(linein)-1] != ':')
>         {
>             if ((ptr=strchr (linein,':')) != NULL && *(ptr+1)=='\\')
>                 *ptr=0xFF;
>             sscanf (linein,"%[^:]:%[^:]:%[^\n]",filenam,linenum,errorm);
>             if ((ptr=strchr (filenam,0xFF)) != NULL)
>                 *ptr=':';
>             if (strcmp (filenam,oldfile+2))
>             {
>                 strcpy (oldfile+2,filenam);
>                 write (1,oldfile,strlen (filenam)+2);
>             }
>             *(short*) (separ+2) = atoi (linenum);
>             write (1,separ,6);
>             for (ptr=errorm; *ptr==' '; ptr++)
>                 ;
>             write (1,ptr,strlen (ptr));
>         }
>     write (1,end,2);
>     close (1);
> }

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019