-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cell highlighting v2 #302
Merged
+525
−142
Merged
Cell highlighting v2 #302
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fac0434
further simplify sql-related code
liquidaty c5b7569
add app/ext_example/mysheet_extension.c
liquidaty 091395e
mysheet_extension: add cell_attrs
liquidaty adfad79
add include/zsv/utils/sql.h
liquidaty 5a3b124
fix prior commit bug
liquidaty e1d0e7f
update ext Makefile include dirs
liquidaty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#if defined(WIN32) || defined(_WIN32) | ||
#ifdef HAVE_NCURSESW | ||
#include <ncursesw/ncurses.h> | ||
#else | ||
#include <ncurses/ncurses.h> | ||
#endif // HAVE_NCURSESW | ||
#else | ||
#if __has_include(<curses.h>) | ||
#include <curses.h> | ||
#elif __has_include(<ncursesw/curses.h>) | ||
#include <ncursesw/curses.h> | ||
#else | ||
#error Cannot find ncurses include file! | ||
#endif | ||
#endif |
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,4 +1,4 @@ | ||
# Makefile for use with GNU make | ||
#Makefile for use with GNU make | ||
|
||
THIS_MAKEFILE_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
THIS_DIR:=$(shell basename "${THIS_MAKEFILE_DIR}") | ||
|
@@ -65,6 +65,7 @@ THIS_LIB_BASE=$(shell cd ../.. && pwd) | |
CCBN=$(shell basename ${CC}) | ||
BUILD_DIR=${THIS_LIB_BASE}/build/${BUILD_SUBDIR}/${CCBN} | ||
TARGET=${BUILD_DIR}/bin/zsvextmy.${SO} | ||
TARGET_SHEET=${BUILD_DIR}/bin/zsvextmysheet.${SO} | ||
|
||
COLOR_NONE=\033[0m | ||
COLOR_GREEN=\033[1;32m | ||
|
@@ -88,15 +89,16 @@ endif | |
UTILS1+=writer | ||
UTILS=$(addprefix ${BUILD_DIR}/objs/utils/,$(addsuffix .o,${UTILS1})) | ||
|
||
CFLAGS+= -I${THIS_LIB_BASE}/include | ||
CFLAGS+= -I${THIS_LIB_BASE}/include -I${PREFIX}/include | ||
|
||
all: ${TARGET} | ||
all: ${TARGET} ${TARGET_SHEET} | ||
@echo Built ${TARGET} | ||
@echo Built ${TARGET_SHEET} | ||
|
||
ifneq ($(findstring emcc,$(CC)),) # emcc | ||
install: ${INSTALLED_EXTENSION} | ||
|
||
${INSTALLED_EXTENSION}: ${TARGET} | ||
${INSTALLED_EXTENSION}: ${TARGET} ${TARGET_SHEET} | ||
@mkdir -p `dirname "$@"` | ||
cp -p $< $@ | ||
endif | ||
|
@@ -179,13 +181,18 @@ test-thirdparty: test-%: ${CLI} ${TARGET} | |
@cmp /tmp/[email protected] test/expected/[email protected] && ${TEST_PASS} || ${TEST_FAIL} | ||
|
||
clean: | ||
@rm -f ${TARGET} /tmp/zsvext-test*.out | ||
@rm -f ${TARGET} ${TARGET_SHEET} /tmp/zsvext-test*.out | ||
|
||
${BUILD_DIR}/objs/%.o : ${THIS_LIB_BASE}/src/%.c ${PARSER_DEPS} | ||
${MAKE} -C ${THIS_LIB_BASE}/src CONFIGFILE=${CONFIGFILEPATH} DEBUG=${DEBUG} WIN=${WIN} $@ | ||
|
||
${TARGET}: my_extension.c ${UTILS} | ||
|
||
YAJL_SRC_DIR=${THIS_MAKEFILE_DIR}/../external/yajl | ||
YAJL_INCLUDE=-I${YAJL_SRC_DIR}/build/yajl-2.1.1/include | ||
YAJL_HELPER_INCLUDE=-I${THIS_MAKEFILE_DIR}/../external/yajl_helper | ||
${TARGET_SHEET}: LIBS="../external/sqlite3/sqlite3.c" -lzsv -lzsvutil -L${PREFIX}/lib | ||
${TARGET} ${TARGET_SHEET}: ${BUILD_DIR}/bin/zsvext%.${SO} : %_extension.c ${UTILS} | ||
@mkdir -p `dirname "$@"` | ||
${CC} ${CFLAGS} ${CFLAGS_SHARED} $< ${UTILS} -o $@ | ||
${CC} ${CFLAGS} ${CFLAGS_SHARED} $< ${UTILS} -o $@ ${LIBS} ${YAJL_INCLUDE} ${YAJL_HELPER_INCLUDE} | ||
|
||
.PHONY: all test test-% clean install |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liquidaty If I do a full build then I still don't seem to have the zsvutil library and it is mentioned as a feature coming soon, is this from another branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richiejp if you do a full build it should make that but if not, we will look into it and in the meantime pls try:
make -C app install-util-lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liquidaty starting from a clean environment and doing
make build -j16 DEBUG=1
thenmake app/ext_example all -j16 DEBUG=1
does not work. Howevermake -C app install-util-lib -j16 DEBUG=1
did allow the example to be built as suggested, thanks!