changeset 100:d8069e354d60

Internally rename the PyPy3 plugin to pypy3 also: struct and its name
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 02 Aug 2020 17:17:11 +0200
parents ce09461b99ec
children cc494d5ae895
files uwsginl-plugin-lang-pypy3/files/extra/patch-plugins_pypy_pypy__plugin.c
diffstat 1 files changed, 21 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/uwsginl-plugin-lang-pypy3/files/extra/patch-plugins_pypy_pypy__plugin.c	Wed Jul 22 21:12:31 2020 +0200
+++ b/uwsginl-plugin-lang-pypy3/files/extra/patch-plugins_pypy_pypy__plugin.c	Sun Aug 02 17:17:11 2020 +0200
@@ -1,5 +1,14 @@
---- plugins/pypy/pypy_plugin.c.orig	2020-06-15 10:24:33 UTC
+--- plugins/pypy/pypy_plugin.c.orig	2020-07-09 07:54:09.000000000 +0200
 +++ plugins/pypy/pypy_plugin.c
+@@ -44,7 +44,7 @@ void (*uwsgi_pypy_hook_request)(void *, int);
+ void (*uwsgi_pypy_post_fork_hook)(void);
+ 
+ extern struct uwsgi_server uwsgi;
+-struct uwsgi_plugin pypy_plugin;
++struct uwsgi_plugin pypy3_plugin;
+ 
+ static int uwsgi_pypy_init() {
+ 
 @@ -68,11 +68,11 @@ static int uwsgi_pypy_init() {
  		if (upypy.home) {
  			// first try with /bin way:
@@ -45,3 +54,14 @@
  #endif
  		}
  	}
+@@ -372,8 +372,8 @@ static int uwsgi_pypy_mule(char *opt) {
+ }
+ 
+ 
+-struct uwsgi_plugin pypy_plugin = {
+-	.name = "pypy",
++struct uwsgi_plugin pypy3_plugin = {
++	.name = "pypy3",
+ 	.modifier1 = 0,
+ 	.on_load = uwsgi_pypy_onload,
+ 	.init = uwsgi_pypy_init,