Commit 9832bf9e authored by Steve Lhomme's avatar Steve Lhomme

spec: generate the C++ semantic properly (.cpp and .h files)

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@721 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 3ae194ac
This diff is collapsed.
......@@ -341,7 +341,7 @@ static void OutputCHeader(textwriter *CFile, bool_t WithInclude)
TextWrite(CFile, T("/*\n"));
TextWrite(CFile, T(" * DO NOT EDIT, GENERATED WITH DATA2LIB2\n"));
TextWrite(CFile, T(" *\n"));
TextPrintf(CFile, T(" * $Id $\n"));
TextPrintf(CFile, T(" * $Id$\n"));
TextWrite(CFile, T(" * Copyright (c) 2008-2011, Matroska (non-profit organisation)\n"));
TextWrite(CFile, T(" * All rights reserved.\n"));
TextWrite(CFile, T(" *\n"));
......
......@@ -149,6 +149,10 @@ void ReadSpecElement(SpecElement *elt, parser *p)
ExprIsInt(&s,&intval);
elt->MaxVersion = intval;
}
else if (tcsisame_ascii(String,T("bytesize"))) {
ExprIsInt(&s,&intval);
elt->ByteSize = intval;
}
else if (tcsisame_ascii(String,T("webm"))) {
ExprIsInt(&s,&intval);
elt->InWebM = intval!=0;
......
......@@ -62,6 +62,7 @@ typedef struct SpecElement {
tchar_t Range[MAXPATH];
tchar_t DefaultValue[32];
int MinVersion, MaxVersion;
int ByteSize;
bool_t InWebM;
bool_t InDivX;
tchar_t Description[MAXLINE];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment