This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 引数にファイル/ディレクトリを与えたときの展開 | |
数値は(以下の例では 1) n 番目の引数に相当。%1 -> argv[1] | |
rem --------------------------- | |
rem %~1 全ての引用句(")を削除して%1を展開する。 | |
rem %~f1 %1を完全修飾パス名に展開する。 | |
rem %~d1 %1をドライブ名だけに展開する。 | |
rem %~p1 %1をパスだけに展開する。 | |
rem %~n1 %1をファイル名だけに展開する。 | |
rem %~x1 %1をファイル拡張子だけに展開する。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* memo */ | |
/* csv を読み込む */ | |
.... | |
while ((NULL != fgets(buf, BUFSIZ, fp))) { | |
ret = sscanf(buf, "%[^,],%[^,],%[^,]", id, date, title); | |
.... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
main(int argc, char *argv[]) | |
{ | |
FILE *fp; | |
int data; | |
int i1; | |
unsigned long |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir /opt/mingw-w64 | |
$ cd /opt/mingw-w64 | |
$ wget http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/mingw-w64-bin_i686-linux_20121010.tar.bz2 -nc | |
$ tar xf mingw-w64-bin_i686-linux_20121010.tar.bz2 | |
$ export PATH=/opt/mingw-w64/bin:$PATH | |
* autoconf, automake, libtool ... | |
素直に apt-get。依存(perl, m4)するものもインストールされるし。 | |
* svn, git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://blog.k-tai-douga.com/article/26604536.html | |
diff -ur faac-1.28.orig/common/mp4v2/mpeg4ip_win32.h faac-1.28/common/mp4v2/mpeg4ip_win32.h | |
--- faac-1.28.orig/common/mp4v2/mpeg4ip_win32.h Sun Jan 25 10:14:34 2009 | |
+++ faac-1.28/common/mp4v2/mpeg4ip_win32.h Sat Jul 10 18:32:45 2010 | |
@@ -42,10 +42,18 @@ | |
#include <stdlib.h> | |
#include <time.h> | |
#include <limits.h> | |
+#include <ctype.h> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL : http://sourceforge.net/tracker/?func=detail&aid=2618563&group_id=704&atid=100704 | |
--- frontend/main.c 2009-02-19 19:33:04 -0800 | |
+++ frontend/main.c.new 2009-02-19 19:25:14 -0800 | |
@@ -31,7 +31,9 @@ | |
#ifdef _WIN32 | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
+#ifndef __MINGW32__ | |
#define off_t __int64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl -w | |
use strict; | |
use warnings; | |
use Encode; | |
use Data::Dumper; | |
use XML::Simple; | |
# wget http://cpansearch.perl.org/src/TNAGA/PHP-Functions-File-0.04/lib/PHP/Functions/File.pm -P lib/PHP/Functions/ | |
use PHP::Functions::File qw(file_put_contents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* autoconf (http://www.gnu.org/software/autoconf/autoconf.html) がビルドできない件。 | |
m4 (http://www.gnu.org/software/m4/m4.html) を自前ビルドしたからいけないのか? | |
perl (http://strawberryperl.com/) x64 がいけないのか? | |
solution: | |
http://lists.gnu.org/archive/html/autoconf/2008-12/msg00012.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem mingw-get: | |
rem http://sourceforge.net/projects/mingw/files/Installer/mingw-get/ | |
rem | |
rem cross-compile: bin | |
rem http://xhmikosr.1f0.de/ | |
rem http://komisar.gin.by/ | |
rem | |
rem strawberry perl: bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
WORK=${HOME}/sandbox | |
#PREF64=/mingw/x86_64-w64-mingw32 | |
PREF64=/usr/local | |
HOST64=x86_64-w64-mingw32 | |
CROSS64=x86_64-w64-mingw32- | |
LOG=${HOME}/${0##*/}.log | |
mkdir ${WORK} |
NewerOlder