+++ /dev/null
-Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: shgen
-Source: https://binomiant.duckdns.org/MpqU9XX8/shgen.git
-
-Files: *
-Copyright: 2018 dragan <ebelcrom@gmail.com>
-License: GPL-2+
-
-Files: debian/*
-Copyright: 2018 dragan <ebelcrom@gmail.com>
-License: GPL-2+
- This package is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- .
- This package is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- .
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>
- .
- On Debian systems, the complete text of the GNU General
- Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+++ /dev/null
-#!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#export DH_VERBOSE = 1
-
-
-# see FEATURE AREAS in dpkg-buildflags(1)
-#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-
-# see ENVIRONMENT in dpkg-buildflags(1)
-# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
-# package maintainers to append LDFLAGS
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
-
-%:
- dh $@
-
-
-# dh_make generated override targets
-# This is example for Cmake (See https://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
-
-override_dh_strip:
#include <wait.h>
#include <signal.h>
-/*
- * TODO:
- * sha bang: /bin/sh|bash
- * header: comment, license
- * lib.sh: log, error, warning
- * BASH_XTRACEFD, debug file
- * - check defined
- * name and directory
- * - parameters...
- */
-
static int x_size = 0;
static int y_size = 0;
static CDKENTRY* lfile_entry;
static CDKBUTTON* generate_button;
+static char null[5];
static char* default_opts = "<C></B><ESCAPE><!B> - Abort </B><TAB|RETURN><!B> - Next";
static char* enable_opts = "<C></B><ESCAPE><!B> - Abort </B><TAB|RETURN><!B> - Next"
" </B><SPACE><!B> - Choose";
char* lfile;
} data =
{
- NULL,
+ null,
FALSE,
- NULL,
- NULL,
- NULL,
+ null,
+ null,
+ null,
FALSE,
- NULL,
- { NULL, NULL, NULL, NULL },
+ null,
+ { null, null, null, null },
FALSE,
- NULL
+ null
};
static void create_button(CDKSCREEN* screen);
{
/* register choice */
int i;
- for (i = 0; i < sizeof(data.common); i++)
+ for (i = 0; i < sizeof(data.common) / sizeof(data.common[0]); i++)
{
if (common_selection->selections[i])
{
if (filename != NULL && strlen(filename) > 0)
{
/* register choice */
- if (data.dfile != NULL)
+ if (strcmp(data.dfile, "NULL"))
{
free(data.dfile);
}
if (filename != NULL && strlen(filename) > 0)
{
/* register choice */
- if (data.lfile != NULL)
+ if (strcmp(data.lfile, "NULL"))
{
free(data.lfile);
}
if (filename != NULL && strlen(filename) > 0)
{
/* register choice */
- if (data.script != NULL)
+ if (strcmp(data.script, "NULL"))
{
free(data.script);
}
static void write_settings(int view)
{
- char* shabang = data.shabang;
+/* char* shabang = data.shabang;
// boolean header;
char header[2];
char* description = data.description;
snprintf(lib, sizeof(lib), "%i", data.lib);
if (data.lfile == NULL)
lfile = "NULL";
-
+*/
if (view)
{
- char* msg[] = { shabang, header, description, license, script,
- debug, dfile, common, lib, lfile };
+/* char* msg[] = { data.shabang, header, data.description, data.license, data.script,
+ debug, data.dfile, common, lib, data.lfile };
- popupLabel(screen, msg, 10);
+ popupLabel(screen, msg, 10);*/
}
else
{
int main(int argc, char* argv[])
{
+ snprintf(null, sizeof(null), "%s", "NULL");
dimension_check();
window = initscr();