[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] CStruct and another set of weird issues
From: |
Holger Hans Peter Freyther |
Subject: |
[Help-smalltalk] CStruct and another set of weird issues |
Date: |
Sat, 11 Sep 2010 15:18:32 +0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2 Thunderbird/3.1.1 |
Hi,
I have another set of issues and they are a bit too much to know where I
should start.
I have this C Struct:
struct vty_app_info {
const char *name;
const char *version;
const char *copyright;
void *tall_ctx;
enum node_type (*go_parent_cb)(struct vty *vty);
int (*is_config_node)(struct vty *vty, int node);
};
For the last three members I actually can cope with only having dummies to
make the CStruct sizeof the right size... So I came up with this, at least it
has the right size.
CStruct subclass: vty_app_info [
<category: 'libosmovty'>
<comment: 'I represent the vty_app_info... some structs are wrong'>
<declaration: #(
(#name #string)
(#version #string)
(#copyright #string)
(#tall_ctx (#ptr #int))
(#go_parent_cb (#ptr #int))
(#is_config_node (#ptr #int))) >
]
Using the gst shell, I can file in the above file, if I use gst-remote --eval
"FileStream fileIn: 'OsmoVTY.st'" I get a weird parse error with the STinST
parser, if I fileIn in VisualGST my vty_app_info lacks the gcNew call. This is
all very mysterious.
Any pointer on how to debug that would be welcome.
OsmoVTY.st
Description: application/vnd.sailingtracker.track
- [Help-smalltalk] CStruct and another set of weird issues,
Holger Hans Peter Freyther <=
- Re: [Help-smalltalk] CStruct and another set of weird issues, Holger Hans Peter Freyther, 2010/09/11
- Re: [Help-smalltalk] CStruct and another set of weird issues, Paolo Bonzini, 2010/09/11
- Re: [Help-smalltalk] CStruct and another set of weird issues, Holger Hans Peter Freyther, 2010/09/12
- Re: [Help-smalltalk] CStruct and another set of weird issues, Holger Hans Peter Freyther, 2010/09/12
- Re: [Help-smalltalk] CStruct and another set of weird issues, Paolo Bonzini, 2010/09/13
- Re: [Help-smalltalk] CStruct and another set of weird issues, Holger Hans Peter Freyther, 2010/09/13
- Re: [Help-smalltalk] CStruct and another set of weird issues, Paolo Bonzini, 2010/09/13
- Re: [Help-smalltalk] CStruct and another set of weird issues, Holger Hans Peter Freyther, 2010/09/13