comp.lang.ada
 help / color / mirror / Atom feed
* Ada Function for "logMsg"
@ 2008-07-25  1:50 richtmyer
  2008-07-26 23:59 ` Ada Function for logMsg or printf richtmyer
  0 siblings, 1 reply; 10+ messages in thread
From: richtmyer @ 2008-07-25  1:50 UTC (permalink / raw)


Some of our Ada code runs on VxWorks, and calls logMsg. When testing
the code in a simulation environment (Ms Windows or Linux), we use Ada
code to simulate the VxWorks calls. We are looking for an Ada function
that will parse the first (string) arg to logMsg and substitute the
other arg's as appropriate, i.e. operate like the real logMsg, using
text_io.put or something similar to print it out.

Anybody?

thanks,
Peter



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-25  1:50 Ada Function for "logMsg" richtmyer
@ 2008-07-26 23:59 ` richtmyer
  2008-07-27  5:47   ` tmoran
  0 siblings, 1 reply; 10+ messages in thread
From: richtmyer @ 2008-07-26 23:59 UTC (permalink / raw)


Actually, an Ada version of printf would be sufficient, just a little
modification needed.

thanks



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-26 23:59 ` Ada Function for logMsg or printf richtmyer
@ 2008-07-27  5:47   ` tmoran
  2008-07-27 11:33     ` richtmyer
  0 siblings, 1 reply; 10+ messages in thread
From: tmoran @ 2008-07-27  5:47 UTC (permalink / raw)


>Actually, an Ada version of printf would be sufficient,

Won't intermixed text and 'image do what you want, or do you actually
need format control?  In the latter case, a modest set of simple
function i_image(value : integer; format : string) return string;
function f_image(value : float;
                 width, precision : positive;
                 left_adjust : boolean := true);
function f_image(value : long_float;
                 width, precision : positive;
                 left_adjust : boolean := true);
style routines ought to do the job, no?



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-27  5:47   ` tmoran
@ 2008-07-27 11:33     ` richtmyer
  2008-07-27 21:46       ` Fionn Mac Cumhaill
  0 siblings, 1 reply; 10+ messages in thread
From: richtmyer @ 2008-07-27 11:33 UTC (permalink / raw)


On Jul 27, 1:47 am, tmo...@acm.org wrote:
> >Actually, an Ada version of printf would be sufficient,
>
> Won't intermixed text and 'image do what you want, ...

Yep, but if someone has already written it, I won't have to.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-27 11:33     ` richtmyer
@ 2008-07-27 21:46       ` Fionn Mac Cumhaill
  2008-07-28  7:52         ` Markus Schoepflin
  0 siblings, 1 reply; 10+ messages in thread
From: Fionn Mac Cumhaill @ 2008-07-27 21:46 UTC (permalink / raw)


On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtmyer@cox.net wrote:

>On Jul 27, 1:47�am, tmo...@acm.org wrote:
>> >Actually, an Ada version of printf would be sufficient,
>>
>> Won't intermixed text and 'image do what you want, ...
>
>Yep, but if someone has already written it, I won't have to.

Been done.
http://www.adapower.com/index.php?Command=Class&ClassID=AdaLibs&CID=375



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-27 21:46       ` Fionn Mac Cumhaill
@ 2008-07-28  7:52         ` Markus Schoepflin
  2008-07-31 10:35           ` richtmyer
  0 siblings, 1 reply; 10+ messages in thread
From: Markus Schoepflin @ 2008-07-28  7:52 UTC (permalink / raw)


Fionn Mac Cumhaill wrote:
> On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtmyer@cox.net wrote:
> 
>> On Jul 27, 1:47 am, tmo...@acm.org wrote:
>>>> Actually, an Ada version of printf would be sufficient,
>>> Won't intermixed text and 'image do what you want, ...
>> Yep, but if someone has already written it, I won't have to.
> 
> Been done.
> http://www.adapower.com/index.php?Command=Class&ClassID=AdaLibs&CID=375

This looks interesting, unfortunately pressing the download link gives a 
404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found 
on this server.

Markus



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-28  7:52         ` Markus Schoepflin
@ 2008-07-31 10:35           ` richtmyer
  2008-07-31 10:44             ` Georg Bauhaus
  2008-08-01  8:19             ` Markus Schoepflin
  0 siblings, 2 replies; 10+ messages in thread
From: richtmyer @ 2008-07-31 10:35 UTC (permalink / raw)


On Jul 28, 3:52 am, Markus Schoepflin <nos...@no.spam> wrote:
> Fionn Mac Cumhaill wrote:
> > On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtm...@cox.net wrote:
>
> >> On Jul 27, 1:47 am, tmo...@acm.org wrote:

>> http://www.adapower.com/index.php?Command=Class&ClassID=AdaLibs&CID=375
>
> This looks interesting, unfortunately pressing the download link gives a
> 404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found
> on this server.
>
> Markus

Yeah, I tried to join the AdaPower site but no luck. I emailed the
admin but
no reply. The "latest" of the "latest Additions" is dated in 2005.
Many
of the links are no longer valid. I Also emailed the author of the
Formatted_IO, but the message bounced back.

Am looking for other copies on the web, but no luck yet.

Anybody have a copy?



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-31 10:35           ` richtmyer
@ 2008-07-31 10:44             ` Georg Bauhaus
  2008-08-01  8:19             ` Markus Schoepflin
  1 sibling, 0 replies; 10+ messages in thread
