Staging
v0.5.1
https://github.com/python/cpython
Revision 72c71956cade606bd5500cf76d4d7c1d50a7ccae authored by Miss Islington (bot) on 06 December 2018, 21:30:13 UTC, committed by GitHub on 06 December 2018, 21:30:13 UTC
(cherry picked from commit c9566b8c454120e3d0ddb5ab970f262a6cd80077)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
1 parent f913d44
Raw File
Tip revision: 72c71956cade606bd5500cf76d4d7c1d50a7ccae authored by Miss Islington (bot) on 06 December 2018, 21:30:13 UTC
Add missing period in distutils.dep_util.newer_group doc (GH-11003)
Tip revision: 72c7195
FileSettings.h
//
//  FileSettings.h
//  PythonLauncher
//
//  Created by Jack Jansen on Sun Jul 21 2002.
//  Copyright (c) 2002 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol FileSettingsSource
- (NSString *) interpreter;
- (BOOL) honourhashbang;
- (BOOL) debug;
- (BOOL) verbose;
- (BOOL) inspect;
- (BOOL) optimize;
- (BOOL) nosite;
- (BOOL) tabs;
- (NSString *) others;
- (BOOL) with_terminal;
- (NSString *) scriptargs;
@end

@interface FileSettings : NSObject <FileSettingsSource>
{
    NSString *interpreter;      // The pathname of the interpreter to use
    NSArray *interpreters;      // List of known interpreters
    BOOL honourhashbang;        // #! line overrides interpreter
    BOOL debug;                 // -d option: debug parser
    BOOL verbose;               // -v option: verbose import
    BOOL inspect;               // -i option: interactive mode after script
    BOOL optimize;              // -O option: optimize bytecode
    BOOL nosite;                // -S option: don't import site.py
    BOOL tabs;                  // -t option: warn about inconsistent tabs
    NSString *others;           // other options
    NSString *scriptargs;       // script arguments (not for preferences)
    BOOL with_terminal;         // Run in terminal window

    FileSettings *origsource;
    NSString *prefskey;
}

+ (id)getDefaultsForFileType: (NSString *)filetype;
+ (id)getFactorySettingsForFileType: (NSString *)filetype;
+ (id)newSettingsForFileType: (NSString *)filetype;

- (id)initForFileType: (NSString *)filetype;
- (id)initForFSDefaultFileType: (NSString *)filetype;
- (id)initForDefaultFileType: (NSString *)filetype;

- (void)updateFromSource: (id <FileSettingsSource>)source;
- (NSString *)commandLineForScript: (NSString *)script;

- (void)applyValuesFromDict: (NSDictionary *)dict;
- (void)reset;
- (NSArray *) interpreters;

@end
back to top