Open System Portability Checker Update (May 94)

Embedded SQL

OSPC now supports embedded SQL/2 (ISO/IEC 9075:1992). The latest version of the SQL standard is almost twice the size of the previous standard, published in 1987. As well as supporting the SQL standard, extensions added by the larger vendors are also handled.

Previous versions of OSPC required that users first process their application with an SQL preprocessor, before the C source could be checked. It is now possible to use the command line option -SQL to tell OSPC to expect embedded SQL to occur within the C source code. On encountering any SQL a separate SQL processing module is invoked to perform the analysis.

While processing the embedded SQL, OSPC performs checks against various common extensions and the SQL levels specified in the standard. These are flagged through the normal error handling machinery. OSPC also performs checks against identifiers that have been reserved for future revisions of the SQL standard.

The two sets of vendor extensions supported in the current release are Oracle (Pro *C) and Ingres (includes support for SQL/FORMS).

There have been a number of requests for the flagging of certain additional SQL constructs. The first release contains a limited number of these checks. It is expected that future releases will include further checks, both against the SQL and the SQL/C interface. If you have any thoughts on this topic we would be very happy to hear about them.

SunScope Spring meeting

At the SunScope meeting, in January, jointly organised by Sun UK and UKUUG Derek Jones presented a paper entitled "Verifying Claims of Open Systems Conformance". This paper outlined the steps a user might go through to determine what standards a vendors product conformed to, if any. If you would like a copy of this paper contact Knowledge Software.

Revising the C standard

At the last meeting of WG14 (ISO committee responsible for C) it was agreed that work would start on revising the C standard. The Tokyo meeting of WG14, being held in July, will discuss the broad issue of where we think the C language ought to go. Thereafter WG14 meetings will be extended from three to five days to cover the additional work load (the original ANSI C committee met five days a week every three months).

The UK C panel considered its position on the revision of the C language at its last meeting. It was agreed that C had different aims and was addressed to different problems than C++. Although they are related the two languages will invariably evolve along different paths. However, it was felt that gratuitous differences should be avoided.

Some of the constructs being proposed for C9X include support for parallel processing, packed datatypes and more facilities to help track down problems during development, ie checking values are within predefined ranges.

If anybody is interested in taking part in the C standardisation process they should contact the UK C panel convenor, Derek Jones, on (0252) 520667. Meetings are held four times a year in central London.

Work on the first Addendum has reached the final ISO balloting stage. The Addendum specifies additional library functions needed to support the handling of multi-byte characters. It is expected that the final document will be published later in the year.

Additional C/C++ differences

The C++ standards committee (WG 21) are continuing to refine and extend the language originally defined by Bjarne Stroustrup. The latest additions include a boolean datatype and making the typedef wchar_t a keyword.

OSPC has been following these changes and the latest release supports a number of C++ constructs, that many vendors now support in their C compilers. It also flags more C constructs whose behaviour may differ when processed by a C++ compiler.

Anybody interested in taking part in the C++ standard process should contact the panel convenor, Richard De Morgan, on 071 371 6633.


Those customers with a current support agreement will be upgraded with the latest version of OSPC (3.0) at the end of June.

We are sometimes asked about support for new platforms in the OSPC database. Most of this information is generated automatically. Given copies of the appropriate system headers files we are always happy to generate a database for a new platform on the condition that it can also be integrated into our own database. Creating a database from a standards document usually involves a lot of effort. So this service has to be charged.

Contact Details

Tel : 0252-520667 Internet: OSPC@knosof.uucp, or

© Copyright 1995. Knowledge Software Ltd. All rights reserved;