Intermec 5055 Reference Guide

Page of 216
5055 Programmer’s Software Kit Reference Manual
4-4
You can handle the differences between the JANUS PSK, Trakker Antares PSK, 6400
PSK, and 5055 PSK libraries using one of these methods:
• Use the information in this chapter to rewrite entire sections of code.
• Locate each occurrence of the unsupported command in the file and place an #ifdef
statement before each occurrence.
• Create a compatibility file (compat.h) to redefine the unsupported functions. Use a
#include statement at the beginning of your program to reference this file.
The first two methods are time consuming and must be performed for each program to
be converted. The third method provides a reusable filter that you can quickly
customize for individual programs.
Creating Compatible Applications
To create compatible applications created for JANUS devices, 6400 devices, or Trakker
Antares terminals that run on 5055, use compatible PSK functions and plan your
program flow and logic. Keep these points in mind:
• Use compatible functions to minimize rewriting program segments.
• Use status code macros to test function return values.
• Some JANUS PSK functions have runtime requirements, such as a protocol
handler. Refer to your JANUS PSK reference manual for more information.
• For all supported functions, recompile the applications using the 5055 library.
Note:
 Be sure that when you compile your program you set the appropriate options for
the destination. JANUS PSK, 6400 PSK, and 5055 PSK make files use the 80386
compiler option. Trakker Antares PSK make files use the 8086/8088 compiler option.
For more information, see Chapter 3, “Building Applications.”
Compatible Functions
These functions work with all PSKs without modifications.
im_cancel_rx_buffer
im_irl_v
im_cancel_tx_buffer
im_message
im_clear_screen
im_putchar
im_command
im_puts
im_cputs
im_receive_buffer
im_erase_line
im_receive_field
im_event_wait
im_receive_input
im_fmalloc
im_set_cursor_style
im_free_mem
im_set_cursor_xy