1
1
#ifndef ATLCONF_MISC_H
2
2
#define ATLCONF_MISC_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);
60
fprintf(stderr, "ERROR %d IN SYSCMND: '%s'\n", ierr, (ln_)); \
45
65
#define Mciswspace(C) ( (((C) > 8) && ((C) < 14)) || ((C) == 32) )
46
66
#define Mlowcase(C) ( ((C) > 64 && (C) < 91) ? (C) | 32 : (C) )