11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Upgrading the Operating EnvironmentUpdate Your Function ListAny functions that you added to the function list file funclist.c must be added to thenew JAM 7 funclist.c. You can use the same structure for declaring functions that youused in JAM 5.Automatic DereferencingIn looking at the function list in JAM 7, you'll notice that it includes prototypes formost of the JAM library functions. These are declared using a macro calledSM_INTFNC. If you prototyped any of these functions for use in JAM 5, then you'll wantto change these declarations to use the macro SM_OLDFNC instead.The difference between the two macros is in their use of a new flag that has been addedto the intrn_use member of the installation structure. This flag, DEREF_ARGS, allowsfunction arguments to be automatically dereferenced without the need for colonexpansion. If you were not in the habit of enclosing arguments in quotes when callingprototyped library functions in JAM 5, then you'll want to declare these libraryfunctions without the DEREF_ARGS flag. Declaring them with the SM_OLDFNC macroaccomplishes this. SM_OLDFNC, SM_INTFNC, and DEREF_ARGS are all defined in theinclude file sminstfn.h.Eliminate the Use of Release 4 Library FunctionsFunctions that were supported in JAM 5 for compatibility with JAM 4 are no longersupported. All usage of JAM 4 functions must be updated to use JAM 7 functions.Table 4-2 lists the obsolete JAM 4 functions and their JAM 7 equivalents.Table 4-2 Obsolete JAM 4 functions and their JAM 7 counterpartsJAM 4 Functionsm_ch_emsgattsm_ch_form_attssm_ch_qmsgattsm_ch_stextattJAM 7 Functionsm_optionsm_optionsm_optionsm_option4-6 Upgrading to JAM 7 from JAM 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!