SCCS what tags in .beam files?
Tue Mar 16 22:48:37 CET 2004
Sebastian Strollo <> wrote:
> Shawn Pearce <> writes:
> > So has anyone had good luck with putting SCCS what tags into the vsn
> > attribute of a module, and not getting garbage back? I'm doing it and
> > getting some extra crap thrown in by the beam file format.
> > This is actually not typical SCCS, but is BitKeeper and its %Z%%K% tags:
> > -vsn("%Z%K%").
> > expands to:
> > -vsn("@(#)|src/w32hook.erl|20040316035503|25088").
> Seems BitKeeper doesn't have an "end" tag? (I don't know anything
> about it, but e.g. RCS has it's tag surrounded by $Id ... $). Maybe BK
> expects null terminated strings, how about:
No, they don't use an end tag, I think they just use the null byte, as
static const char* VERSION="%Z%%K%";
which is enough. Erlang just had to go and break convention and stop
using null bytes to terminate its "strings". :-) D*** Erlang. :-)
I'll try the \000, I'm sure that's what I was looking for.
"And what do you two think you are doing?!" roared the husband, as he came
upon his wife in bed with another man. The wife turned and smiled at her
"See?" she said. "I told you he was stupid!"
More information about the erlang-questions