On Wed, Feb 14, 2001 at 04:24:06PM +0100, Mikolaj Rydzewski wrote:
=> Witam
=>
=> Pod adresem http://ceti.pl/~miki/komputery/sms.html jest link do nowej
=> wersji programu sms. Na walentynki Era zrobila co poniektorym prezent ;-)
Ktoś tu pisał, że program się na BSD nie kompiluje... i rzeczywiście ;>
Taki mały, brzydki, ... ale skuteczny hack :P :> Jak dla mnie działa ;>
[17:18:12] [ttyp3] [164] bofh:jacke:~/tmp/sms> diff -u podziel_sms.cc.orig podziel_sms.cc
--- podziel_sms.cc.orig Sat Feb 3 14:36:43 2001
+++ podziel_sms.cc Wed Feb 14 17:18:01 2001
@@ -1,7 +1,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <regex.h>
+/* #include <regex.h> */
#include "sms.h"
#include "debug.h"
@@ -90,7 +90,7 @@
int poprawna_odpowiedz(const char *ok, const char *numer, const char *body)
{
- char buf[200];
+/* char buf[200];
regex_t preg;
regmatch_t reg;
int wynik;
@@ -105,6 +105,8 @@
debug_stream->Log(LOG_INFO, "Szukam potwierdzenia '%s', wynik: %d", buf, wynik);
- return wynik;
+ return wynik; */
+
+ return 1;
}
Sorry Mikołaj, za wycięcie kawałka Twojej pracy, ale... narazie nie mam
czasu na więcej ;> Jak będę miał czas, to podeślę coś mniej żałosnego :P ;>
-- k.
This archive was generated by hypermail 2b30 : Mon Feb 26 2001 - 10:54:21 CET