delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2016/08/06/15:43:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=3mVyvmcd6D/t9iaWcDbv+LxJ8f+Ej4punoix43gku64=;
b=mkDWnPcaMtEU53gjdrgU7ozGMj6UsYURP/fh9QnxWFlXX5wtz4/xzF3j7ilKFFveDb
hkmz6xnhaYal4BrjXBN8fVDeQMUT2yNJ0D8UVj5Gt4LUSQ4A0TuBoUUcODgyC1bvLtaM
TxsNpJBafzb3lesrpT2+aRKKpsqlNofd6lg4/COLvm76C7pxwn3yjad9iDd+IVXlOGlw
pK9RlGa30rGdMplIypfEEAzXIeBS+jRBrsirwZVT4Qk+NCGhQ02CjHsH1T3uBbXwzfo7
To37n2pzwEkPntNvEyzhIUD703y8SzqoJ5N13oQ916sz0aYvgSI3xLtVsLvfiA0G+jko
t68A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=3mVyvmcd6D/t9iaWcDbv+LxJ8f+Ej4punoix43gku64=;
b=AEsxaTmTBcHLUl/64/MRSpMJB90kVHKqVrPbUzNMh0Zqn4qPmF5EIKVgkA/QTu1u4/
ITtr+JMqMlf+B3RM5WnNKexOf5u3XrTgZAsmbYoBe80u+oYYd8HKN4PuOQePIcmv5xzN
GrfgbfqaXixtyq4mr9+SBQvhmNsLcRCR03g5pSMRwzlYUhMoa05jObHW1I5Xbm4vyPHf
RB+LOMi25iI8DZn2GM2rcobR1xncOfBr3yVl26TYNva9HVl5CTqdwhOFGWeJERah24S4
t/gOVVjrqQPt4FgleppyA8jqIPCHFUJ88L/37cyR8AjBX5khXpjLPRhBfO04auZX9qc3
VJUQ==
X-Gm-Message-State: AEkoouuQUg4Zc/tkvf7lUNGLCzXxfCUG/62fcFMIVGtBoWFBBIfnmtWaRSlccKiltdvE1IENIzr2u7DhlKWH1A==
X-Received: by 10.31.94.73 with SMTP id s70mr4890253vkb.78.1470512582468; Sat,
06 Aug 2016 12:43:02 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAA2C=vD2ML8fKhCmH=g8Q4QkjgfPJ0CMg17DB31obdvxe9BQhw@mail.gmail.com>
References: <CAA-ihx-exBLSkvQqFz5BHj_Ma1Cqn7bUqYwSPvUMEh7_-ARJEA AT mail DOT gmail DOT com>
<CAA2C=vD2ML8fKhCmH=g8Q4QkjgfPJ0CMg17DB31obdvxe9BQhw AT mail DOT gmail DOT com>
From: "Rugxulo (rugxulo AT gmail DOT com) [via djgpp-workers AT delorie DOT com]" <djgpp-workers AT delorie DOT com>
Date: Sat, 6 Aug 2016 14:43:02 -0500
Message-ID: <CAA-ihx--W+VMU6QpXYsB3G2kT59wVMsHj53ewEYKmV-JHTbAFA@mail.gmail.com>
Subject: Re: linking more bloat from ctime.c
To: djgpp-workers AT delorie DOT com
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi,

On Sat, Aug 6, 2016 at 12:10 PM, Ozkan Sezer (sezeroz AT gmail DOT com) [via
djgpp-workers AT delorie DOT com] <djgpp-workers AT delorie DOT com> wrote:
>
> To overcome the bloat from ctime.c, I have been using the attached
> djtime.c for some time.  It also avoids all timezone thingies.  Maybe it
> would be useful to you and-or to someone else.

Thanks, that's cool and all, and I'm sure it's useful, but that's not
quite what I wanted.

Anyways, Juan previously said that he has no interest in removing
timezones, and I agree. I'm not complaining about that TZ bloat, only
that it (unnecessarily, IMHO) links in doprnt.o , which is quite a
large bump for programs (like mine) that try to explicitly avoid
*printf.

A quick Google search found a BSD-licensed "tiny printf" that also has
sprintf():

"The formats supported by this implementation are: 'd' 'u' 'c' 's' 'x' 'X'.
Zero padding and field width are also supported."

https://github.com/DarkWishMaster/TinyStdio

(That's actually a float-enabled fork, but it points to the original URL too.)

Note that I don't actually expect anyone to borrow from this or waste
any time on it, just mentioning it just in case. I haven't tested it
yet either.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019