Ver Fonte

update README.md

blueloveTH há 1 ano atrás
pai
commit
a048bf385d
2 ficheiros alterados com 13 adições e 6 exclusões
  1. 13 4
      README.md
  2. 0 2
      src/objects/dict.c

+ 13 - 4
README.md

@@ -1,24 +1,33 @@
 # pocketpy: python interpreter in 1 file
 # pocketpy: python interpreter in 1 file
 
 
 <p>
 <p>
-<a title="Build" href="https://github.com/pocketpy/pocketpy/actions/workflows" ><img src="https://github.com/pocketpy/pocketpy/actions/workflows/main.yml/badge.svg" /></a>
+<!-- Build -->
+<a title="Build" href="https://github.com/pocketpy/pocketpy/actions/workflows" >
+<img src="https://github.com/pocketpy/pocketpy/actions/workflows/main.yml/badge.svg" /></a>
+<!-- Codecov -->
 <a href="https://codecov.io/gh/pocketpy/pocketpy" > 
 <a href="https://codecov.io/gh/pocketpy/pocketpy" > 
- <img src="https://codecov.io/gh/pocketpy/pocketpy/branch/main/graph/badge.svg?token=TI9KAFL0RG"/> 
- </a>
+<img src="https://codecov.io/gh/pocketpy/pocketpy/branch/main/graph/badge.svg?token=TI9KAFL0RG"/></a>
+<!-- C++17 -->
 <a href="https://en.wikipedia.org/wiki/C%2B%2B#Standardization">
 <a href="https://en.wikipedia.org/wiki/C%2B%2B#Standardization">
 <img alt="C++17" src="https://img.shields.io/badge/C%2B%2B-17-blue.svg"></a>
 <img alt="C++17" src="https://img.shields.io/badge/C%2B%2B-17-blue.svg"></a>
+<!-- C11 -->
+<a href="https://en.wikipedia.org/wiki/C11_(C_standard_revision)">
+<img alt="Python" src="https://img.shields.io/badge/C-11-blue.svg"></a>
+<!-- License -->
 <a href="https://github.com/blueloveth/pocketpy/blob/main/LICENSE">
 <a href="https://github.com/blueloveth/pocketpy/blob/main/LICENSE">
 <img alt="GitHub" src="https://img.shields.io/github/license/blueloveth/pocketpy.svg?color=blue"></a>
 <img alt="GitHub" src="https://img.shields.io/github/license/blueloveth/pocketpy.svg?color=blue"></a>
+<!-- Github Release -->
 <a href="https://github.com/blueloveth/pocketpy/releases">
 <a href="https://github.com/blueloveth/pocketpy/releases">
 <img alt="GitHub release" src="https://img.shields.io/github/release/blueloveth/pocketpy.svg"></a>
 <img alt="GitHub release" src="https://img.shields.io/github/release/blueloveth/pocketpy.svg"></a>
 <!-- docs -->
 <!-- docs -->
 <a href="https://pocketpy.dev">
 <a href="https://pocketpy.dev">
 <img alt="Website" src="https://img.shields.io/website/https/pocketpy.dev.svg?down_color=red&down_message=offline&up_color=blue&up_message=online"></a>
 <img alt="Website" src="https://img.shields.io/website/https/pocketpy.dev.svg?down_color=red&down_message=offline&up_color=blue&up_message=online"></a>
+<!-- Discord -->
 <a title="Discord" href="https://discord.gg/WWaq72GzXv" >
 <a title="Discord" href="https://discord.gg/WWaq72GzXv" >
 <img src="https://img.shields.io/discord/1048978026131640390.svg" /></a>
 <img src="https://img.shields.io/discord/1048978026131640390.svg" /></a>
 </p>
 </p>
 
 
-pkpy is a lightweight(~15K LOC) Python interpreter for game scripting, built on C++17 with STL.
+pkpy is a lightweight(~15K LOC) Python interpreter for game scripting, built on C11 with C++17 wrappers.
 
 
 It aims to be an alternative to lua for game scripting, with elegant syntax, powerful features and competitive performance.
 It aims to be an alternative to lua for game scripting, with elegant syntax, powerful features and competitive performance.
 pkpy is extremely easy to embed via a single header file `pocketpy.h`, without external dependencies.
 pkpy is extremely easy to embed via a single header file `pocketpy.h`, without external dependencies.

+ 0 - 2
src/objects/dict.c

@@ -157,8 +157,6 @@ bool pkpy_Dict__contains(const pkpy_Dict* self, void* vm, pkpy_Var key) {
 
 
     int idx = pkpy_Dict__htget(self, h);
     int idx = pkpy_Dict__htget(self, h);
     if(idx == pkpy_Dict__idx_null(self)) return false;
     if(idx == pkpy_Dict__idx_null(self)) return false;
-
-    struct pkpy_DictEntry* entry = &c11__getitem(struct pkpy_DictEntry, &self->_entries, idx);
     return true;
     return true;
 }
 }