mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 22:32:38 +00:00
29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
|
/*===- sysutils.h - Utilities to do low-level system stuff -------*- C -*--===*\
|
||
|
* *
|
||
|
* This file contains functions used to do a variety of low-level, often *
|
||
|
* system-specific, tasks. *
|
||
|
* *
|
||
|
\*===----------------------------------------------------------------------===*/
|
||
|
|
||
|
#ifndef SYSUTILS_H
|
||
|
#define SYSUTILS_H
|
||
|
|
||
|
typedef unsigned bool;
|
||
|
enum { false = 0, true = 1 };
|
||
|
|
||
|
/*
|
||
|
* isExecutableFile - This function returns true if the filename specified
|
||
|
* exists and is executable.
|
||
|
*/
|
||
|
bool isExecutableFile(const char *ExeFileName);
|
||
|
|
||
|
/*
|
||
|
* FindExecutable - Find a named executable, giving the argv[0] of program
|
||
|
* being executed. This allows us to find another LLVM tool if it is built into
|
||
|
* the same directory, but that directory is neither the current directory, nor
|
||
|
* in the PATH. If the executable cannot be found, return an empty string.
|
||
|
*/
|
||
|
char *FindExecutable(const char *ExeName);
|
||
|
|
||
|
#endif
|