Make quickjs version available for C code.

Open
#228 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
compilers

Research direction

Start with the VERSION file and the public C-header layout to determine where QuickJS exposes library-level API values. Compare the requested interface with the examples in the issue, then verify that a distribution lacking VERSION can obtain the same version through C; the change is done when the version is available from the C interface.

Written by the indexing model from the issue text.

Description

Currently version is only available as the VERSION file, but some distributions do not provide it as a part of libquickjs packet.

Here are some examples how other projects make their versions available:

#include <libxml/xmlversion.h>
LIBXML_DOTTED_VERSION

#include <zlib.h>
zlibVersion()

#include <openssl/ssl.h>
OPENSSL_VERSION_TEXT
Dominant language
C
Stars
11.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bellard/quickjs

All issues in bellard/quickjs

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.