Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 6, 2019. It is now read-only.

Commit

Permalink
Updated version number to 0.4.0
Browse files Browse the repository at this point in the history
Made run accept any input and lexer re2c compatible
  • Loading branch information
bwoebi committed Apr 16, 2014
1 parent 7ab1c07 commit b1a22ae
Show file tree
Hide file tree
Showing 11 changed files with 199 additions and 2,152 deletions.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1,5 +1,7 @@
.libs/
./phpdbg
phpdbg
*.lo
*.o
build
phpdbg_parser.c
phpdbg_parser.h
9 changes: 9 additions & 0 deletions Makefile.frag
Expand Up @@ -8,6 +8,15 @@ $(BUILD_SHARED): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_PHPDBG_OBJS)
$(BUILD_BINARY): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_PHPDBG_OBJS)
$(BUILD_PHPDBG)

$(builddir)/sapi/phpdbg/phpdbg_lexer.lo: $(srcdir)/sapi/phpdbg/phpdbg_parser.h

$(srcdir)/sapi/phpdbg/phpdbg_lexer.c: $(srcdir)/sapi/phpdbg/phpdbg_lexer.l
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date -cbdFo sapi/phpdbg/phpdbg_lexer.c sapi/phpdbg/phpdbg_lexer.l)

$(srcdir)/sapi/phpdbg/phpdbg_parser.h: $(srcdir)/sapi/phpdbg/phpdbg_parser.c
$(srcdir)/sapi/phpdbg/phpdbg_parser.c: $(srcdir)/sapi/phpdbg/phpdbg_parser.y
@$(YACC) -p phpdbg_ -v -d $(srcdir)/sapi/phpdbg/phpdbg_parser.y -o $@

install-phpdbg: $(BUILD_BINARY)
@echo "Installing phpdbg binary: $(INSTALL_ROOT)$(bindir)/"
@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
Expand Down
2 changes: 1 addition & 1 deletion phpdbg.h
Expand Up @@ -156,7 +156,7 @@
#define PHPDBG_AUTHORS "Felipe Pena, Joe Watkins and Bob Weinand" /* Ordered by last name */
#define PHPDBG_URL "http://phpdbg.com"
#define PHPDBG_ISSUES "http://github.com/krakjoe/phpdbg/issues"
#define PHPDBG_VERSION "0.3.2"
#define PHPDBG_VERSION "0.4.0"
#define PHPDBG_INIT_FILENAME ".phpdbginit"
/* }}} */

Expand Down
3 changes: 3 additions & 0 deletions phpdbg_cmd.c
Expand Up @@ -762,6 +762,9 @@ PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why TSRMLS_DC)
switch (top->type) {
case EVAL_PARAM:
return PHPDBG_COMMAND_HANDLER(ev)(top TSRMLS_CC);

case RUN_PARAM:
return PHPDBG_COMMAND_HANDLER(run)(top TSRMLS_CC);

case SHELL_PARAM:
return PHPDBG_COMMAND_HANDLER(sh)(top TSRMLS_CC);
Expand Down
3 changes: 2 additions & 1 deletion phpdbg_cmd.h
Expand Up @@ -45,7 +45,8 @@ typedef enum {
SHELL_PARAM,
COND_PARAM,
OP_PARAM,
ORIG_PARAM
ORIG_PARAM,
RUN_PARAM
} phpdbg_param_type;

typedef struct _phpdbg_param phpdbg_param_t;
Expand Down

0 comments on commit b1a22ae

Please sign in to comment.