This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int needed_vars(int size) { | |
int vars_needed = size/2000; | |
if (vars_needed * 2000 < size) { | |
vars_needed++; | |
} | |
return vars_needed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse(file, start, len) | |
local tree = {} | |
local curcmd = '' -- currently parsed command | |
local ix = start | |
file:seek("set", ix) | |
while(ix < len) do | |
local r = file:read(1) | |
ix = ix + 1 | |
if r then | |
if r == "(" then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1.2.2 | |
selected: polish | |
polish: | |
you_have_new_mail: Masz nowa wiadomosc! | |
player_context_required: Wszystkie komendy wymagaja gracza! | |
cmd: | |
prefix: '§2[§4Market§f transalated by draconite§2] ' | |
help: Wpisz /market ? dla pomocy | |
help_legend: 'Legenda: () opcjonalne, [] opisowe' | |
listings_syntax: /market listings (<search>) |