LwipMibCompiler: preserve upper case in comments

This commit is contained in:
Jan Breuer 2016-03-09 19:56:49 +01:00 committed by Dirk Ziegelmeier
parent 588b11185a
commit b849e52c17
5 changed files with 8 additions and 8 deletions

View File

@ -215,7 +215,7 @@ namespace LwipMibCompiler
private static SnmpTreeNode GenerateSnmpTreeNode(MibTreeNode mibTreeNode, SnmpTreeNode parentNode)
{
SnmpTreeNode result = new SnmpTreeNode(parentNode);
result.Name = _alphaNumericRegex.Replace(mibTreeNode.Entity.Name, "").ToLowerInvariant();
result.Name = _alphaNumericRegex.Replace (mibTreeNode.Entity.Name, "");
result.Oid = mibTreeNode.Entity.Value;
result.FullOid = MibTypesResolver.ResolveOid(mibTreeNode.Entity).GetOidString();
@ -337,7 +337,7 @@ namespace LwipMibCompiler
}
}
result.Name = _alphaNumericRegex.Replace(ote.Name, "").ToLowerInvariant();
result.Name = _alphaNumericRegex.Replace(ote.Name, "");
result.Oid = ote.Value;
if (ote.Access == MaxAccess.readWrite)

View File

@ -53,7 +53,7 @@ namespace LwipSnmpCodeGeneration
public override string FullNodeName
{
get { return this.Name + "_root"; }
get { return this.Name.ToLowerInvariant() + "_root"; }
}
public override void GenerateCode(MibCFile mibFile)
@ -73,7 +73,7 @@ namespace LwipSnmpCodeGeneration
boidInitialization.Append("}");
VariableDeclaration boidDecl = new VariableDeclaration(
new VariableType(this.Name + "_base_oid", LwipDefs.Vt_U32, null, ConstType.Value, String.Empty),
new VariableType(this.Name.ToLowerInvariant() + "_base_oid", LwipDefs.Vt_U32, null, ConstType.Value, String.Empty),
boidInitialization.ToString(), true);
mibFile.Declarations.Add(boidDecl);

View File

@ -49,7 +49,7 @@ namespace LwipSnmpCodeGeneration
public override string FullNodeName
{
get { return this.Name + "_scalars"; }
get { return this.Name.ToLowerInvariant() + "_scalars"; }
}
protected override IEnumerable<SnmpScalarNode> AggregatedScalarNodes

View File

@ -57,7 +57,7 @@ namespace LwipSnmpCodeGeneration
public override string FullNodeName
{
get { return this.Name + "_scalar"; }
get { return this.Name.ToLowerInvariant() + "_scalar"; }
}
public SnmpDataType DataType

View File

@ -50,7 +50,7 @@ namespace LwipSnmpCodeGeneration
public override string FullNodeName
{
get { return this.Name + "_treenode"; }
get { return this.Name.ToLowerInvariant() + "_treenode"; }
}
public string FullOid
@ -119,7 +119,7 @@ namespace LwipSnmpCodeGeneration
}
VariableDeclaration subnodeArray = new VariableDeclaration(
new VariableType(this.Name + "_subnodes", LwipDefs.Vt_StNode, "*", ConstType.Both, String.Empty),
new VariableType(this.Name.ToLowerInvariant() + "_subnodes", LwipDefs.Vt_StNode, "*", ConstType.Both, String.Empty),
"{\n" + subnodeArrayInitialization + "\n}",
isStatic: true);