X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Juan Manuel Guerrero Newsgroups: comp.os.msdos.djgpp Subject: Re: snprintf with 2.03, ANNOUNCE: release 3 of the DJGPP port of Splint 3.1.2 Date: Thu, 17 Jan 2008 13:28:00 -0800 (PST) Organization: http://groups.google.com Lines: 36 Message-ID: <2884c73a-8622-49af-bea5-df2cf049f9f7@d4g2000prg.googlegroups.com> References: <200801161852 DOT m0GIqI28012817 AT delorie DOT com> NNTP-Posting-Host: 88.68.45.59 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1200605280 18894 127.0.0.1 (17 Jan 2008 21:28:00 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Thu, 17 Jan 2008 21:28:00 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: d4g2000prg.googlegroups.com; posting-host=88.68.45.59; posting-account=OsAajgoAAADdKJnkJkmhzqP0jo6I_P_0 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/48 (like Gecko) Safari/48,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rod Pemberton schrieb: > Can the snprintf sourcecode from DJGPP 2.04 be used with DJGPP 2.03? If so > and since DJ said 2.03 won't be updated to have snprintf, could you include > it with packages that use it? Yes, it can be done. I always include everthing I use to configure and compile a package in the /djgpp dir. The things are either in the diffs file or the files itself are stored. If I checkout something from CVS I put that files (modified or not) always in the /djgpp dir. E.G. for the way I have used snprintf look at current/v2tk/png1222b.zip. In /djgpp the required header and the CVS version of snprintf.c is stored. The makefile is modified in such a way that snprintf is compiled and the object file is added to the list of object files and placed before libc in the linker command line. > Including getopt.h, getop.c getopt1.c > gettext.h for DJGPP getopt support would be useful also. Otherwise, I've > been converting snprintf to sequences of sprintf and strncpy... Actually, a > small package of routines to update 2.03, without adding support for more > advanced 2.04 features - like file links, would be wonderful. I have no objections but I do not know what DJ thinks about this. Anyway to make a small support library lets say it will provide snprintf, getopt and getopt1. Regards, Juan M. Guerrero