root/trunk/main.m

Revision 3324, 0.8 kB (checked in by timothy, 2 years ago)

Support for exslt in styles.

Line 
1 #import <libxml/globals.h>
2 #import <libxml/parser.h>
3 #import <libxslt/xslt.h>
4 #import <libexslt/exslt.h>
5
6 int main( int count, const char *arg[] ) {
7         srandom( time( NULL ) );
8
9         xmlInitParser();
10         exsltRegisterAll();
11         xmlSubstituteEntitiesDefault( 1 );
12         xmlLoadExtDtdDefaultValue = 1;
13
14         NSAutoreleasePool *pool = [[NSAutoreleasePool allocWithZone:nil] init];
15
16         NSString *newPreferencesPath = [@"~/Library/Preferences/info.colloquy.plist" stringByExpandingTildeInPath];
17         if( ! [[NSFileManager defaultManager] fileExistsAtPath:newPreferencesPath] ) {
18                 NSString *oldPreferencesPath = [@"~/Library/Preferences/cc.javelin.colloquy.plist" stringByExpandingTildeInPath];
19                 [[NSFileManager defaultManager] movePath:oldPreferencesPath toPath:newPreferencesPath handler:nil];
20         }
21
22         [pool release];
23
24         return NSApplicationMain( count, arg );
25 }
Note: See TracBrowser for help on using the browser.