× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, 16 Jul 2003, Bartell, Aaron L. (TC) wrote:
>
> Has anyone written RPG interfaces for IBM's Linguistic Tools (written in C)?
>

I've never even heard of them...  does this come with OS/400, or is this
something you bought?

> What kind of data type is LX_CB_P? I am assuming that it is a C object,
> but I don't see how to obtain the C object in the first place.

>From the context of the code you've posted, LX_CB appears to be a data
structure of a particular format.   LX_CB_P appears to be a pointer
to a data structure of that type.   (In C you have to declare what type
of data a pointer points to -- by contrast, RPG allows you to point to
anything.)

These are probably either typedefs or macros defined in a header file
that you're bringing in with #include

In RPG you'd do the same thing by creating a /copy member, and putting
a qualified data structure called LX_CB in it.   Then in your prototype,
you'd pass a parameter called NLPCB by reference (which is equivalent to
passing a pointer by value) and defining the NLPCB parm as likeds(LX_CB)

Then you'd reference NLPCB.lx_rqst_type in your code.

> There are many other source files that come with IBM's Linguistic Tools
> and I searched them all looking for a place where LX_CB_P was defined -
> I found nothing.  Any insight is appreciated.

If the code compiles, it's defined somewhere...   Take a look at the
#include's at the top.  (The #include members may also #include other
members, so you have to check "recursively")   Also keep in mind that
source code can be stored in the IFS, not just in source PFs, so you
have to search those too.

That's all I can think of...

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.