Hi,

> -----Original Message-----
> From: Johannes Schindelin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 05, 2008 7:43 AM

> > Big question first: can we use some parts of git? For example,
> > git-compat-util.h? Or regex.[ch]?
> Hmm.  Since libgit.a is really not meant as a public library (too many
> die()s in there, for one), I would try to refrain from that.
Given the above...

> > > > +/* replaces a substring pattern with a string
> > > > +static char *strreplace(char *string,
> > > > +                                               const char *pattern,
> > > > +                                               const char
*replacement)
> > > This is not safe <snip>
> > Oh! I was really hoping for something like "well, well... lack of
> > Unix experience shows... why not use regex library" :)
> > This function alone is the reason for the big question.
> You mean strbuf?  Sure, why not?
And given that strbuf does not seem to be a part of standard runtime, I'll
fix my strreplace.

> > regsvr32 has [seemingly] complicated way to identify what to call.
> Ah!  That is indeed funny.  But what about
> 
>       $ regsvr32 -i:debug C:\machine\git-cheetah.dll
> 
> Would that not pick up the "machine" erroneously in DllInstall?
It should not. Because DllInstall does machine-wide operations only if it
finds "machine" somewhere in the command line ("something" in -i:something
is what's called "command line" in this context).

--
Kirill.

Reply via email to