[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bootconfig



>>>>> "Mark" == Mark van Walraven <markv@wave.co.nz> writes:

    Mark> On Thu, Feb 17, 2000 at 01:39:06PM -0800, Karl M. Hegbloom wrote:
    >> Ok; I looked; using `sizeof' on a char * "string" isn't right, is it?
    >> I think you have to use strlen then, or you'll get the size of a char
    >> *, not the length of the string.  I've changed it to strlen in the
    >> branch already.

    Mark> Where have I done this?  Note that a string literal is not the same size as
    Mark> char *.  Try compiling and running:

    Mark> 	main() { exit(sizeof "hello"); }

    Mark> ... the exit code should be 6.

 Oh.  I just checked, and you're right.  I thought it would return the
 size of a char *, which is probably 4.

    >> ... Then moved the placemarker tag forward along with the join.  That
    >> has been committed on the branch, so you can just update to get them.

    Mark> My concern is more that the branch contains many separate changes,
    Mark> so modifications and debugging are much more difficult.  Even trivial
    Mark> diffs are large and with so few bashing away on that branch, we lose the
    Mark> many-eyes effect.  I think the difficulty can be reduced considerably
    Mark> if we start merging "safe" changes back into the main truck.

    >> Ok, I'll take a look at it.  Please pull out a copy of the branch of
    >> `dbootstrap' I've created, and have a look at what I did with that.

    Mark> I will continue to track the changes.

 Please make a set of floppies using a build from the branch and test them.


Reply to: