projects
/
selector.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed a debug line.
[selector.git]
/
selector.c
diff --git
a/selector.c
b/selector.c
index
fa0589c
..
b7a5e18
100644
(file)
--- a/
selector.c
+++ b/
selector.c
@@
-3,7
+3,7
@@
* selector is a simple command line utility for selection of strings
* with a dynamic pattern-matching.
*
* selector is a simple command line utility for selection of strings
* with a dynamic pattern-matching.
*
- * Copyright (c) 2009 Francois Fleuret
+ * Copyright (c) 2009
, 2010
Francois Fleuret
* Written by Francois Fleuret <francois@fleuret.org>
*
* This file is part of selector.
* Written by Francois Fleuret <francois@fleuret.org>
*
* This file is part of selector.
@@
-44,7
+44,7
@@
#include <locale.h>
#include <getopt.h>
#include <locale.h>
#include <getopt.h>
-#define VERSION "1.
0.
1"
+#define VERSION "1.1"
#define BUFFER_SIZE 4096
#define BUFFER_SIZE 4096
@@
-117,7
+117,6
@@
int string_to_positive_integer(char *string) {
int result = 0;
char *s;
int result = 0;
char *s;
- printf("string_to_positive_integer string=\"%s\"\n", string);
if(*string) {
for(s = string; *s && *s != ','; s++) {
if(*s >= '0' && *s <= '9') {
if(*string) {
for(s = string; *s && *s != ','; s++) {
if(*s >= '0' && *s <= '9') {
@@
-803,9
+802,9
@@
static struct option long_options[] = {
int main(int argc, char **argv) {
char input_filename[BUFFER_SIZE], output_filename[BUFFER_SIZE];
int main(int argc, char **argv) {
char input_filename[BUFFER_SIZE], output_filename[BUFFER_SIZE];
- char
c,
*s;
+ char *s;
char pattern[BUFFER_SIZE];
char pattern[BUFFER_SIZE];
- int k, l, n;
+ int
c,
k, l, n;
int cursor_position;
int error = 0, show_help = 0;
int rest_are_files = 0;
int cursor_position;
int error = 0, show_help = 0;
int rest_are_files = 0;