Re: writing some new plugins

Zoltán Kovács <[email protected]> Wed, 11 Feb 2026 00:08:41 +0100
Newsgroups gmane.editors.texmacs.devel
Message-ID <CACQaL-KM1pji+hzt7-xjz+FgeiGMxesjYeVqrRibvuCeeq-oiA@mail.gmail.com>
--===============6029968684161705919==
Content-Type: multipart/alternative; boundary="000000000000cf0595064a80567c"

--000000000000cf0595064a80567c
Content-Type: text/plain; charset="UTF-8"

> there are so many items, I cannot figure it out where I should start my
> contributing work. Thanks in advance for giving some hints on this.
>

Meanwhile I found that the dummy mycas plugin is the way to go.
The file mycas.cpp is not anymore C++ compliant, so this change seems
important (at least for gcc 13.3):

.../TeXmacs/src/plugins/mycas/src$ *svn diff *
Index: mycas.cpp
===================================================================
--- mycas.cpp   (revision 15286)
+++ mycas.cpp   (working copy)
@@ -17,12 +17,14 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <iostream.h>
+#include <iostream>

#define DATA_BEGIN   ((char) 2)
#define DATA_END     ((char) 5)
#define DATA_ESCAPE  ((char) 27)

+using namespace std;
+
static int counter= 0;

void

Best, Zoltan

--000000000000cf0595064a80567c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote gmail_quote_container"><div><br>=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><d=
iv>there are so many items, I cannot figure it out where I should start my =
contributing work. Thanks in advance for giving some hints on this.</div></=
div></blockquote><div><br></div><div>Meanwhile I found that the dummy mycas=
 plugin is the way=C2=A0to go.</div><div>The file mycas.cpp is not anymore =
C++ compliant, so this change seems important (at least for gcc 13.3):</div=
><div><br></div><div><span style=3D"font-family:monospace"><span style=3D"c=
olor:rgb(0,0,0)">.../TeXmacs/src/plugins/mycas/src$ <b>svn diff
</b></span><br>Index: mycas.cpp
<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
<br>--- mycas.cpp =C2=A0=C2=A0(revision 15286)
<br>+++ mycas.cpp =C2=A0=C2=A0(working copy)
<br>@@ -17,12 +17,14 @@
<br> #include &lt;stdio.h&gt;
<br> #include &lt;stdlib.h&gt;
<br> #include &lt;string.h&gt;
<br>-#include &lt;iostream.h&gt;
<br>+#include &lt;iostream&gt;
<br> =C2=A0<br> #define DATA_BEGIN =C2=A0=C2=A0((char) 2)
<br> #define DATA_END =C2=A0=C2=A0=C2=A0=C2=A0((char) 5)
<br> #define DATA_ESCAPE =C2=A0((char) 27)
<br> =C2=A0<br>+using namespace std;
<br>+
<br> static int counter=3D 0;
<br> =C2=A0<br> void<br>
<br></span></div><div>Best, Zoltan<br></div></div><div dir=3D"ltr" class=3D=
"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"></div></div></div></div=
>

--000000000000cf0595064a80567c--


--===============6029968684161705919==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGV4bWFjcy1k
ZXYgbWFpbGluZyBsaXN0ClRleG1hY3MtZGV2QGdudS5vcmcKaHR0cHM6Ly9saXN0cy5nbnUub3Jn
L21haWxtYW4vbGlzdGluZm8vdGV4bWFjcy1kZXYK

--===============6029968684161705919==--