ANSI INCITS ISO IEC 9593-4-1991 Information Technology C Computer Graphics C Programmer s Hierarchical Interactive Graphics System (PHIGS) language bindings (Part 4 C) (Adopted by .pdf
《ANSI INCITS ISO IEC 9593-4-1991 Information Technology C Computer Graphics C Programmer s Hierarchical Interactive Graphics System (PHIGS) language bindings (Part 4 C) (Adopted by .pdf》由会员分享,可在线阅读,更多相关《ANSI INCITS ISO IEC 9593-4-1991 Information Technology C Computer Graphics C Programmer s Hierarchical Interactive Graphics System (PHIGS) language bindings (Part 4 C) (Adopted by .pdf(318页珍藏版)》请在麦多课文档分享上搜索。
1、 INCITS/ISO/IEC 9593-4-1991 (R2002)for Information Technology Computer Graphics Programmers Hierarchical Interactive GraphicsSystem (PHIGS) language bindings(Part 4: C)AmericanNationalStandardApproval of an American National Standard requires review by ANSI that therequirements for due process, cons
2、ensus, and other criteria for approval havebeen met by the standards developer.Consensus is established when, in the judgment of the ANSI Board of StandardsReview, substantial agreement has been reached by directly and materiallyaffected interests. Substantial agreement means much more than a simple
3、majority, but not necessarily unanimity. Consensus requires that all views andobjections be considered, and that a concerted effort be made toward theirresolution.The use of American National Standards is completely voluntary; their existencedoes not in any respect preclude anyone, whether he has ap
4、proved the standardsor not, from manufacturing, marketing, purchasing, or using products, processes,or procedures not conforming to the standards.The American National Standards Institute does not develop standards and will inno circumstances give an interpretation of any American National Standard.
5、Moreover, no person shall have the right or authority to issue an interpretation ofan American National Standard in the name of the American National StandardsInstitute. Requests for interpretations should be addressed to the secretariat orsponsor whose name appears on the title page of this standar
6、d.CAUTION NOTICE: This American National Standard may be revised orwithdrawn at any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, or withdrawthis standard. Purchasers of American National Standards may receive currenti
7、nformation on all standards by calling or writing the American National StandardsInstitute.Published byAmerican National Standards Institute11 West 42nd Street, New York, New York 10036Copyright 1991 by Information Technology Industry Council (ITI)All rights reserved.These materials are subject to c
8、opyright claims of International Standardization Organization (ISO),American National Standards Institute (ANSI), and Information Technology Industry Council (ITI). Not forresale. No part of this publication may be reproduced in any form, including an electronic retrieval system,without the prior wr
9、itten permission of ITI. All requests pertaining to this standard should be submitted toITI, 1250 Eye Street NW, Washington, DC 20005.Printed in the United States of AmericaANSI/IS0 9593-4-l 991 American National Standard for Information Technology - Computer Graphics - Programmers Hierarchical Inte
10、ractive Graphics System (PHIGS) Language Bindings (Part 4: C) Secretariat Computer and Bushess Equipment Manufacturers Association Approved August 3, 1992 American National Standards Institute, Inc. _ - -.- _-.- - I _ _ _ ,I_ _. yli ._- -,-_ -._ -.L _Y - ,-= -. uLd,_ Therefore, the file phigs. h sha
11、ll include inordertodefine size-t. The file phigs.h shallalsocontain extemalprototypedeclarations forallPHIGS Cfunctionsbecause they return void. For example, the declaration for the function popenghigs is: extern void popenghigs(const char *err file, size-t mem-units); - ISO/IEC 9593-4:1991(E) The
12、C language binding of PHIGS 3.9 Memory management The application shall allocate the memory needed for the data returned by the implementation. In general, the appli- cation will allocate a C structure and pass a pointer to that structure to an inquiry routine which will then place information into
13、the structure. However, a number of inquiry functions return variable length data, the length of which is not known a priori by the application. These functions fall into two classes. One class of functions returns a simple, homogeneous list of elements. For example, the function INQUIRE STRUCWRE ID
14、ENTIFIERS returns a list of the structure identifiers in use. The other class returns complex, heterogeneous data structures. For example, the function INQUIRE LOCATOR DEV- ICE STATE returns the device state which includes a locator data record; the data record can contain arbitrarily complex implem
15、entation-defined data structures. The binding of these two classes of functions is described in detail below. Additional binding-specific errors which relate to memory management are described in 3.11.3. 3.9.1 Inquiry functions which return simple lists Inquiry functions which return a list of eleme
16、nts are bound such that the application can inquire about a portion of the list. This list portion is a subset of the implementations internal list and is called the applications list. This allows the application to process the implementations list in a piecewise manner rather than all at once. The
17、application allocates the memory for its list and passes that list to the implementation. The implementation places the results of the inquiry into the list. In order to support this policy of memory management, three additional parameters have been added to functions which return simple lists: a) n
18、um-elem-appl-list: An integer input parameter which is the size of the applications list. The value of num-elem-appl-list indicates the number of list elements which will fit into the applications list. A value of 0 is valid and allows the application to determine the size of the implementations lis
19、t (which is returned via num-el em-impl-1 i st) without having the implementation return any of the elements of its list. b) start-ind: An integer input parameter which is the starting index into the implementations list. (Index 0 is the first element of both the implementations and applications lis
20、t.) start-ind indicates the element in the implementations list that is copied into index 0 of the applications list. Elements are copied sequentially from the implementations list into the applications list until the applications list is full or there are no more elements in the implementations lis
21、t. If start ind is out of range, error number 2200 (PE-START-IND-INVAL) is returned as the value of the error indicator parameter. cl num elem-impl-list: An output parameter which is a pointer to an integer. The implementation stores into rhis parameter the number of elements that are in the impleme
22、ntations list. Each function which returns a simple list has an output parameter list, which is a pointer to a structure with fields for the number of elements in the list and a pointer to the elements in the list. The type of list depends upon the function in which it is used. The implementation pl
23、aces the elements in the memory pointed to by they cannot be represented by a simple list of elements. It would be an onerous task for the application to allocate and to prepare data structures for these routines. In order to facilitate the task of using these inquiry functions, the binding defines
24、a new resource, called a it does not use the Store to access the data. For some functions, a Store is used to manage the memory for two or more distinct complex data structures. For example, in the function INQUIRE PICK DEVICE STATE, the Store manages the memory for the pick filter, the initial pick
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIINCITSISOIEC959341991INFORMATIONTECHNOLOGYCCOMPUTERGRAPHICSCPROGRAMMERSHIERARCHICALINTERACTIVEGRAPHICSSYSTEMPHIGSLANGUAGEBINDINGSPART4CADOPTEDBYPDF

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