Adding change log and fixing copyright/license source code headers.

This commit is contained in:
Martin Dvorak 2015-09-02 21:24:13 +02:00
parent c1eb5cf841
commit 271395d297
31 changed files with 520 additions and 170 deletions

61
ChangeLog Normal file
View file

@ -0,0 +1,61 @@
2015-05-09 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.17 - History Management and Color Profiles
* This release brings improvements and stabilization
of the history management along with terminal
background agnostic color profiles.
2015-01-08 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.15 - First Item Autoselect and Vim Binding
* Minor release that brings first history item
autoselect on empty prompt selection, Vim style
history navigation binding and several bug fixes.
2014-10-29 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.14 - Keyboard Search and Improved Highlighting
* New release brings keyboard based search i.e. matching
of history entries by occurrence of words in arbitrary
order.
* In addition highlighting of matching segments in history
entries has been improved.
2014-09-11 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.13 - Transparent terminal and Internationalization
* New release brings support for transparent terminals.
* Internationalization problems were finally solved - use
of Czech, German, Chinese, ... special characters w/
and w/o diacritics should be smooth.
2014-05-05 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.12 - Regexp
* New release brings regexp based filtering of command
history. In addition it's possible to use HSTR in
non-interactive mode i.e. filtered output is written
to standard output. openSUSE became newly supported
distribution.
2014-04-14 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.10 - Favorites
* Major release that brings favorites - favorite
commands can be bookmarked for later use and managed
in a brand new view
2014-03-16 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.3 - Radix Sort Stabilization
* A stabilization release that enables loading of huge
history files and makes internal radix sort
implementation more efficient.
2014-01-25 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v1.0 - The First Stable Release
2013-12-03 Martin Dvorak <martin.dvorak@mindforger.com>
* Released v0.2 - Initial Release

View file

@ -1,6 +1,19 @@
# configure.ac Autoconf configuration file
# process this file with autoconf to produce a configure script
#
# Process this file with autoconf to produce a configure script.
# Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
AC_PREREQ([2.69])

17
pad.xml
View file

@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
pad.xml PAD file for HSTR
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<XML_DIZ_INFO>
<MASTER_PAD_VERSION_INFO>
<MASTER_PAD_VERSION>3.10</MASTER_PAD_VERSION>

View file

@ -1,3 +1,19 @@
# Makefile.am HSTR automake
#
# Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# http://mij.oltrelinux.com/devel/autoconf-automake/
AM_CFLAGS = --pedantic -Wall -std=c99 -O2
AM_LDFLAGS =

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hashset.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Hash set
============================================================================
hashset.c hash set implementation
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "include/hashset.h"

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : BASH history completion utility
============================================================================
hstr.c BASH history completion utility
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#define _GNU_SOURCE

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_blacklist.c
Author : martin.dvorak@midforger.com
Copyright : Apache 2.0
Description : Commands to be skipped from history.
============================================================================
hstr_blacklist.c commands to be skipped from history
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <stdio.h>

View file

@ -1,11 +1,20 @@
/*
============================================================================
Name : hstr_curses.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Curses utilities
http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html
============================================================================
hstr_curses.c Curses utilities
http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "include/hstr_curses.h"

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_favorites.c
Author : martin.dvorak@midforger.com
Copyright : Apache 2.0
Description : Favorite commands.
============================================================================
hstr_favorites.c favorite commands
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <stdio.h>

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_history.h
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Loading and processing of BASH history
============================================================================
hstr_history.c loading and processing of BASH history
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <stdio.h>

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_regexp.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Simplified regexp that suits HSTR needs - matching and caching
============================================================================
hstr_regexp.c simplified regexp that suits HSTR needs - matching and caching
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "include/hstr_regexp.h"

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_utils.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Utilities
============================================================================
hstr_utils.c utilities
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "include/hstr_utils.h"

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hashset.h
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Hash set
============================================================================
hashset.h header file for hash set
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _HASHSET_H_

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_blacklist.h
Author : martin.dvorak@midforger.com
Copyright : Apache 2.0
Description : Commands to be skipped from history.
============================================================================
hstr_blacklist.h header file for commands to be skipped from history
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef HSTR_BLACKLIST_H_

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_curses.h
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Curses helpers
============================================================================
hstr_curses.h header file for curses helpers
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _HSTR_CURSES_H

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_favorites.h
Author : martin.dvorak@midforger.com
Copyright : Apache 2.0
Description : Favorite commands.
============================================================================
hstr_favorites.h header file for favorite commands
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _HSTR_FAVORITES_H_

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_history.h
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Loading and processing of BASH history
============================================================================
hstr_history.h header file for loading and processing of BASH history
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _HSTR_HISTORY_H_

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_regexp.h
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Simplified regexp that suits HSTR needs - matching and caching
============================================================================
hstr_regexp.h header file for simplified regexp that suits HSTR needs
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _HSTR_REGEXP_H

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : hstr_utils.h
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Utilities
============================================================================
hstr_utils.h header file for HSTR utilities
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _HSTR_UTILS_H

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : radixsort.h
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Radix sort
============================================================================
radixsort.h header file for radix sort implementation
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef RADIXSORT_H_

View file

@ -1,10 +1,19 @@
/*"
============================================================================
Name : radixsort.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : Radix sort
============================================================================
/*
radixsort.c radix sort
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "include/radixsort.h"

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_args.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <string.h>

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_curses_keyb.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <ncursesw/curses.h>

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_escape_chars.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test for verification of escape/special chars handling
============================================================================
test_escape_chars.c A test for verification of escape/special chars handling
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
void generate_bash_history_with_special_chars() {

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_favorites.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "../../src/include/hstr_favorites.h"

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_getopt.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <stdio.h> /* for printf */

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_hashset.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "../../src/include/hashset.h"

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_keyb.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <stdio.h>
@ -22,7 +31,7 @@ void echo_printable_characters()
}
}
void echo_keyb_characters()
void echo_keyb_characters()
{
int c;
while(1) {

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_ranking.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <stdio.h>

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_regexp.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test for regular expression based matching
============================================================================
test_*.c A test for regular expression based matching
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <regex.h>

View file

@ -1,10 +1,19 @@
/*
============================================================================
Name : test_utf8.c
Author : martin.dvorak@mindforger.com
Copyright : Apache 2.0
Description : A test
============================================================================
test_*.c HSTR test
Copyright (C) 2014 Martin Dvorak <martin.dvorak@mindforger.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include <locale.h>
@ -35,7 +44,7 @@ void show_bits(INTEGRAL_TYPE x) {
}
void console_echo_czech()
{
{
int c;
while(1) {
c = getc(stdin);
@ -87,18 +96,18 @@ void console_static_czech()
{
setlocale(LC_ALL, "");
char *s="Čeština ěščřžýáíé.";
char *s="Čeština ěščřžýáíé.";
printf("\nStatic printf: %s", s);
}
void console_check()
void console_check()
{
printf("\nEnglish string.");
}
void curses_wide_czech()
{
char *s="Čeština ěščřžýáíé.";
char *s="Čeština ěščřžýáíé.";
printf("Going to print the following string in Curses: '%s'", s);
getch();