TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Doug Smith <[log in to unmask]>
Reply To:
Doug Smith <[log in to unmask]>
Date:
Sat, 11 Dec 1999 12:13:23 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (61 lines)
Maybe you would prefer this style of binding (which is not currently being maintained, although no defects have been reported to me for over 4 years):

  <http://www.adasmith.com/webada/source/cgi/>

Doug
[log in to unmask]

At 11:31 AM -0500 12/11/99, Robert C. Leif, Ph.D. wrote:
>From: Bob Leif
>To: Geoff Bull et al.
>
>Please see David A. Wheeler's CGI.Adb. It contains the following:
>------------------------------------------------------------------
>function getenv(Variable : chars_ptr) return chars_ptr;
>  pragma Import(C, getenv);
>  -- getenv is a standard C library function; see K&R 2, 1988, page 253.
>  -- it returns a pointer to the first character; do NOT free its results.
>----------------------------------------------------------------------
>I hope that the Ada compiler vendors will permit the use of Wheeler's CGI
>library by including this function in their standard libraries. I have not
>been able to find it in the ObjectAda libraries.
>
>I should note that the user of an Ada compiler should not be required to use
>subprograms which include C data types. It should be possible to function in
>Ada without any knowledge of C or its relatives. Since most of us believe
>that Ada is an excellent choice for the first course in software
>engineering, a knowledge of C should and can not be a prerequisite for the
>learning of Ada. I might note that for the students that I have taught in
>chemistry,  biology, and even biomedical engineering; two semesters of Ada
>combined with software engineering would be a great improvement over their
>present curriculum and sufficient for their future work.
>
>Ultimately, a standard library to interface with HTML-XML (Ada.XML_IO)
>should be designed and implemented.
>
>It should include something like
>function getenv(Variable_Name : String) return String;
>
>
>-----Original Message-----
>From: Team Ada: Ada Advocacy Issues (83 & 95)
>[mailto:[log in to unmask]]On Behalf Of Geoff Bull
>Sent: Saturday, December 11, 1999 6:24 AM
>To: [log in to unmask]
>Subject: Re: Accessing "CGI data" (Was: Rational A.5 Command Line and
>HTML)
>
>
>Jacob Sparre Andersen wrote:
>>
>> It seems that nobody are aware of to excellent (imo) Ada CGI
>> library by David A. Wheeler that has been around for a while
>> by now:
>>
>> http://wuarchive.wustl.edu/languages/ada/swcomps/cgi/cgi.html
>>
>> There is no need to play around with C code, if you use the
>> routines in this library.
>
>Yeah, but unfortunately it is LGPL.

ATOM RSS1 RSS2