Skip to content

Commit 8d42d91

Browse files
author
root
committed
[Client]UI update
1 parent 580b2ef commit 8d42d91

21 files changed

+754
-183
lines changed

src/glade/main.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ typedef struct Data_storage
3636

3737
}data_storage;
3838

39-
data_storage ds[MAX_CNTF]; // 파일기준의 data구조체 //
39+
data_storage ds[MAX_CNTF]; // 파일기준의 data구조체 //
4040

4141
static gchar *path;
4242
static int cntf = 0;
4343
static char chkfname[20];
44-
int chk_tf; // chk_true or false //
45-
//uint data_flag = 1; // 어떤종류의 민감정보인지 확인하기위한 flag //
44+
int chk_tf; // chk_true or false //
45+
//uint data_flag = 1; // 어떤종류의 민감정보인지 확인하기위한 flag //
4646

4747

4848
GtkWidget *detect_window,
@@ -62,12 +62,12 @@ void m_setting_btn_clicked (GtkButton *m_setting_btn, gpointer *data);
6262
void d_detect_btn_clicked (GtkButton *d_detect_btn, gpointer *data);
6363
void d_option_btn_clicked (GtkButton *d_option_btn, gpointer *data);
6464
void d_folder_btn_clicked (GtkButton *d_folder_btn, gpointer *data);
65-
void d_close_btn_clicked (GtkButton *d_close_btn, gpointer *data);
65+
void d_close_btn_clicked (GtkButton *d_close_btn, gpointer *data);
6666
void d_detect_entry_activate (GtkEntry *d_detect_entry, gpointer *data);
6767

6868
void s_cloese_btn_clicked (GtkButton *s_cloese_btn, gpointer *data);
6969

70-
//Base64 encoding//
70+
// Base64 encoding //
7171
char *b64_encode(const unsigned char *src, size_t len, char *enc);
7272

7373

@@ -103,7 +103,7 @@ char match_regex_jnfg (regex_t *r, const char *to_match, char *filepath, struct
103103
/* "M" contains the matches found. */
104104
regmatch_t m[n_matches];
105105

106-
//버퍼크기만큼 읽은 부분 전체를 해당 정규식과 비교//
106+
// 버퍼크기만큼 읽은 부분 전체를 해당 정규식과 비교 //
107107
while (1)
108108
{
109109
int nomatch = regexec(r, p, n_matches, m, 0);
@@ -127,12 +127,12 @@ char match_regex_jnfg (regex_t *r, const char *to_match, char *filepath, struct
127127

128128
start = m[i].rm_so + (p - to_match);
129129

130-
//주민번호, 외국인등록번호 정규식 검사 통과//
130+
// 주민번호, 외국인등록번호 정규식 검사 통과 //
131131
if (i == 0)
132132
{
133133
int chk = 0, jtmp = 0, fgtmp = 0, sum = 0;
134134
char buf_tmp[15] = {0,};
135-
//주민번호, 외국인등록번호 유효성 검사//
135+
// 주민번호, 외국인등록번호 유효성 검사 //
136136
for (int j = 0; j < 14; j++)
137137
{
138138
buf_tmp[j] = *(to_match + start + j);
@@ -143,8 +143,8 @@ char match_regex_jnfg (regex_t *r, const char *to_match, char *filepath, struct
143143
+ buf_tmp[7]*8 + buf_tmp[8]*9 + buf_tmp[9]*2 + buf_tmp[10]*3 + buf_tmp[11]*4 + buf_tmp[12]*5;
144144

145145
chk = buf_tmp[13];
146-
jtmp = 11 - (sum % 11); //주민번호
147-
fgtmp = 13 - (sum % 11); //외국인번호
146+
jtmp = 11 - (sum % 11); // 주민번호 //
147+
fgtmp = 13 - (sum % 11); // 외국인번호 //
148148

149149
if (jtmp >= 10)
150150
{
@@ -156,23 +156,23 @@ char match_regex_jnfg (regex_t *r, const char *to_match, char *filepath, struct
156156
fgtmp -= 10;
157157
}
158158

159-
//주민번호 유효성 통과//
159+
// 주민번호 유효성 통과 //
160160
if (jtmp == chk)
161161
{
162-
int res = strcmp(chkfname, file->d_name); //같은파일 = 0
162+
int res = strcmp(chkfname, file->d_name); // 같은파일 = 0 //
163163

164164
if (res != 0)
165165
{
166166
cntf++;
167167
}
168168

169-
//읽고있는중인 파일 이름 저장
169+
// 읽고있는중인 파일 이름 저장 //
170170
strcpy(chkfname, file->d_name);
171171

172-
//검출된 주민등록번호의 수//
172+
// 검출된 주민등록번호의 수 //
173173
ds[cntf].jcnt++;
174174

175-
//data 구조체에 저장//
175+
// data 구조체에 저장 //
176176
strcpy(ds[cntf].fpath, filepath);
177177
strcpy(ds[cntf].fname, file->d_name);
178178
ds[cntf].fsize = buf.st_size;
@@ -181,23 +181,23 @@ char match_regex_jnfg (regex_t *r, const char *to_match, char *filepath, struct
181181
cntf, ds[cntf].jcnt, ds[cntf].dcnt, ds[cntf].fgcnt, ds[cntf].fpath, ds[cntf].fname, ds[cntf].fsize);
182182
}
183183

184-
//외국인등록번호 유효성 통과//
184+
// 외국인등록번호 유효성 통과 //
185185
if (fgtmp == chk)
186186
{
187-
int res = strcmp(chkfname, file->d_name); //같은파일 = 0
187+
int res = strcmp(chkfname, file->d_name); // 같은파일 = 0 //
188188

189189
if (res != 0)
190190
{
191191
cntf++;
192192
}
193193

194-
//읽고있는중인 파일 이름 저장
194+
// 읽고있는중인 파일 이름 저장 //
195195
strcpy(chkfname, file->d_name);
196196

197-
//검출된 외국인등록번호의 수//
197+
// 검출된 외국인등록번호의 수 //
198198
ds[cntf].fgcnt++;
199199

200-
//data 구조체에 저장//
200+
// data 구조체에 저장 //
201201
strcpy(ds[cntf].fpath, filepath);
202202
strcpy(ds[cntf].fname, file->d_name);
203203
ds[cntf].fsize = buf.st_size;
@@ -247,20 +247,20 @@ char match_regex_d (regex_t *r, const char *to_match, char *filepath, struct dir
247247
//운전면허 정규식 검사 통과//
248248
if (i == 0)
249249
{
250-
int res = strcmp(chkfname, file->d_name); //같은파일 = 0
250+
int res = strcmp(chkfname, file->d_name); //같은파일 = 0 //
251251

252252
if (res != 0)
253253
{
254254
cntf++;
255255
}
256256

257-
//읽고있는중인 파일 이름 저장
257+
// 읽고있는중인 파일 이름 저장 //
258258
strcpy(chkfname, file->d_name);
259259

260-
//검출된 운전면허의 수//
260+
// 검출된 운전면허의 수 //
261261
ds[cntf].dcnt++;
262262

263-
//data 구조체에 저장//
263+
// data 구조체에 저장 //
264264
strcpy(ds[cntf].fpath, filepath);
265265
strcpy(ds[cntf].fname, file->d_name);
266266
ds[cntf].fsize = buf.st_size;

0 commit comments

Comments
 (0)