From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4cbda4cb881c06d,start X-Google-Attributes: gid103376,public From: Viqar Abbasi Subject: Problems translating C to Ada Date: 1998/09/01 Message-ID: <35EC2FA8.3308@cae.ca>#1/1 X-Deja-AN: 386847729 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: CAE Electronics Ltd Mime-Version: 1.0 Reply-To: viqar@cae.ca Newsgroups: comp.lang.ada Date: 1998-09-01T00:00:00+00:00 List-Id: Hi there, I've been using CBIND revision 4 to translate tiny (one page) C programs into Ada. I recently noticed a problem that the CBIND program incorrectly translates matrices. For example, in the C file: float my_matrix[3][3]; becomes in Ada: type vector_of_c_float_t is array(integer range <>) of c.float; type matrix_of_c_float_t is array(integer range <>) of vector_of_c_float_t(0..2); my_matrix: matrix_of_c_float_t(0..2)(0..2); The problem is with the final line, which should be: my_matrix: matrix_of_c_float_t(0..2); Does anyone know if there is a newer version of CBIND out there which corrects this problem. Or, do you recommend I use the "c2ada" tool to fix this problem? My translations are really small, so I'd rather use CBIND if I can. Thanks! Viqar Recently gained Ada experience: Ada9X RM and GNAT 3.09 do not allow underscores at the end of a procedure / function / variable name. Why not?