Assorted whitespace cleanup and typo fixes.
[haiku.git] / src / bin / unzip / beosmain.cpp
blobed5fe2a1dfc295064943e879512373ab9f9d0107
1 // -*- C++ -*-
2 /*
3 Copyright (c) 1990-2000 Info-ZIP. All rights reserved.
5 See the accompanying file LICENSE, version 2000-Apr-09 or later
6 (the contents of which are also included in unzip.h) for terms of use.
7 If, for some reason, all these files are missing, the Info-ZIP license
8 also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
9 */
11 // WARNING: This is C++, not C! GNU C is not supported here!
13 // beos_init.cpp
15 // BeOS-specific C++ routines for use with Info-ZIP's UnZip 5.30 or later.
17 // This is necessary because we need to have an app_server connection to be
18 // able to ask the system to assign a MIME type to an un-typed file. Strange
19 // but true (the update_mime_info() call needs to send/receive messages).
21 // If you're writing your own Zip application, you probably DO NOT want to
22 // include this file!
24 #include <app/Application.h>
26 #ifdef SFX
27 const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZipSFX";
28 #else
29 const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZip";
30 #endif
32 extern "C" int main_stub( int argc, char *argv[] );
34 int main( int argc, char **argv )
36 BApplication app( unzip_signature );
38 return main_stub( argc, argv );