diff options
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-x | tools/wireshark_gen.py | 38 |
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 # |