~ubuntu-branches/ubuntu/vivid/concalc/vivid

« back to all changes in this revision

Viewing changes to src/global.h

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2007-10-16 00:27:18 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071016002718-csrfx5ek2wmxidxz
Tags: 0.9.0-1
* New upstream release
* Upstream package renamed to concalc - remove debian/patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*/////////////////////////////////////////Concalc////////////////////////////////////////////
 
2
/////////////////////////////////Scientific Graphic Calculator////////////////////////////////
 
3
 
 
4
File:         global.h
 
5
Author:       Rainer Strobel
 
6
Email:        rainer1223@users.sourceforge.net
 
7
Homepage:     http://extcalc-linux.sourceforge.net
 
8
 
 
9
This program is free software; you can redistribute it and/or modify
 
10
it under the terms of the GNU General Public License as published by
 
11
the Free Software Foundation; either version 2, or (at your option)
 
12
any later version.
 
13
 
 
14
 
 
15
////////////////////////////////////////////////////////////////////////////////////////////*/
1
16
#ifndef GLOBALH
2
17
#define GLOBALH
3
18
 
17
32
using namespace std;
18
33
 
19
34
 
20
 
#define VERSIONSTRING "Version: 0.8.5 2007-06-07\nCalculator algorithms: extcalc v0.8.5 2007-06-07"
 
35
#define VERSIONSTRING "Version: 0.9.0 2007-10-01\nCalculator algorithms: extcalc v0.9.0 2007-10-01"
21
36
#define AUTHORSTRING "Author:\nRainer Strobel\nhttp://extcalc-linux.sourceforge.net\n2007\n"
22
37
 
23
38
 
79
94
#define SGRAPHCOLOR                     195
80
95
#define SGRAPHTRANSFORM         196
81
96
#define SGRAPHIDENTITY          197
82
 
 
83
 
 
 
97
#define SDRAW                           211
84
98
 
85
99
#define NNONE                           0x1
86
100
#define NFLOAT                          0x2
232
246
 
233
247
 
234
248
//Standard Calculator functions
 
249
char* preprocessor(char*,Preferences*,bool);
 
250
char* preferencesPreprocessor(char*,Preferences*);
 
251
char* macroPreprocessor(char*);
 
252
char* cleanString(char*,Preferences*);
 
253
char* removeComments(char*);
 
254
char* strreplace(char*st,int index,int len,char*rep);
 
255
char* strinsert(char*st,int index,char*ins);
 
256
 
235
257
long double calculate(char*,Preferences*pref,Variable*vars);
236
258
int bracketFind(char* string,char* searchString, int start=0);
237
259
int bracketFindRev(char* string,char* searchString, int start=-1);
238
260
char*strcut(char*src,int index,int len=1);
239
261
char*strins(char*dest,const char*src,int index);
240
262
int strcopy(char*dest,char*src,int len);
241
 
char* checkString(char*calcString,Preferences*pref);
242
263
void printError(const char*,int,ThreadSync*);
243
264
void convertToFloat(Number*num);
244
265
inline void convertToInt(Number*num);