CAN CSA-ISO IEC 10728A-2013 Information technology - Information Resource Dictionary System (IRDS) Services Interface AMENDMENT 1 C language binding.pdf
《CAN CSA-ISO IEC 10728A-2013 Information technology - Information Resource Dictionary System (IRDS) Services Interface AMENDMENT 1 C language binding.pdf》由会员分享,可在线阅读,更多相关《CAN CSA-ISO IEC 10728A-2013 Information technology - Information Resource Dictionary System (IRDS) Services Interface AMENDMENT 1 C language binding.pdf(26页珍藏版)》请在麦多课文档分享上搜索。
1、Information technology Information Resource Dictionary System (IRDS) Services Interface AMENDMENT 1: C language binding Amendment 1:2013 (IDT) toNational Standard of CanadaCAN/CSA-ISO/IEC 10728-95(ISO/IEC 10728:1993, IDT)NOT FOR RESALE. / PUBLICATION NON DESTINE LA REVENTE.Standards Update ServiceAm
2、endment 1:2013 toCAN/CSA-ISO/IEC 10728-95January 2013Title: Information technology Information Resource Dictionary System (IRDS) Services Interface AMENDMENT 1: C language binding Pagination: 19 pages (ii preliminary and 17 text)To register for e-mail notification about any updates to this publicati
3、ongo to shop.csa.caclick on CSA Update ServiceThe List ID that you will need to register for updates to this publication is 2422238.If you require assistance, please e-mail techsupportcsagroup.org or call 416-747-2233.Visit CSA Groups policy on privacy at csagroup.org/legal to find out how we protec
4、t your personal information.INTERNATIONAL STANDARD ISO/IEC 10728 First edition 1993-04-15 AMENDMENT 1 1995-12-15 Information technology - Information Resource Dictionary System (IRDS) Services Interface AMENDMENT 1: C language binding Technologies de I information - Interface de servkes du gestionna
5、ire de ressources du Systeme d informations (IRDS) AMENDEMENT 7: Liant de langage C Reference number ISO/lEC 10728:1993/Amd.l :1995(E) ISO/IEC 10728:1993/Amd 1:1995(E) Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the s
6、pecialized System for worldwide standardization. National bodies that are mem- bers of ISO or IEC participate in the development of International Standards through technical com- mittees established by the respective organization to deal with particular fields of technical activity. ISO and IEC tech
7、nical committees collaborate in fields of mutual interest. Other international organizations, govemmental and non-govemmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. Dra
8、ft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote. Amendment 1 to International Standard ISO/IEC 10728:1993 was prepared b
9、y Joint Technical Com- mittee ISO/IEC JTC 1, Information technology, Subcommittee SC 21, Open Systems interconnection, data management and open distributed processing. . 0 ISO/IEC 1995 All rights reserved. Unless otherwise specified, no part of this publication may be repro- duced or utilized in any
10、 form or by any means, electronie or mechanical, including photo- copying and microfilm, without Permission in writing from the publisher. ISO/IEC Copyright Office l Case Postale 56 l CH- 1211 Geneve 20 l Switzerland Printed in S wi tzerland Amendment 1:2013 to CAN/CSA-ISO/IEC 10728-950 ISO/IEC ISO/
11、IEC 10728:1993/Amd 1:1995(E) Information technology - Information Resource Dictionary System (IRDS) Service Interface AMENDMENT 1: C language binding Page v Contents Add a new entry to the Table of Contents as follows: “Annex C - C language binding” Page 1 Clause 1 Add a new sentence in clause 1 Par
12、agraph 2, before the last sentence. “A language binding for the C language is provided in annex C.” Page 5 Subclause 4.4 Add a new sentence in subclause 4.4. “Data structures for use with the C language are defined in annex C.” Page 5 Subclause 4.5 Add a new sentence in subclause 4.5. “C language bi
13、ndings for the Services are provided in annex C.” Page 71 Subclause 8.1 Amend the first sentence of the NOTE in subclause 8.1 to read: “For the Pascal language binding specified in this clause and the C language binding specified in annex C, enumerated types are . . ” Page 75 Clause 9 Amend the firs
14、t sentence of the second Paragraph of Clause 9 to read: “The Service formats are specified in this clause using ISO Standard Pascal. Alternative Service formats for use with the C language are specified in annex C.” Page 105 Add a new annex C as follows: Amendment 1:2013 to CAN/CSA-ISO/IEC 10728-95I
15、SO/IEC 10728:1993/Amd 1:1995(E) 0 ISO/IEC Annex C (normative) C language binding The IRDS Services Interface language bindings for the C language are presented in the form of a C .h file as set out in clause C.3 below. C.1 Strategy for the Language Binding In this binding the data names and data str
16、uctures defined in clause 8 have been adhered to except where the C language does not provide an appropriate construct. In this binding the procedure names and their Parameters defined in clause 8 have been adhered to except where the C language does not provide an appropriate construct. Macros have
17、 been used for various limits instead of const-qualified variables. Standard C requires that the length of an array be a compile-time constant integer expression and a const- qualified variable does not have this property. Use of this language binding requires the use of a C implementation that conf
18、orms to ISO/IEC 9899: 1990. C.2 General Rules 1 . Those data names in C.2 below that also appear in Clause 8 shall have the same meaning as is defined in Clause 8. The Same rules for the use of separators as defined in Clause 8 shall apply. 2 . The function and Parameter names in C.2 below shall hav
19、e the Same meaning as is defined in Clause 9. 3 . The Service Return Codes returned shall be those defined by Clause 9 and Annex A and they shall have the Same meaning. 4 . The following mappings from SQL data types to C data types have been used: SQL DATA TYPE CHARACTER CHARAm VARYING JWTIONAL,CHAR
20、A! NATIONALCHARACT!ERvARyIT JG DXJBLE PRlzcIsIaN FLOAT mm sb4AILm NUMERK DEUMALl mm C DATA TYPE pIrdsText pIrdsText pIrdsText pIrdsText float double float /* See 8.2.1 */ /* See 8.2.1 */ /* See 8.2.1 */ /* See 8.2.1 */ short lang 1oKl IrdsIBte IrdsTime /* See 8.2.1 */ /* See 8.2.1 */ Amendment 1:201
21、3 to CAN/CSA-ISO/IEC 10728-950 ISO/IEC ISO/IEC 10728:1993/Amd 1:1995(E) TIMEST= lIINlxRw IrdsTimeStamp /* See 8.2.1 */ IrdsInterval /* See 8.2.1 */ 5 . Every function returns an int which is to be set to the value of the NumStates field of the RetCode returned by the function. C.3 Notes for Implerne
22、ntors 1 . To ensure uniqueness all extemally visible names Start with the characters Irds. 2 For readability and because of the above requirement, many names are not unique within the first six characters of the name. Those implernentors whose implernentations do not support long names are to add su
23、itable #define Statements to ensure that all names are distinguished by their implementation. For example, #define IrdsOpen 1 0 - #define IrdsOpenCursor 1 OC - C.4 C language .h file / * This file is called irds.h * * This version of this header conforms to: * ISO/IEC 10728:1993 (E) * IRDS Services
24、Interface 3; * 0 Cowright ISO 1995 * / /* Protect against multiple inclusion of the header file */ #ifndef IRDS H #define IRDS-H - /* Allow use 3cqr C+ Compilers */ #ifdef cplusplus extern “C“ #endif #include 1rd.sTi.rr-e; typedef struct -t IrdsDate Date; ChX Sepr7; IrdsTime Time; IrdsTimestamp; Ame
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CANCSAISOIEC10728A2013INFORMATIONTECHNOLOGYINFORMATIONRESOURCEDICTIONARYSYSTEMIRDSSERVICESINTERFACEAMENDMENT1CLANGUAGEBINDINGPDF

链接地址:http://www.mydoc123.com/p-590225.html