From: Georg Bauhaus @ 2008-07-31 10:44 UTC (permalink / raw)


richtmyer@cox.net schrieb:
> On Jul 28, 3:52 am, Markus Schoepflin <nos...@no.spam> wrote:
>> Fionn Mac Cumhaill wrote:
>>> On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtm...@cox.net wrote:
>>>> On Jul 27, 1:47 am, tmo...@acm.org wrote:
> 
>>> http://www.adapower.com/index.php?Command=Class&ClassID=AdaLibs&CID=375
>> This looks interesting, unfortunately pressing the download link gives a
>> 404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found
>> on this server.

> Anybody have a copy?


Maybe Ada.Text_IO.Editing can fill the gap?

--
Georg Bauhaus
Y A Time Drain  http://www.9toX.de



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-07-31 10:35           ` richtmyer
  2008-07-31 10:44             ` Georg Bauhaus
@ 2008-08-01  8:19             ` Markus Schoepflin
  2008-08-01 13:24               ` Jeffrey R. Carter
  1 sibling, 1 reply; 10+ messages in thread
From: Markus Schoepflin @ 2008-08-01  8:19 UTC (permalink / raw)


richtmyer@cox.net wrote:
> On Jul 28, 3:52 am, Markus Schoepflin <nos...@no.spam> wrote:
>> Fionn Mac Cumhaill wrote:
>>> On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtm...@cox.net wrote:
>>>> On Jul 27, 1:47 am, tmo...@acm.org wrote:
> 
>>> http://www.adapower.com/index.php?Command=Class&ClassID=AdaLibs&CID=375
>> This looks interesting, unfortunately pressing the download link gives a
>> 404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found
>> on this server.
 >
> Am looking for other copies on the web, but no luck yet.
> 
> Anybody have a copy?

Found something: 
http://web.archive.org/web/*/http://www.adapower.com/adapower1/reuse/Formatted_Output.zip

But seems like the archive is corrupt... or I don't have the right tool to 
unpack it.

Markus



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ada Function for logMsg or printf
  2008-08-01  8:19             ` Markus Schoepflin
@ 2008-08-01 13:24               ` Jeffrey R. Carter
  0 siblings, 0 replies; 10+ messages in thread
From: Jeffrey R. Carter @ 2008-08-01 13:24 UTC (permalink / raw)


Markus Schoepflin wrote:
> 
> But seems like the archive is corrupt... or I don't have the right tool 
> to unpack it.

Win XP can read the file OK.

-- 
Jeff Carter
"I didn't squawk about the steak, dear. I
merely said I didn't see that old horse
that used to be tethered outside here."
Never Give a Sucker an Even Break
103



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-08-01 13:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-25  1:50 Ada Function for "logMsg" richtmyer
2008-07-26 23:59 ` Ada Function for logMsg or printf richtmyer
2008-07-27  5:47   ` tmoran
2008-07-27 11:33     ` richtmyer
2008-07-27 21:46       ` Fionn Mac Cumhaill
2008-07-28  7:52         ` Markus Schoepflin
2008-07-31 10:35           ` richtmyer
2008-07-31 10:44             ` Georg Bauhaus
2008-08-01  8:19             ` Markus Schoepflin
2008-08-01 13:24               ` Jeffrey R. Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox