Version Numbering

Open
#18 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
c
Domain
compilers

Research direction

Start in mquickjs.h, where the header guard and public definitions are shown in the issue. Add a version identifier using the project's current version convention, then verify that consumers can read the active engine version and that the header still compiles.

Written by the indexing model from the issue text.

Description

Version Numbering:

It would be useful to have a version number to verify what version of the engine is active.
perhaps adding #define MQUICKJS_VERSION "#.#.#" to the top of the mquickjs.h file ...

---
#ifndef MQUICKJS_H
#define MQUICKJS_H

#define MQUICKJS_VERSION "0.1.0"

#include <inttypes.h>
---

or perhaps even expand it to include "MAJOR.MINOR.PATCH" separated as defined in https://semver.org/

---
#ifndef MQUICKJS_H
#define MQUICKJS_H

#define MQUICKJS_VERSION_MAJOR "0"
#define MQUICKJS_VERSION_MINOR "1"
#define MQUICKJS_VERSION_PATCH "0"
#define MQUICKJS_VERSION MQUICKJS_VERSION_MAJOR "." MQUICKJS_VERSION_MINOR "." MQUICKJS_VERSION_PATCH

#include <inttypes.h>
---

Dominant language
C
Stars
6.2k
Forks
251
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/mquickjs

All issues in bellard/mquickjs

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.