| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| Actually, an Ada version of printf would be sufficient, just a little modification needed. thanks |
|
#3
| |||
| |||
| >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? |
|
#4
| |||
| |||
| 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. |
|
#5
| |||
| |||
| 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?Co...daLibs&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 |
|
#6
| |||
| |||
| 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?Co...daLibs&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? |
|
#7
| |||
| |||
| 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?Co...daLibs&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 |
|
#8
| |||
| |||
| 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?Co...daLibs&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://...ted_Output.zip But seems like the archive is corrupt... or I don't have the right tool to unpack it. Markus |
|
#9
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.