mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-17 02:42:29 +00:00
LwipMibCompiler: preserve upper case in comments
This commit is contained in:
parent
588b11185a
commit
b849e52c17
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -57,7 +57,7 @@ namespace LwipSnmpCodeGeneration
|
||||
|
||||
public override string FullNodeName
|
||||
{
|
||||
get { return this.Name + "_scalar"; }
|
||||
get { return this.Name.ToLowerInvariant() + "_scalar"; }
|
||||
}
|
||||
|
||||
public SnmpDataType DataType
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user