DataWorks
Database Library/Client
Loading...
Searching...
No Matches
dataworks.c
1/* $Id: dataworks.c 78 2024-05-22 06:08:48Z nishi $ */
2/* --- START LICENSE --- */
3/* -------------------------------------------------------------------------- */
4/* Copyright (c) 2024 Crabware. */
5/* Redistribution and use in source and binary forms, with or without modific */
6/* ation, are permitted provided that the following conditions are met: */
7/* 1. Redistributions of source code must retain the above copyright noti */
8/* ce, this list of conditions and the following disclaimer. */
9/* 2. Redistributions in binary form must reproduce the above copyright n */
10/* otice, this list of conditions and the following disclaimer in the documen */
11/* tation and/or other materials provided with the distribution. */
12/* 3. Neither the name of the copyright holder nor the names of its contr */
13/* ibutors may be used to endorse or promote products derived from this softw */
14/* are without specific prior written permission. */
15/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS */
16/* " AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, TH */
17/* E IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPO */
18/* SE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS */
19/* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CON */
20/* SEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITU */
21/* TE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPT */
22/* ION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, S */
23/* TRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN AN */
24/* Y WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY */
25/* OF SUCH DAMAGE. */
26/* -------------------------------------------------------------------------- */
27/* --- END LICENSE --- */
28
29#include "dataworks.h"
30
31const char* dataworks_version = "0.0.0";
32const char* dataworks_compile_date = __DATE__;
33const char* dataworks_copyright = "Copyright (c) Crabware 2024\n"
34 " Crabware is the software-development division of\n"
35 " Hinode Gakuen PC-Club. Contact: <nishi@nishi.boats>";
36
37#if defined(__MINGW32__)
38const char* dataworks_platform = "Windows/"
39#elif defined(__NetBSD__)
40const char* dataworks_platform = "NetBSD/"
41#elif defined(__linux__)
42const char* dataworks_platform = "Linux/"
43#elif defined(__WATCOMC__)
44const char* dataworks_platform = "WatcomC/"
45#else
46const char* dataworks_platform = "Unknown/"
47#endif
48 PLATFORM_M " (" PLATFORM_P ")";
49
50const char* dataworks_get_version(void) { return dataworks_version; }
51const char* dataworks_get_compile_date(void) { return dataworks_compile_date; }
52const char* dataworks_get_platform(void) { return dataworks_platform; }
53char dataworks_get_endian(void) {
54 volatile unsigned short n = 1;
55 return *(char*)&n == 1 ? 'L' : 'B';
56}
57
58const char* dataworks_get_copyright(void) { return dataworks_copyright; }
DataWorks info.