source: golgotha/src/maxtool/sdk_inc/strbasic.h @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1
2/*******************************************************************
3 *
4 *    DESCRIPTION:      Basic string definitions header file
5 *
6 *    AUTHOR:           Tom Hudson
7 *
8 *    HISTORY:          File created 9/6/94
9 *
10 *******************************************************************/
11
12#ifndef _STRBASICS_
13#define _STRBASICS_
14
15#define WIN95STUFF
16
17// To set up Jaguar to use Unicode, define _UNICODE, and don't define _MBCS
18// To set up Jaguar to use multi-byte character sets, define _MBCS and
19//              don't define _UNICODE
20// To set up Jaguar to use single-byte ANSI character strings, don't define
21//              either _UNICODE or _MBCS
22
23// #define _UNICODE     // turn on Unicode support
24#define _MBCS   // if Unicode is off, turn on multi-byte character support
25
26
27#ifdef _UNICODE
28
29#ifdef _MBCS
30#undef _MBCS    // can't have both Unicode and MBCS at once -- Unicode wins
31#endif
32#define UNICODE
33#define STRCONST L
34//#define RWSTR RWWString
35//#define RWTOKENIZER RWWTokenizer
36// Here's a macro to get a const char * from a RWWString object -- It
37// temporarily constructs a RWCString object to hold the 1-byte wide
38// character string output by the toAcsii() operator.  Don't store
39// this pointer!  Copy it to a new allocation, because it might go
40// away.
41#define NARROW(s) ((const char *)((s).toAscii()))
42
43#else
44
45//#define RWSTR RWCString
46//#define RWTOKENIZER RWCTokenizer
47//#define NARROW(s) (s)
48
49#endif
50
51// Bring in the generic international text header file
52#include <tchar.h>
53
54#ifdef __cplusplus
55
56// Bring in the Rogue Wave regular and wide string classes
57// These classes will help us avoid problems in dealing with strings.
58// Use the RWWString class to store all strings used in Jaguar -- The
59// RWWString class allows unlimited length strings, so we will avoid
60// the problems of string truncation or overwriting memory.
61// NOTE: No RogueWave classes should be used in plugin API's !!
62//#include <rw\cstring.h>
63//#include <rw\wstring.h>
64 
65// Simple string class, can be used in plugin API's
66#endif // __cplusplus
67
68#endif // _STRBASICS_
Note: See TracBrowser for help on using the repository browser.