> и не льсти себе: ты не «программист».Хорошь глумится, идея хорошая, реализация пока не на уровне CodingStyle ядра,
ну и чё, все ж когда-то чайниками были.
Шоб на 64-х не матюгался и 6-ой аргумент у pcre_exec() имеет тип int, а не указатель.
---
--- a/loloswitcher_0_20/EventQueue.cpp 2011-09-10 01:15:44.000000000 +0400
+++ b/loloswitcher_0_20/EventQueue.cpp 2011-09-17 03:31:08.372977501 +0400
@@ -79,7 +79,7 @@
// Проверка регулярного выражения
int count = 0;
int ovector[30];
- count=pcre_exec( (pcre *)regexpCompile, NULL, queueSequence, strlen(queueSequence), 0, NULL, ovector, 30);
+ count=pcre_exec( (pcre *)regexpCompile, NULL, queueSequence, strlen(queueSequence), 0, 0, ovector, 30);
// printf("Count=%d\n", count);
--- a/loloswitcher_0_20/Main.cpp 2011-09-13 02:01:31.000000000 +0400
+++ b/loloswitcher_0_20/Main.cpp 2011-09-17 03:30:59.239977501 +0400
@@ -450,7 +450,7 @@
// Проверка регулярного выражения EventFilter
int count = 0;
int ovector[30];
- count=pcre_exec( (pcre *)config.getEventFilterCompile(), NULL, text, strlen(text), 0, NULL, ovector, 30);
+ count=pcre_exec( (pcre *)config.getEventFilterCompile(), NULL, text, strlen(text), 0, 0, ovector, 30);
// printf("Count=%d\n", count);
@@ -600,7 +600,7 @@
if(strlen(config.getCommand(n))==0)
return;
- int keyboardLayerNum=n;
+ ssize_t keyboardLayerNum=n;
// Выполнение команды будет происходит в отдельном потоке
pthread_t thread;
@@ -625,7 +625,7 @@
static void *threadFunc(void *arg)
{
// int keyboardLayerNum = * (int *) arg;
- int keyboardLayerNum = (int) arg;
+ ssize_t keyboardLayerNum = (ssize_t) arg;
char cmd[250];