Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Regenerate enums #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions 11 examples/generate_phpdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# needs pyvips 2.2.3 or later

from pyvips import Image, Introspect, GValue, Error, \
ffi, enum_dict, flags_dict, vips_lib, gobject_lib, \
ffi, enum_dict, flags_dict, gobject_lib, \
type_map, type_name, type_from_name, nickname_find

# This file generates the phpdoc comments for the magic methods and properties.
Expand Down Expand Up @@ -275,11 +275,6 @@ def add_nickname(gtype, a, b):


def generate_enums():
# otherwise we're missing some enums
vips_lib.vips_token_get_type()
vips_lib.vips_saveable_get_type()
vips_lib.vips_image_type_get_type()

all_enums = []

def add_enum(gtype, a, b):
Expand All @@ -292,10 +287,6 @@ def add_enum(gtype, a, b):

type_map(type_from_name('GEnum'), add_enum)

# Filter internal enums
blacklist = ['VipsImageType', 'VipsToken']
all_enums = [name for name in all_enums if name not in blacklist]

for name in all_enums:
gtype = type_from_name(name)
php_name = remove_prefix(name)
Expand Down
1 change: 1 addition & 0 deletions 1 src/DemandStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ abstract class DemandStyle
const SMALLTILE = 'smalltile';
const FATSTRIP = 'fatstrip';
const THINSTRIP = 'thinstrip';
const ANY = 'any';
}
6 changes: 0 additions & 6 deletions 6 src/FFI.php
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,6 @@ private static function init(): void
GType vips_interpretation_get_type (void);
GType vips_operation_flags_get_type (void);
GType vips_band_format_get_type (void);
GType vips_token_get_type (void);
GType vips_saveable_get_type (void);
GType vips_image_type_get_type (void);

void vips_image_set_progress (VipsImage* image, bool progress);
void vips_image_set_kill (VipsImage* image, bool kill);
Expand Down Expand Up @@ -822,9 +819,6 @@ private static function init(): void
self::$vips->vips_interpretation_get_type();
self::$vips->vips_operation_flags_get_type();
self::$vips->vips_band_format_get_type();
self::$vips->vips_token_get_type();
self::$vips->vips_saveable_get_type();
self::$vips->vips_image_type_get_type();

// look these up in advance
self::$ctypes = [
Expand Down
55 changes: 0 additions & 55 deletions 55 src/ForeignJpegSubsample.php

This file was deleted.

54 changes: 0 additions & 54 deletions 54 src/GsfOutputCsvQuotingMode.php

This file was deleted.

58 changes: 0 additions & 58 deletions 58 src/Saveable.php

This file was deleted.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.