OSQA is unmaintained. Help us figure out where to go from here.

I've used Matlab (this is the easiest language for me) to generate a Lua dissector from an XML file describing a protocol.

The issue right now, is that it is generating too many local (global) variables and I'm getting the

`too many local variables (limit is 200) in main function near '='`

error.

Many of the variables (~150) are due to some enumeration.

Any suggestion how to solve it?

asked 10 Aug, 01:27

BMWE's gravatar image

BMWE
21249
accept rate: 0%

edited 10 Aug, 01:39

sindy's gravatar image

sindy
6.0k1750

@BMWE, I've converted your post to a new Question as this way it better fits this site's purpose.

(10 Aug, 01:39) sindy

To the subject, what means "some enumeration"? If your protocol has 150 distinct fields, there is no surprise that 150 variables get created. If that is not the case, please provide some more details.

(10 Aug, 01:40) sindy
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×427
×1

question asked: 10 Aug, 01:27

question was seen: 149 times

last updated: 10 Aug, 01:40

p​o​w​e​r​e​d by O​S​Q​A