1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

twitter newsfeed daemon

This commit is contained in:
psyc://psyced.org/~lynX 2009-04-18 08:09:05 +02:00
parent a32a31794e
commit 217f34fd42
11 changed files with 154 additions and 16 deletions

View file

@ -95,6 +95,7 @@
// nosave? static? volatile. only for variables, not methods!
// another nice word for the opposite of persistent would be "shed"
#define volatile nosave
#define persistent
// every lpc dialect has its own foreach syntax. aint that cute?
#define each(ITERATOR, LIST) foreach(ITERATOR : LIST)

View file

@ -372,6 +372,8 @@ object compile_object(string file) {
// match both http:/ and https:/ objects ;D
if (abbrev("http", file)) {
rob = clone_object(HTTP_PATH "fetch");
// driver has the habit of removing double slash in object name
file = replace(file, ":/", "://");
if (rob) rob->fetch(file[..<3]);
return rob;
}