Stringscan

Check-in [074c076009]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Begin Windows build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 074c076009c349e87c707360ed49b6c199ca29380278f70659933f0de98cab3d
User & Date: kevin 2017-07-09 03:58:29
Context
2017-07-09
04:59
Refine Windows build check-in: 07faf86fdc user: kevin tags: trunk
03:58
Begin Windows build check-in: 074c076009 user: kevin tags: trunk
00:42
Tweak Tcl path check-in: 959c1b5a35 user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to buildexe.bat.


1

C:/Users/kevin/Desktop/ruby-relative/rubyinstaller/sandbox/devkit/mingw/bin/gcc -v -Wall stringscan.c -m64 -IC:/Users/kevin/Desktop/ruby23_mingw_loadrelative/include/ruby-2.3.0/x64-mingw32 -IC:/Users/kevin/Desktop/ruby23_mingw_loadrelative/include/ruby-2.3.0 -LC:/Users/kevin/Desktop/ruby23_mingw_loadrelative/lib -LC:/Users/kevin/Desktop/ruby23_mingw_loadrelative/bin -llibx64-msvcrt-ruby230  -lShlwapi -o Stringscan.exe
>
|
1
2
call %1\gcc -v -Wall icons.o versioninfo.o stringscan.c -m64 -I%2\include\ruby-2.3.0\x64-mingw32 -I%2\include\ruby-2.3.0 -L%2\lib -L%2\bin  -lShlwapi -o Stringscan.exe
 

Changes to stringscan.c.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <C:\Users\kevin\Desktop\ruby23_mingw_loadrelative\include\ruby-2.3.0\ruby.h>
#include <Windows.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <tchar.h>
 
int main(int argc, char *argv[])
{

  TCHAR exedir [MAX_PATH];

  
#if 0 
  GetModuleFileName(NULL, exedir, MAX_PATH);
  _tprintf("%s/n", exedir);
  PathRemoveFileSpec(exedir);
  _tprintf("%s/n", exedir);
#endif

  /*Get the module's full path, and set to the current working directory.*/
  if (!GetModuleFileName(NULL, exedir, MAX_PATH)) {

    TCHAR errmsg[512];
    FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,0, GetLastError(),0,errmsg,1024,NULL);

    _tprintf( TEXT("The path is %s, and the error is %s/n"), exedir, errmsg );



|







<
<
<
<
<
<
<
<







1
2
3
4
5
6
7
8
9
10
11








12
13
14
15
16
17
18
#include <C:\Users\kevin\Desktop\ruby23_mingw_loadrelative\include\ruby-2.3.0\ruby.h>
#include <Windows.h>
#include <shlobj.h>
#include <shlwapi.h>  
#include <tchar.h>
 
int main(int argc, char *argv[])
{

  TCHAR exedir [MAX_PATH];









  /*Get the module's full path, and set to the current working directory.*/
  if (!GetModuleFileName(NULL, exedir, MAX_PATH)) {

    TCHAR errmsg[512];
    FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,0, GetLastError(),0,errmsg,1024,NULL);

    _tprintf( TEXT("The path is %s, and the error is %s/n"), exedir, errmsg );

Changes to stringscan.rb.

1
2
3
4
5
6
7
8
9
10
11
#Stringscan: grep-like tool, written in Ruby-Tk. (c) 2017 Kevin Walzer/WordTech Communications LLC. License: MIT license.
#encoding: UTF-8
require 'tk'
require 'tkballoonhelp'
require 'tkextlib/tile'
require 'find'
require 'tkextlib/tcllib/tablelist_tile'
require 'mime/types'
require 'tk/tk_mac'
require 'tkextlib/tkDND'




|







1
2
3
4
5
6
7
8
9
10
11
#Stringscan: grep-like tool, written in Ruby-Tk. (c) 2017 Kevin Walzer/WordTech Communications LLC. License: MIT license.
#encoding: UTF-8
require 'tk'
$: << "." require 'tkballoonhelp'  
require 'tkextlib/tile'
require 'find'
require 'tkextlib/tcllib/tablelist_tile'
require 'mime/types'
require 'tk/tk_mac'
require 'tkextlib/tkDND'