vrtc / pjass (public) (License: BSD) (since 2023-08-03) (hash sha1)
pjass is a free Jass scripting language parser. This repository is a fork of lep/pjass. The goal is to add Debian packaging. As of the time of this writing, it works for current stable, that is Debian 12 (bookworm).
List of commits:
Subject Hash Author Date (UTC)
Allow null to be converted to code, string, and appropriate comparisons. a2a05f7938a46a6a873d0f3313af760900403c88 cilibrar 2003-06-08 07:50:23
lets begin edb29fca55a82526251fd7c671302425ed97d9bd cilibrar 2003-06-08 07:47:56
Commit a2a05f7938a46a6a873d0f3313af760900403c88 - Allow null to be converted to code, string, and appropriate comparisons.
Author: cilibrar
Author date (UTC): 2003-06-08 07:50
Committer name: cilibrar
Committer date (UTC): 2003-06-08 07:50
Parent(s): edb29fca55a82526251fd7c671302425ed97d9bd
Signer:
Signing key:
Signing status: N
Tree: 17a26c7d8bbb7dccf5d3e5bf2c473ea2aa1a5506
File Lines added Lines deleted
src/misc.c 3 3
File src/misc.c changed (mode: 100644) (index b32b715..c644e0a)
... ... int canconvert(const struct typenode *ufrom, const struct typenode *uto)
225 225 if (from->typename == NULL || to->typename == NULL) return 0; if (from->typename == NULL || to->typename == NULL) return 0;
226 226 from = getPrimitiveAncestor(from); from = getPrimitiveAncestor(from);
227 227 to = getPrimitiveAncestor(to); to = getPrimitiveAncestor(to);
228 if (from == gNull && to == gHandle)
228 if (from == gNull && (to == gHandle || to == gString || to == gCode))
229 229 return 1; return 1;
230 230 if ((from == gInteger || from == gReal) && if ((from == gInteger || from == gReal) &&
231 231 (to == gInteger || to == gReal)) (to == gInteger || to == gReal))
 
... ... void checkcomparison(const struct typenode *a, const struct typenode *b)
264 264 const struct typenode *pa, *pb; const struct typenode *pa, *pb;
265 265 pa = getPrimitiveAncestor(a); pa = getPrimitiveAncestor(a);
266 266 pb = getPrimitiveAncestor(b); pb = getPrimitiveAncestor(b);
267 if (((pa == gHandle || pa == gCode) && pb == gNull) ||
268 (pa == gNull && (pb == gCode || pb == gHandle)) ||
267 if (((pa == gString || pa == gHandle || pa == gCode) && pb == gNull) ||
268 (pa == gNull && (pb == gString || pb == gCode || pb == gHandle)) ||
269 269 (pa == gNull && pb == gNull)) (pa == gNull && pb == gNull))
270 270 return; return;
271 271 if ((pa == gReal || pa == gInteger) && if ((pa == gReal || pa == gInteger) &&
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/pjass

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/pjass

Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/pjass

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main