HP SunSoft Pascal 4.0 Manual de usuario Pagina 9

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 333
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 8
Contents ix
Sharing Variables Between Units. . . . . . . . . . . . . . . . . . . . . . 71
Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
5. Separate Compilation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Working with Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Using Program Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Using Module Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Sharing Variables and Routines Across Multiple Units . . . . . . 76
Compiling without the -xl Option. . . . . . . . . . . . . . . . . . . . 77
Using the -xl Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Sharing Declarations in Multiple Units. . . . . . . . . . . . . . . . . . . . 87
6. The C–Pascal Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Compilation of Mixed-Language Programs. . . . . . . . . . . . . . . . 89
Compatibility of Types for C and Pascal. . . . . . . . . . . . . . . . . . . 90
Precautions with Compatible Types . . . . . . . . . . . . . . . . . . . 91
Incompatibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
General Parameter Passing in C and Pascal. . . . . . . . . . . . . . . . 93
Procedure Calls: C–Pascal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Variable Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Value Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Function Return Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Input and Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Procedure Calls: Pascal–C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Variable Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Value Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Vista de pagina 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... 332 333

Comentarios a estos manuales

Sin comentarios