• Home
  • Raw
  • Download

Lines Matching +full:pylint +full:- +full:exit

3 # pylint: disable=too-many-lines, missing-docstring, invalid-name
25 VERSION_STR = '''glib-genmarshal version @VERSION@
26 glib-genmarshal comes with ABSOLUTELY NO WARRANTY.
27 You may redistribute copies of glib-genmarshal under the terms of
57 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
58 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
59 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
60 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
61 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
62 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
63 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
64 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
65 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
66 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
67 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
68 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
69 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
70 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
71 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
72 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
73 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
74 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
75 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
122 # pylint: disable=too-few-public-methods
144 sys.exit(1)
157 sys.exit(1)
166 outfile.write('/* This file is generated by glib-genmarshal, do not '
183 # Maintain compatibility with the old C-based tool
185 outfile.write('#include <glib-object.h>\n')
225 outfile.write('#include <glib-object.h>\n')
236 # - signal: the token used in the marshaller prototype (mandatory)
237 # - ctype: the C type for the marshaller argument (mandatory)
238 # - getter: the function used to retrieve the argument from the GValue
240 # - promoted: the C type used by va_arg() to retrieve the argument from
243 # - box: an array of two elements, containing the boxing and unboxing
246 # - static-check: a boolean value, if the given type should perform
249 # - takes-type: a boolean value, if the boxing and unboxing functions
252 # - deprecated: whether the token has been deprecated (optional)
253 # - replaced-by: the token used to replace a deprecated token (optional,
333 'static-check': True,
340 'static-check': True,
347 'static-check': True,
348 'takes-type': True,
366 'static-check': True,
367 'takes-type': False,
391 # - signal: the token used in the marshaller prototype (mandatory)
392 # - ctype: the C type for the marshaller argument (mandatory)
393 # - setter: the function used to set the return value of the callback
395 # - deprecated: whether the token has been deprecated (optional)
396 # - replaced-by: the token used to replace a deprecated token (optional,
540 # pylint: disable=too-few-public-methods
603 # pylint: disable=too-many-statements, too-many-locals, too-many-branches
682 if IN_ARGS[arg].get('static-check', False):
688 if IN_ARGS[arg].get('takes-type', False):
709 body += [' data1 = closure->data;']
721 body += [' data2 = closure->data;']
723 # pylint: disable=line-too-long
724 …body += [' callback = ({}) (marshal_data ? marshal_data : cc->callback);'.format(typedef_marshal)]
755 if IN_ARGS[arg].get('static-check', False):
761 if IN_ARGS[arg].get('takes-type', False):
834 proto = ['/* Prototype for -Wmissing-prototypes */']
854 proto = ['/* Prototype for -Wmissing-prototypes */']
869 arg_parser.add_argument('--prefix', metavar='STRING',
872 arg_parser.add_argument('--output', metavar='FILE',
876 arg_parser.add_argument('--skip-source',
879 arg_parser.add_argument('--internal',
882 arg_parser.add_argument('--valist-marshallers',
885 arg_parser.add_argument('-v', '--version',
888 help='Print version information, and exit')
889 arg_parser.add_argument('--g-fatal-warnings',
893 arg_parser.add_argument('--include-header', metavar='HEADER', nargs='?',
897 arg_parser.add_argument('--pragma-once',
900 arg_parser.add_argument('-D',
904 help='Pre-processor define')
905 arg_parser.add_argument('-U',
909 help='Pre-processor undefine')
913 'or "-" for standard input')
914 arg_parser.add_argument('--prototypes',
917 arg_parser.add_argument('--header',
920 arg_parser.add_argument('--body',
925 group.add_argument('--stdinc',
929 group.add_argument('--nostdinc',
935 group.add_argument('--quiet',
938 group.add_argument('--verbose',
946 sys.exit(0)
955 # forcing the --prototypes and --body arguments instead. We make this
956 # warning non-fatal even with --g-fatal-warnings, as it's a deprecation
959 print_warning('Using --header and --body at the same time is deprecated; ' +
960 'use --body --prototypes instead', False)
990 matches = re.match(r'^([A-Z0-9]+)\s?:\s?([A-Z0-9,\s]+)$', line.strip())