File: restype.c

package info (click to toggle)
pilrc 2.8p7-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,176 kB
  • ctags: 2,586
  • sloc: ansic: 13,839; sh: 343; makefile: 90
file content (104 lines) | stat: -rw-r--r-- 2,962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

/*
 * @(#)restype.c
 *
 * Copyright 1997-1999, Wes Cherry   (mailto:wesc@technosis.com)
 *           2000-2001, Aaron Ardiri (mailto:aaron@ardiri.com)
 * All rights reserved.
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation;  either version 2, or (at your option)
 * any version.
 *
 * This program is distributed in the hope that it will be useful,  but
 * WITHOUT  ANY  WARRANTY;   without  even   the  implied  warranty  of 
 * MERCHANTABILITY  or FITNESS FOR A  PARTICULAR  PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You  should have  received a  copy of the GNU General Public License
 * along with this program;  if not,  please write to the Free Software 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Revisions:
 * ==========
 *
 *     18-Aug-2000 RMa
 *                 creation
 *     Jan-2001    Regis Nicolas
 *                 Merged 68K and LE32 version into one binary
 */

#include "restype.h"
#include "pilrc.h"

char *kPalmResType[kMaxNumberResType];

/**
 * Resource Type initialization based on the target type (68K/LE32).
 */
void
ResTypeInit(void)
{
  kPalmResType[0] = "tAIN";
  kPalmResType[1] = "tSTR";
  kPalmResType[2] = "tver";
  kPalmResType[3] = "tAIS";
  kPalmResType[4] = "taic";
  kPalmResType[5] = "tSTL";
  kPalmResType[14] = "MIDI";
  kPalmResType[20] = "APPL";
  kPalmResType[21] = "TRAP";
  kPalmResType[22] = "tTTL";
  kPalmResType[23] = "tLBL";
  if (vfLE32)
  {
    kPalmResType[6] = "aaib";
    kPalmResType[7] = "abmp";
    kPalmResType[8] = "absb";
    kPalmResType[9] = "aalt";
    kPalmResType[10] = "akbd";
    kPalmResType[11] = "amnu";
    kPalmResType[12] = "afnt";
    kPalmResType[13] = "afti";
    kPalmResType[15] = "aclt";
    kPalmResType[16] = "acbr";
    kPalmResType[17] = "aint";
    kPalmResType[18] = "afrm";
    kPalmResType[19] = "awrd";
    kPalmResType[24] = "aslk";
    kPalmResType[25] = "acty";
    kPalmResType[26] = "afea";
    kPalmResType[27] = "akbd";
    kPalmResType[28] = "adwd";
    kPalmResType[29] = "abyt";
    kPalmResType[30] = "alcs";
    kPalmResType[31] = "abda";
    kPalmResType[32] = "aprf";
  }
  else
  {
    kPalmResType[6] = "tAIB";
    kPalmResType[7] = "Tbmp";
    kPalmResType[8] = "Tbsb";
    kPalmResType[9] = "Talt";
    kPalmResType[10] = "tkbd";
    kPalmResType[11] = "MBAR";
    kPalmResType[12] = "NFNT";
    kPalmResType[13] = "fnti";
    kPalmResType[15] = "tclt";
    kPalmResType[16] = "tcbr";
    kPalmResType[17] = "tint";
    kPalmResType[18] = "tFRM";
    kPalmResType[19] = "wrdl";
    kPalmResType[24] = "silk";
    kPalmResType[25] = "cnty";
    kPalmResType[26] = "feat";
    kPalmResType[27] = "tkbd";
    kPalmResType[28] = "DLST";
    kPalmResType[29] = "BLST";
    kPalmResType[30] = "locs";
    kPalmResType[31] = "hsbd";
    kPalmResType[32] = "pref";
  }
}