C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Contents
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
v
7. Mixed-Language Programming for TNS
Programs (continued)
7. Mixed-Language Programming for TNS Programs (continued)
Calling TAL Routines From TNS C Modules 7-11
TAL Procedures That You Cannot Directly Call 7-12
Sharing Data 7-14
Variables and Parameters 7-17
Extended Data Segments 7-27
Interfacing to TNS COBOL 7-30
8. Mixed-Language Programming for TNS/R and TNS/E Native
Programs
Introducing the CRE 8-2
Using Standard Files in Mixed-language Programs 8-2
Declaring External Routines 8-2
Writing Interface Declarations 8-3
Using a Function Prototype and a FUNCTION Pragma 8-3
Using an Interface Declaration 8-3
Examples 8-5
Considerations When Interfacing to pTAL 8-6
Using Identifiers 8-7
Matching Data Types 8-7
Calling C Routines From pTAL Modules 8-8
C Routines That You Cannot Call Directly 8-9
Calling pTAL Routines From C Modules 8-9
pTAL Procedures That You Cannot Call Directly 8-11
Sharing Data 8-12
Parameters and Variables 8-17
Differences Between Native and TNS Mixed-Language Programs
8-24
Data Models
8-25
Memory Models 8-25
_far Pointer Qualifier 8-25
Extended Data Segments 8-25
Interfacing to Native COBOL 8-26