5 *****************************************************************
7 * This file was created automatically by `%fv'
10 * Do NOT edit by hand!
12 *****************************************************************
15 include "exec/types.i"
16 include "utility/tagitem.i"
17 include "libraries/locale.i"
19 * Function declarations
27 * Referenced functions
30 xref _LVOGetCatalogStr
37 dc.l OC_BuiltInLanguage,%b_BuiltInLanguage
49 \teven\n\txdef\t%i\n%i:\tdc.l\t%d\n\t%s,0
58 movem.l a2/a6,-(sp) ; Save Regs
60 lea OpenCatalogTags,a2 ; Store Language
65 move.l _LocaleBase,a6 ; Call locale.OpenCatalog
66 move.l a6,d0 ; Locale opened?
67 beq Open%bCatalogEnd ; No, skip
68 tst.l %b_Catalog ; Catalog opened?
69 bne Open%bCatalogEnd ; Yes, skip
71 jsr _LVOOpenCatalogA(a6)
80 move.l %b_Catalog,a0 ; Close the Catalog, if needed
83 move.l a6,d0 ; Locale.library opened?
84 beq Close%bCatalogEnd ; No, skip
85 jsr _LVOCloseCatalog(a6)
92 * a0 = pointer to structure (ID, string)
93 move.l a6,-(sp) ; Save regs
95 move.l (a0)+,d0 ; Get string number
96 move.l a0,a1 ; Get default string
99 move.l _LocaleBase,a6 ; Locale.library present?
101 beq Get%bStringNoLoc ; No, skip
102 move.l %b_Catalog,a0 ; Catalog opened?
104 beq Get%bStringNoLoc ; No, skip
106 jsr _LVOGetCatalogStr(a6) ; Call locale.library