Skip to content

Commit

Permalink
Fix misspellings of "HVSC", fixes bug #2101
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45401 379a1393-f5fb-40a0-bcee-ef074d9b53f7
  • Loading branch information
Compyx committed Dec 15, 2024
1 parent c3781af commit c089991
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion vice/src/arch/gtk3/widgets/settings_hvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ GtkWidget *settings_hvsc_widget_create(GtkWidget *parent)

grid = vice_gtk3_grid_new_spaced(VICE_GTK3_DEFAULT, VICE_GTK3_DEFAULT);

label = gtk_label_new("HSVC root directory");
label = gtk_label_new("HVSC root directory");
gtk_widget_set_halign(label, GTK_ALIGN_START);
hvsc_root_entry = vice_gtk3_resource_entry_new("HVSCRoot");
gtk_widget_set_hexpand(hvsc_root_entry, TRUE);
Expand Down
8 changes: 4 additions & 4 deletions vice/src/hvsc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ void hvsc_set_paths(const char *path)
}


/** \brief Free memory used by the HSVC paths
/** \brief Free memory used by the HVSC paths
*/
void hvsc_free_paths(void)
{
Expand All @@ -568,7 +568,7 @@ void hvsc_free_paths(void)
}


/** \brief Strip the HSVC root path from \a path
/** \brief Strip the HVSC root path from \a path
*
* \param[in] path path to a PSID file inside the HVSC
*
Expand All @@ -579,15 +579,15 @@ void hvsc_free_paths(void)
char *hvsc_path_strip_root(const char *path)
{
size_t plen = strlen(path); /* length of path */
size_t rlen = (hvsc_root_path == NULL) ? 0 : strlen(hvsc_root_path); /* length of HSVC root path */
size_t rlen = (hvsc_root_path == NULL) ? 0 : strlen(hvsc_root_path); /* length of HVSC root path */
char *result;

if (rlen == 0) {
result = hvsc_strdup(path);
} else if (plen <= rlen) {
result = hvsc_strdup(path);
} else if (memcmp(path, hvsc_root_path, rlen) == 0) {
/* got HSVC root path */
/* got HVSC root path */
result = hvsc_malloc(plen - rlen + 1u);
memcpy(result, path + rlen, plen - rlen + 1u);
} else {
Expand Down
2 changes: 1 addition & 1 deletion vice/src/hvsc/hvsc_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* This number indicates API version, when this number changes it means there
* are incompatible changes in the API. Set via the Makefile.
*/
#ifndef HSVC_LIB_VERSION_MAJ
#ifndef HVSC_LIB_VERSION_MAJ
#define HVSC_LIB_VERSION_MAJ 0
#endif

Expand Down
2 changes: 1 addition & 1 deletion vice/src/hvsc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

/** \brief Initialize the library
*
* This sets the paths to the HSVC and the SLDB, STIL, and BUGlist files.
* This sets the paths to the HVSC and the SLDB, STIL, and BUGlist files.
*
* The \a path is expected to be an absolute path to the HVSC's root directory,
* or `NULL` to use the environment variable `HVSC_BASE`.
Expand Down

0 comments on commit c089991

Please sign in to comment.