aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-12-03 13:38:38 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-12-03 13:38:38 +0000
commit3fc5a3e845643570a269d28361c4756518858237 (patch)
tree2d2fb419b515f3d62709e0c06fbb74760433e0b4 /tools
parentde65892796042eff34a391dad792149009907a53 (diff)
Add modelines info to idl generate file
svn path=/trunk/; revision=53754
Diffstat (limited to 'tools')
-rwxr-xr-xtools/wireshark_gen.py38
1 files changed, 36 insertions, 2 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py
index 2399c45ada..ef89efa996 100755
--- a/tools/wireshark_gen.py
+++ b/tools/wireshark_gen.py
@@ -221,6 +221,7 @@ class wireshark_gen_C:
#self.gen_plugin_register()
#self.dumpvars() # debug
+ self.genModelines();
@@ -253,9 +254,23 @@ class wireshark_gen_C:
#
+ # genModelines
+ #
+ # Modelines info
+ #
+ #
+
+ def genModelines(self):
+ if self.DEBUG:
+ print "XXX genModelines"
+
+ self.st.out(self.template_Modelines)
+
+
+ #
# genGPL
#
- # GPL licencse
+ # GPL license
#
#
@@ -268,7 +283,7 @@ class wireshark_gen_C:
#
# genIncludes
#
- # GPL licencse
+ # GPL license
#
#
@@ -2377,6 +2392,25 @@ for (i_@aname@=0; i_@aname@ < @aval@; i_@aname@++) {
"""
#
+# Modelines Template
+#
+
+
+ template_Modelines = """\
+/*
+ * Editor modelines
+ *
+ * Local Variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * ex: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */"""
+
+#
# Includes template
#