Contents Index The UltraLite generator The UltraLite Palm utility

UltraLite Database User's Guide
  Utility Programs

The UltraLite segment utility


Applies to 

Embedded SQL and C++ API static development models together with the GCC PRC-Tools chain for the Palm Computing Platform.

Function 

The UltraLite segment utility writes a set of segment identifiers in a definition file as required by the GCC PRC-Tools chain.

Syntax 

dbulseg generated-source-file definition-file app-name creator-id

Option Description
generated-source-file The name of the source code file written by the UltraLite generator.
definition-file The name of the definition file to be written out. It should end in the extension .def.
app-name The name of the application.
creator-id The application creator ID
Description 

The GCC PRC-Tools suite requires a set of segment identifiers in a definition file. The dbulseg utility reads the UltraLite generated code (in file generated-source-file) and writes out the definition file definition-file.

The segment definition file also includes the Palm application name and application creator ID. These Palm-specific identifiers must be supplied in the command line.

Example 

The command line included in the build.bat file that compiles the UltraLite CustDB sample application is as follows:

dbulseg custdb.c custdb.def CustDB Syb2

The resulting output file is as follows:

application { "CustDB" Syb2 }
multiple code { ULRT1 ULRT2 ULRT3 ULRT4 ULRT5 ULRT6
ULRT7 ULRT8 ULRT9 ULRT10 ULRT11 ULRT12 ULRT13 ULRT14
ULRT15 ULRT16 ULRT17 ULG512 ULG513 ULG514 ULG515 ULG516
ULG517 ULG518 ULG519 ULG520 ULG521 ULG522 ULG523 ULG524
ULG525 ULG526 ULG527 ULG528 ULG529 ULG530 ULG531 ULG532
ULG131 }

The file contents are on two lines: the second line is wrapped for display purposes.


Contents Index The UltraLite generator The UltraLite Palm utility