ref: 2f457e75a5d614710a6683875d17d9c552a52a05
parent: 9bafdc2d6a3b5f5fd5a92c99ad7c02a6b53117d8
author: cinap_lenrek <[email protected]>
date: Sun Jul 9 19:36:19 EDT 2023
libaml: dummy implement NotifyOp (thanks uramekus)
--- a/sys/src/libaml/aml.c
+++ b/sys/src/libaml/aml.c
@@ -152,7 +152,7 @@
Oif, Oelse, Owhile, Obreak, Oret, Ocall,
Ostore, Oderef, Ootype, Osize, Oref, Ocref, Ocat, Ocatr, Omid,
Oacq, Osignal, Orel, Ostall, Osleep, Oload, Ounload,
- Otodec, Otohex, Otoint, Otostr,
+ Otodec, Otohex, Otoint, Otostr, Onotify,
};
static Op optab[];
@@ -2225,6 +2225,8 @@
[Otohex] "ToHexString", "*@", evalconv,
[Otoint] "ToInteger", "*@", evalconv,
[Otostr] "ToString", "*i@", evaltostr,
+
+ [Onotify] "Notify", "@i", evalnop,
};
static uchar octab1[] = {
@@ -2244,7 +2246,7 @@
/* 68 */ Oenv, Oenv, Oenv, Oenv, Oenv, Oenv, Oenv, Obad,
/* 70 */ Ostore, Oref, Oadd, Ocat, Osub, Oinc, Odec, Omul,
/* 78 */ Odiv, Oshl, Oshr, Oand, Onand, Oor, Onor, Oxor,
-/* 80 */ Onot, Olbit, Orbit, Oderef, Ocatr, Omod, Obad, Osize,
+/* 80 */ Onot, Olbit, Orbit, Oderef, Ocatr, Omod, Onotify,Osize,
/* 88 */ Oindex, Omatch, Ocfld4, Ocfld2, Ocfld1, Ocfld0, Ootype, Ocfld8,
/* 90 */ Oland, Olor, Olnot, Oleq, Olgt, Ollt, Obad, Otodec,
/* 98 */ Otohex, Otoint, Obad, Obad, Otostr, Obad, Omid, Obad,