Comments (7)
Thanks for your bug report.
I had changed parameter parsing to allow spaces around commas in the list. So I am now looking for the closing ). It seems that gets confused when ) is actually part of the parameter string. I need to fix that. Unfortunately I have no quick solution for you at the moment.
from streamdevice.
Ok thanks for the clarification. I wonder if it would be possible to keep track of how many brackets are open. If you would like to point me in the right direction of this logic i'm happy to take a look at a fix. I'm not overly familiar with the internal workings of this module so i'm not sure where I should look for this. Thanks for the swift response!
from streamdevice.
At the moment, I simply use sscanf(...,"%[^)]",...)
, in other words fetch everything until the next )
.
To track open brackets requires some major redesign and opens a whole new can of worms: How to parse for example xxx((1,2),3)
? Has it 2 arguments, (1,2)
and 3
or 3 arguments (1
, 2)
, and 3
? So commas within embedded brackets are now an issue. How to pass a single opening (
without a corresponding )
as an argument? Escaped brackets and commas (and escape chars)?
I need a few days to work out something...
from streamdevice.
I understand. Let me know when you want me to do more testing.
Thanks
from streamdevice.
I have pushed a fix that should do the trick for you. It does not yet handle embedded commas or non-balanced ()
yet.
from streamdevice.
Perfect thanks, i'll give it a try.
from streamdevice.
Thanks for the fix, that appear to work. Thanks again
from streamdevice.
Related Issues (20)
- 2.8.16 not on branch HOT 4
- Datatype on vxWorks causing checksum failure HOT 17
- Bogus "no EOS support" warning
- Reduce logging the same error from the same record HOT 1
- Release Notes? HOT 3
- IOC lockRequest messages and inconsistent record scanning HOT 12
- An error occurred while installing StreamDevice HOT 20
- STREAM_PROTOCOL_PATH separator HOT 6
- deprecation warnings in vxWorks 6.9
- Connection redundancy (Feature) HOT 8
- Global @mismatch {} handler not called?
- Stream device 2.8.20 builds failure in Windows x86 HOT 3
- Allow default values for protocol parameters
- RTEMS 5 patch for conflicting declaration of mystrncasecmp() HOT 3
- Custom checksum converter with 2 digit decimal value
- Support setting local variables through info items HOT 8
- implicit declaration of function 'rtems_rpc_task_init' HOT 3
- capture into lsiRecord truncates HOT 3
- No example IOC application after build HOT 2
- Usage of PROC field since StreamDevice 2.8.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamdevice.