diff --git a/readme.md b/readme.md index e88097d..860a1cf 100644 --- a/readme.md +++ b/readme.md @@ -13,6 +13,18 @@ What is this? This is a modified copy of the Pawn compiler version 3.2.3664 by Compuphase that fixes some bugs and adds a few features. +Installation on openSUSE/SLES +--------------------- +There is an installation package available for openSUSE/SLES users so that you can easily install the compiler on your distribution. Please follow these steps: + +1. Go to https://build.opensuse.org/package/show/home:mschnitzer/pawncc +2. On the right side, select your distribution (only if it's not disabled!) +3. Click "Go to download repository" +4. Copy the link and enter in sudo mode in your shell: `zypper ar $COPIED_LINK home:mschnitzer` +5. Again as root, type: `zypper ref` +6. Install the package with `zypper in pawncc` +7. Run `pawncc` in your shell to test if it's working + Changes ------- diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index a97dd8c..e05166c 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -1330,7 +1330,8 @@ static int command(void) /* mark function as "used" */ /* do NOT mark it as written as that has a different meaning for * functions (marks them as "should return a value") */ - markusage(sym,uREAD); + if (sc_status!=statSKIP) + markusage(sym,uREAD); } else { outval(sym->addr,FALSE); /* mark symbol as "used", unknown whether for read or write */