mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
Rename "vocabulory" to "vocabulary"
This commit is contained in:
@@ -321,7 +321,7 @@ style:
|
||||
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | sed 's#com[0-9]#/dev/ttyacm0#'|python3 client/pyscripts/pm3_help2json.py - doc/commands.json
|
||||
|
||||
# Update the readline autocomplete autogenerated code
|
||||
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | python3 client/pyscripts/pm3_help2list.py - client/src/pm3line_vocabulory.h
|
||||
[ -x client/proxmark3 ] && client/proxmark3 --fulltext | python3 client/pyscripts/pm3_help2list.py - client/src/pm3line_vocabulary.h
|
||||
|
||||
|
||||
# Detecting weird codepages and tabs.
|
||||
|
||||
@@ -12,7 +12,7 @@ This version
|
||||
- Iceman
|
||||
|
||||
Note:
|
||||
This script is used as a helper script to generate the pm3line_vocabulory.h file.
|
||||
This script is used as a helper script to generate the pm3line_vocabulary.h file.
|
||||
It need a working proxmark3 client to extract the help text.
|
||||
|
||||
Ie: this script can't be used inside the normal build sequence.
|
||||
@@ -65,8 +65,8 @@ def main():
|
||||
// readline auto complete utilities
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef PM3LINE_VOCABULORY_H__
|
||||
#define PM3LINE_VOCABULORY_H__
|
||||
#ifndef PM3LINE_VOCABULARY_H__
|
||||
#define PM3LINE_VOCABULARY_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -74,12 +74,12 @@ extern "C" {
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct vocabulory_s {
|
||||
typedef struct vocabulary_s {
|
||||
bool offline;
|
||||
const char *name;
|
||||
} vocabulory_t;
|
||||
} vocabulary_t;
|
||||
|
||||
const static vocabulory_t vocabulory[] = {\n""")
|
||||
const static vocabulary_t vocabulary[] = {\n""")
|
||||
|
||||
for key, values in command_data.items():
|
||||
offline = 0
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#elif defined(HAVE_LINENOISE)
|
||||
#include "linenoise.h"
|
||||
#endif
|
||||
#include "pm3line_vocabulory.h"
|
||||
#include "pm3line_vocabulary.h"
|
||||
#include "pm3_cmd.h"
|
||||
#include "ui.h" // g_session
|
||||
#include "util.h" // str_ndup
|
||||
@@ -45,12 +45,12 @@ static char *rl_command_generator(const char *text, int state) {
|
||||
len = strlen(text);
|
||||
}
|
||||
|
||||
while ((command = vocabulory[index].name)) {
|
||||
while ((command = vocabulary[index].name)) {
|
||||
|
||||
// When no pm3 device present
|
||||
// and the command is not available offline,
|
||||
// we skip it.
|
||||
if ((g_session.pm3_present == false) && (vocabulory[index].offline == false)) {
|
||||
if ((g_session.pm3_present == false) && (vocabulary[index].offline == false)) {
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
@@ -82,12 +82,12 @@ static void ln_command_completion(const char *text, linenoiseCompletions *lc) {
|
||||
size_t prev_match_len = 0;
|
||||
size_t len = strlen(text);
|
||||
const char *command;
|
||||
while ((command = vocabulory[index].name)) {
|
||||
while ((command = vocabulary[index].name)) {
|
||||
|
||||
// When no pm3 device present
|
||||
// and the command is not available offline,
|
||||
// we skip it.
|
||||
if ((g_session.pm3_present == false) && (vocabulory[index].offline == false)) {
|
||||
if ((g_session.pm3_present == false) && (vocabulary[index].offline == false)) {
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user