~ubuntu-branches/ubuntu/vivid/atlas/vivid

« back to all changes in this revision

Viewing changes to CONFIG/include/atlconf_misc.h

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-06-11 15:58:16 UTC
  • mfrom: (1.1.3 upstream)
  • mto: (2.2.21 experimental)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20130611155816-b72z8f621tuhbzn0
Tags: upstream-3.10.1
Import upstream version 3.10.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef ATLCONF_MISC_H
2
2
   #define ATLCONF_MISC_H
3
3
 
 
4
#include "atlas_sys.h"
 
5
char *ATL_fgetln(FILE *fpin);
4
6
void GetDate(int *month, int *day, int *year, int *hour, int *min);
5
7
long GetInt(FILE *fpin, long Default, char *spc, char *expstr);
6
8
long GetIntRange(long Default, long Min, long Max, char *spc, char *expstr);
18
20
int GetLastInt(char *ln);
19
21
long long GetLastLong(char *ln);
20
22
int fNumLines(char *fnam);
21
 
char *CmndResults(char *targ, char *cmnd);
22
 
int CmndOneLine(char *targ, char *cmnd, char *ln);
 
23
char *GetPathEnvVar(void);
23
24
int GetIntBeforeWord(char *word, char *ln);
24
25
int GetScreenHeight();
25
26
void GetEnter(FILE *fpout);
33
34
void SetBitInField(int *field, int bit);
34
35
void KillUselessSpace(char *str);
35
36
char *NameWithoutPath(char *file);
 
37
char *GetPathWithoutName(char *file);
36
38
void GetGccVers(char *gcc, int *comp, int *major, int *minor, int *patch);
37
39
int CompIsGcc(char *comp);
38
40
int CompIsAppleGcc(char *comp);
39
41
int CompIsMIPSpro(char *comp);
 
42
int CompIsPathScale(char *comp);
40
43
int CompIsSunWorkshop(char *comp);
41
44
int CompIsIBMXL(char *comp);
42
45
char *NewStringCopy(char *old);
 
46
char *NewAppendedString0(char *old, char *app);
43
47
char *NewAppendedString(char *old, char *app);
 
48
char **GetLinesFromFile(FILE *fpin, char **curlns); /* append lines in fnam */
 
49
void KillAllStringsInList(char **strs);
 
50
void PrintAllStringsInList(char *exp, char **strs);
 
51
char *FreeListGetString(char **strs, int n);
 
52
char **NewOneStringList(char **strs, int n);
 
53
 
 
54
#define syschk(ln_) \
 
55
{ \
 
56
   int ierr; \
 
57
   ierr = system(ln_); \
 
58
   if (ierr) \
 
59
   { \
 
60
      fprintf(stderr, "ERROR %d IN SYSCMND: '%s'\n", ierr, (ln_)); \
 
61
      exit(ierr); \
 
62
   } \
 
63
}
44
64
 
45
65
#define Mciswspace(C) ( (((C) > 8) && ((C) < 14)) || ((C) == 32) )
46
66
#define Mlowcase(C) ( ((C) > 64 && (C) < 91) ? (C) | 32 : (C) )