Would this small patch be of interest ? It is usually good to avoid a pre-traversal of data structures just to find out how many there are.
It would probably break binary compatibility with older versions, though. ---------- Forwarded message ---------- Date: Fri, 26 May 2006 08:51:44 +0000 From: Hylke Donker <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [Lib3ds-devel] Feature request: NumMeshes & NumNodes Whoops, I keep forgetting that it's not OO(the functions can't be part of a constructor, and there's no constructor). This time the code should work(I've even tried to compile it, and I did not get any syntax errors). Hylke From: Gernot Ziegler <[EMAIL PROTECTED]> To: Hylke Donker <[EMAIL PROTECTED]> Subject: Re: [Lib3ds-devel] Feature request: NumMeshes & NumNodes Date: Fri, 26 May 2006 01:05:57 +0200 (MEST) MIME-Version: 1.0 Received: from mail.lysator.liu.se ([130.236.254.3]) by bay0-mc1-f8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 25 May 2006 16:06:04 -0700 Received: from localhost (localhost.localdomain [127.0.0.1])by mail.lysator.liu.se (Postfix) with ESMTP id EAB1D200A1F5for <[EMAIL PROTECTED]>; Fri, 26 May 2006 01:06:03 +0200 (CEST) Received: from mail.lysator.liu.se ([127.0.0.1])by localhost (lenin.lysator.liu.se [127.0.0.1]) (amavisd-new, port 10024)with LMTP id 25201-01-54 for <[EMAIL PROTECTED]>;Fri, 26 May 2006 01:06:00 +0200 (CEST) Received: from tokaimura.lysator.liu.se (tokaimura.lysator.liu.se [130.236.254.102])(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))(No client certificate requested)by mail.lysator.liu.se (Postfix) with ESMTP id 74D44200A1F0for <[EMAIL PROTECTED]>; Fri, 26 May 2006 01:06:00 +0200 (CEST) X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo= References: <[EMAIL PROTECTED]> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at lysator.liu.se Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 25 May 2006 23:06:05.0280 (UTC) FILETIME=[CCC3E600:01C6804F] Are you sure this works ? This is a C struct, no object method - I don't get how numMeshes gets written, then ? Servus, Gernot -- T----------------------------W-E-L-C-O-M-E------------------------------T O The Austria <=> Sweden <=> Germany <=> Netherlands connection..... H | http://www.mpi-sb.mpg.de/~gziegler | http://www.lysator.liu.se/~gz E \-----------------------------F-U-T-U-R-E-------------------------------/
Lib3dsNumPatch
Description: Binary data
