login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
git
»
2007
»
September
»
7
Re: [PATCH 4/3] archive: specfile syntax change: "$Format:%PLCHLDR$" instead of just "%PLCHLDR"
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Johannes Schindelin <Johannes.Schindelin@...>
To: <rene.scharfe@...>
Cc: Junio C Hamano <gitster@...>, Andreas Ericsson <ae@...>, Git Mailing List <git@...>, Michael Gernoth <simigern@...>, Thomas Glanzmann <thomas@...>
Subject:
Re: [PATCH 4/3] archive: specfile syntax change: "$Format:%PLCHLDR$" instead of just "%PLCHLDR"
Date: Friday, September 7, 2007 - 6:44 am
Hi, On Thu, 6 Sep 2007, René Scharfe wrote:
quoted text
> Johannes Schindelin schrieb: > >> + > >> + b = memchr(a, '$', len); > >> + if (!b || a + len < b + 9 || memcmp(b + 1, "Format:", 7)) > >> + break; > > > > Wouldn't memmem(buffer, len, "$Format:", 8) be better here? > > Oh, that's a nice GNU extension, didn't know it before.
Oh sorry, I didn't even realise that this is a GNU extension...
quoted text
> > A general comment: since you plan to output the result into a file > > anyway, it should be even easier to avoid realloc(), and do a > > print_formatted_specfile() instead of a format_specfile(), no? > > Hmm, not sure what you mean. At least archive-tar needs the expanded > contents in a buffer (not immediately written to stdout) because it > tries to mimic a real tar and always writes in blocks of 10k and > therefore needs to buffer the output.
Yeah, I missed that. Thanks for explaining it to me! Ciao, Dscho
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 2/3] archive: specfile support (--pretty=format: in a...
,
, (Mon Sep 3, 2:07 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, Junio C Hamano
, (Mon Sep 3, 7:53 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
,
, (Tue Sep 4, 7:13 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, Junio C Hamano
, (Tue Sep 4, 8:19 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, Andreas Ericsson
, (Tue Sep 4, 1:45 am)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, Johannes Schindelin
, (Tue Sep 4, 6:41 am)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
,
, (Tue Sep 4, 7:13 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, Johannes Schindelin
, (Tue Sep 4, 8:12 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, Junio C Hamano
, (Tue Sep 4, 8:23 pm)
[PATCH 5/3] archive: rename attribute specfile to export-subst
,
, (Thu Sep 6, 12:51 pm)
Re: [PATCH 5/3] archive: rename attribute specfile to export...
, Johannes Schindelin
, (Thu Sep 6, 1:13 pm)
Re: [PATCH 5/3] archive: rename attribute specfile to export...
, Junio C Hamano
, (Thu Sep 6, 5:03 pm)
Re: [PATCH 5/3] archive: rename attribute specfile to export...
, Johannes Schindelin
, (Fri Sep 7, 6:45 am)
Re: [PATCH 5/3] archive: rename attribute specfile to export...
,
, (Thu Sep 6, 4:38 pm)
[PATCH 4/3] archive: specfile syntax change: "$Format:%PLCHL...
,
, (Thu Sep 6, 12:20 pm)
[PATCH 4/3] archive: specfile syntax change: "$Format:%PLCHL...
,
, (Thu Sep 6, 6:34 pm)
[PATCH 3.5/3] add memmem()
,
, (Thu Sep 6, 6:32 pm)
Re: [PATCH 4/3] archive: specfile syntax change: "$Format:%P...
, Johannes Schindelin
, (Thu Sep 6, 1:11 pm)
Re: [PATCH 4/3] archive: specfile syntax change: "$Format:%P...
,
, (Thu Sep 6, 4:35 pm)
Re: [PATCH 4/3] archive: specfile syntax change: "$Format:%P...
, Johannes Schindelin
, (Fri Sep 7, 6:44 am)
Re: [PATCH 4/3] archive: specfile syntax change: "$Format:%P...
,
, (Thu Sep 6, 4:53 pm)
Re: [PATCH 4/3] archive: specfile syntax change: "$Format:%P...
, Junio C Hamano
, (Thu Sep 6, 7:17 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, Johannes Schindelin
, (Mon Sep 3, 2:40 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
, David Kastrup
, (Mon Sep 3, 4:19 pm)
Re: [PATCH 2/3] archive: specfile support (--pretty=format: ...
,
, (Tue Sep 4, 7:13 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor...
Bart Van Assche
Re: Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Mark Lord
Re: [BUG] New Kernel Bugs
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
561 guests
online.
Syndicate