[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: [GENERAL] problem w/ struct in DECLARE SECTION
From: bayard kohlhepp <bayardk () crosslink ! net>
Date: 1999-10-27 18:25:50
[Download RAW message or body]
i have a struct declaration (struct user {...}) that compiles ok -
contains chars, shorts, ints, longs.
1. if it is outside of BEGIN/END DECLARE, then variables declared inside
BEGIN/END
that use it (ie, "struct user localvar;") fail with a parse error
from ecpg.
2. if i put it inside a BEGIN/END DECLARE SECTION, ecpg reports a parse
error at the
closing '}'.
typedefs don't seem to help, either. how can i declare a structure that
will be used in many functions (ie, "struct user * x")?
************
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic