Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
844 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
/build | ||
/cache | ||
/shims | ||
/version | ||
/versions | ||
/sources | ||
/cache | ||
/libexec/*.dylib | ||
/src/Makefile | ||
/src/*.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
install: git clone --depth 1 https://github.com/sstephenson/bats.git | ||
script: script/test | ||
install: git clone https://github.com/sstephenson/bats.git | ||
script: PATH="./bats/bin:$PATH" test/run && ( cd plugins/python-build bats ${CI:+--tap} test ) | ||
language: c | ||
notifications: | ||
email: | ||
on_success: never | ||
env: | ||
- PYENV_NATIVE_EXT= | ||
- PYENV_NATIVE_EXT=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
CC = @CC@ | ||
|
||
CFLAGS = @CFLAGS@ | ||
LOCAL_CFLAGS = @LOCAL_CFLAGS@ | ||
DEFS = @DEFS@ | ||
LOCAL_DEFS = @LOCAL_DEFS@ | ||
|
||
CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(LOCAL_CFLAGS) $(CFLAGS) | ||
|
||
SHOBJ_CC = @SHOBJ_CC@ | ||
SHOBJ_CFLAGS = @SHOBJ_CFLAGS@ | ||
SHOBJ_LD = @SHOBJ_LD@ | ||
SHOBJ_LDFLAGS = @SHOBJ_LDFLAGS@ | ||
SHOBJ_XLDFLAGS = @SHOBJ_XLDFLAGS@ | ||
SHOBJ_LIBS = @SHOBJ_LIBS@ | ||
SHOBJ_STATUS = @SHOBJ_STATUS@ | ||
|
||
.c.o: | ||
$(SHOBJ_CC) $(SHOBJ_CFLAGS) $(CCFLAGS) -c -o $@ $< | ||
|
||
../libexec/pyenv-realpath.dylib: realpath.o | ||
$(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ realpath.o $(SHOBJ_LIBS) | ||
|
||
clean: | ||
rm -f *.o ../libexec/*.dylib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef __BASH_H__ | ||
#define __BASH_H__ | ||
|
||
#define EXECUTION_SUCCESS 0 | ||
#define EXECUTION_FAILURE 1 | ||
#define EX_USAGE 258 | ||
|
||
#define BUILTIN_ENABLED 1 | ||
|
||
typedef struct word_desc { | ||
char *word; | ||
int flags; | ||
} WORD_DESC; | ||
|
||
typedef struct word_list { | ||
struct word_list *next; | ||
WORD_DESC *word; | ||
} WORD_LIST; | ||
|
||
typedef int sh_builtin_func_t(WORD_LIST *); | ||
|
||
struct builtin { | ||
char *name; | ||
sh_builtin_func_t *function; | ||
int flags; | ||
char * const *long_doc; | ||
const char *short_doc; | ||
char *unused; | ||
}; | ||
|
||
#endif |
Oops, something went wrong.