summaryrefslogtreecommitdiff
path: root/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Exports.cs
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-10-16 08:10:14 -0600
committerTom Rini <trini@konsulko.com>2024-10-16 08:10:14 -0600
commitf3f86fd1fe0fb288356bff78f8a6fa2edf89e3fc (patch)
treef0a99ea87d92f63895a6d053e3185838ebecf2d0 /contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Exports.cs
Squashed 'lib/lwip/lwip/' content from commit 0a0452b2c39b
git-subtree-dir: lib/lwip/lwip git-subtree-split: 0a0452b2c39bdd91e252aef045c115f88f6ca773
Diffstat (limited to 'contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Exports.cs')
-rw-r--r--contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Exports.cs56
1 files changed, 56 insertions, 0 deletions
diff --git a/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Exports.cs b/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Exports.cs
new file mode 100644
index 00000000000..c1e66e322d1
--- /dev/null
+++ b/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Exports.cs
@@ -0,0 +1,56 @@
+/*
+ * Created by SharpDevelop.
+ * User: lextm
+ * Date: 2008/6/7
+ * Time: 17:34
+ *
+ * To change this template use Tools | Options | Coding | Edit Standard Headers.
+ */
+
+using System.Collections.Generic;
+
+namespace Lextm.SharpSnmpLib.Mib.Elements
+{
+ /// <summary>
+ /// Description of Exports.
+ /// </summary>
+ public sealed class Exports: IElement
+ {
+ private IModule _module;
+ private readonly IList<string> _types = new List<string>();
+
+ public Exports(IModule module, ISymbolEnumerator s)
+ {
+ _module = module;
+
+ Symbol previous = null;
+ Symbol current;
+ do
+ {
+ current = s.NextSymbol();
+
+ if (current == Symbol.EOL)
+ {
+ continue;
+ }
+ else if (((current == Symbol.Comma) || (current == Symbol.Semicolon)) && (previous != null))
+ {
+ previous.AssertIsValidIdentifier();
+ _types.Add(previous.ToString());
+ }
+
+ previous = current;
+ }
+ while (current != Symbol.Semicolon);
+ }
+
+ #region IElement Member
+
+ public IModule Module
+ {
+ get { return _module; }
+ }
+
+ #endregion
+ }
+} \ No newline at end of file