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)
Make downcasting bug a bit more restrictive to minimize future problems. 3bef4ca2d62e1de3fe70986de71a3da2b68ff25f cilibrar 2003-06-08 09:52:03
Fixed segfault involving undeclared variables by assuming they are integer. 76b34be901540214c21b8af681bcf42620ca0e21 cilibrar 2003-06-08 09:49:56
Fixed bug with string literal addition. Added unfortunate special case to canconvert to allow downcasts from base to derived. Waiting on Blizzard to fix this one. (such a cast appears in one place in Blizzard.j) 1384b0771dd6db4c6cb548fef3331f518509c68e cilibrar 2003-06-08 09:40:28
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 3bef4ca2d62e1de3fe70986de71a3da2b68ff25f - Make downcasting bug a bit more restrictive to minimize future problems.
Author: cilibrar
Author date (UTC): 2003-06-08 09:52
Committer name: cilibrar
Committer date (UTC): 2003-06-08 09:52
Parent(s): 76b34be901540214c21b8af681bcf42620ca0e21
Signer:
Signing key:
Signing status: N
Tree: 32aa4d3dfd21c1faa3e30a883daa0d5152df3c6a
File Lines added Lines deleted
src/misc.c 4 4
File src/misc.c changed (mode: 100644) (index 0a36d43..6cffeca)
... ... int canconvert(const struct typenode *ufrom, const struct typenode *uto)
233 233 if (from == NULL || to == NULL) return 0; if (from == NULL || to == NULL) return 0;
234 234 if (isDerivedFrom(from, to)) if (isDerivedFrom(from, to))
235 235 return 1; return 1;
236 /* Blizzard bug: allows downcasting erroneously */
237 /* TODO: get Blizzard to fix this in Blizzard.j and the language */
238 if (isDerivedFrom(to, from))
239 return 1;
236 240 if (from->typename == NULL || to->typename == NULL) return 0; if (from->typename == NULL || to->typename == NULL) return 0;
237 241 from = getPrimitiveAncestor(from); from = getPrimitiveAncestor(from);
238 242 to = getPrimitiveAncestor(to); to = getPrimitiveAncestor(to);
 
... ... int canconvert(const struct typenode *ufrom, const struct typenode *uto)
241 245 if ((from == gInteger || from == gReal) && if ((from == gInteger || from == gReal) &&
242 246 (to == gInteger || to == gReal)) (to == gInteger || to == gReal))
243 247 return 1; return 1;
244 /* Blizzard bug: allows downcasting erroneously */
245 /* TODO: get Blizzard to fix this in Blizzard.j and the language */
246 if (from == to)
247 return 1;
248 248 sprintf(ebuf, "Cannot convert %s to %s", ufrom->typename, uto->typename); sprintf(ebuf, "Cannot convert %s to %s", ufrom->typename, uto->typename);
249 249 yyerror(ebuf); yyerror(ebuf);
250 250 } }
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