home *** CD-ROM | disk | FTP | other *** search
- /* This C Module has its main procedure StartUpC called from */
- /* the Turbo Pascal program that links this in. This will */
- /* then make a call to a procedure within the pascal code. */
- /* Additionally, this module modifies a variable in the */
- /* Pascal code. This variable is actually contained within */
- /* Turbo Pascal's CRT unit. */
-
- #include "savesidi.h" /* include header for reg save routine */
-
- extern WORD TPTextAttr;
- /* variable defined in pascal code. */
-
- extern int I; /* second variable defined in pascal */
-
- extern void CallFromC (int I);
- /* Pascal procedure we will call from this C module */
-
- void StartUpC (void)
- {
- register int count;
- for (count = 1; count <= 10; count++) {
- save_sidi;
- CallFromC(I++);
- rest_sidi;
- TPTextAttr = count;
- }
- }