add gitattributes and fix whitespace issues

This commit is contained in:
Daniel Micay 2013-05-03 19:25:04 -04:00
parent bfd3cd8171
commit 86efd97a10
433 changed files with 196 additions and 597 deletions

9
.gitattributes vendored Normal file
View file

@ -0,0 +1,9 @@
[attr]rust text eol=lf whitespace=tab-in-indent,trailing-space,tabwidth=4
* text=auto
*.cpp rust
*.h rust
*.rs rust
src/rt/msvc/* -whitespace
src/rt/vg/* -whitespace
src/rt/linenoise/* -whitespace

View file

@ -367,4 +367,3 @@ their own copyright notices and license terms:
has chosen for the collective work, enumerated at the top
of this file. The only difference is the retention of
copyright itself, held by the contributor.

View file

@ -3351,4 +3351,3 @@ Additional specific influences can be seen from the following languages:
* The typeclass system of Haskell.
* The lexical identifier rule of Python.
* The block syntax of Ruby.

View file

@ -402,4 +402,3 @@ tricky. Invoking the `log_syntax!` macro can help elucidate intermediate
states, invoking `trace_macros!(true)` will automatically print those
intermediate states out, and passing the flag `--pretty expanded` as a
command-line argument to the compiler will show the result of expansion.

View file

@ -511,4 +511,3 @@ The parent task first calls `DuplexStream` to create a pair of bidirectional
endpoints. It then uses `task::spawn` to create the child task, which captures
one end of the communication channel. As a result, both parent and child can
send and receive data to and from the other.

View file

@ -7,4 +7,3 @@
</center>
</div>

View file

@ -709,4 +709,3 @@ endef
$(foreach host,$(CFG_HOST_TRIPLES), \
$(eval $(call DEF_CHECK_FAST_FOR_H,$(host))))

View file

@ -23,4 +23,3 @@ foreach $line (@lines) {
}
}
}

View file

@ -8,4 +8,3 @@ Instructions for Ubuntu Linux 12.04+
2) Copy the included "share" folder into "~/.local/"
3) Open a shell in "~/.local/share/" and run "update-mime-database mime"

View file

@ -261,4 +261,3 @@
</definitions>
</language>

View file

@ -14,4 +14,3 @@ while (<>) {
$indent -= 1;
}
}

View file

@ -52,5 +52,3 @@ def download_new_file (date, rev, platform, hsh):
for ff in newestSet["files"]:
download_new_file (newestSet["date"], newestSet["rev"],
ff["platform"], ff["hash"])

View file

@ -243,4 +243,3 @@ int main() {
extra_consts();
printf("}\n");
}

View file

@ -96,4 +96,3 @@ def check_license(name, contents):
return True
return False

View file

@ -33,6 +33,3 @@ for line in f.readlines():
print("got download with ok hash")
else:
raise Exception("bad hash on download")

View file

@ -77,4 +77,3 @@ while (my ($key, $substs) = each %funcs) {
}
print "\n";
}

View file

@ -80,4 +80,3 @@ def sugarise_file(path):
for (dirpath, dirnames, filenames) in os.walk('.'):
for name in fnmatch.filter(filenames, '*.r[sc]'):
sugarise_file(os.path.join(dirpath, name))

View file

@ -81,4 +81,3 @@ except UnicodeDecodeError, e:
sys.exit(err)

View file

@ -226,4 +226,3 @@ pub mod rustrt {
pub unsafe fn rust_get_task() -> *c_void;
}
}

View file

@ -59,4 +59,3 @@ pub fn log_type<T>(level: u32, object: &T) {
rustrt::rust_log_str(level, transmute(vec::raw::to_ptr(bytes)), len);
}
}

View file

@ -31,4 +31,3 @@ fn ge(&self, other: &~T) -> bool { *(*self) >= *(*other) }
#[inline(always)]
fn gt(&self, other: &~T) -> bool { *(*self) > *(*other) }
}

View file

@ -207,4 +207,3 @@ pub fn mut_offset<T>(ptr: *mut T, count: int) -> *mut T {
use core::sys::size_of;
(ptr as int + count * (size_of::<T>() as int)) as *mut T
}

View file

@ -56,4 +56,3 @@ pub fn new(_writer: W) -> WriterChan<W> { fail!() }
impl<W: Writer> GenericChan<~[u8]> for WriterChan<W> {
fn send(&self, _x: ~[u8]) { fail!() }
}

View file

@ -12,4 +12,3 @@ pub enum IpAddr {
Ipv4(u8, u8, u8, u8, u16),
Ipv6
}

View file

@ -47,4 +47,3 @@ pub fn bind(_addr: IpAddr) -> Option<UdpListener> {
impl Listener<UdpStream> for UdpListener {
fn accept(&mut self) -> Option<UdpStream> { fail!() }
}

View file

@ -47,4 +47,3 @@ pub fn bind<P: PathLike>(_path: &P) -> Option<UnixListener> {
impl Listener<UnixStream> for UnixListener {
fn accept(&mut self) -> Option<UnixStream> { fail!() }
}

View file

@ -78,4 +78,3 @@ fn rust_boxed_region_malloc(region: *BoxedRegion,
size: size_t) -> *OpaqueBox;
fn rust_boxed_region_free(region: *BoxedRegion, box: *OpaqueBox);
}

View file

@ -143,4 +143,3 @@ fn borrow_smoke_test() {
}
let _scheduler = take();
}

View file

@ -99,4 +99,3 @@ pub mod rusti {
pub fn frame_address(+f: &once fn(x: *u8));
}
}

View file

@ -2642,4 +2642,3 @@ pub fn XID_Start(c: char) -> bool {
bsearch_range_table(c, XID_Start_table)
}
}

View file

@ -81,4 +81,3 @@ fn align_to(size: uint, align: uint) -> uint {
#[rust_stack]
fn rust_get_exchange_count_ptr() -> *mut int;
}

View file

@ -205,4 +205,3 @@ fn test_select_stream_and_oneshot() {
chan.send(());
waitport.recv();
}

View file

@ -169,4 +169,3 @@ pub struct LinkMeta {
vers: @str,
extras_hash: @str
}

View file

@ -18,4 +18,3 @@
pub mod csearch;
pub mod loader;
pub mod filesearch;

View file

@ -802,4 +802,3 @@ fn check_loans_in_block(blk: &ast::blk,
visit::visit_block(blk, self, vt);
}
}

View file

@ -639,4 +639,3 @@ fn add_stmt_to_map(stmt: @ast::stmt,
}
visit::visit_stmt(stmt, self, vt);
}

View file

@ -309,4 +309,3 @@ fn issue_loan(&mut self,
}
}
}

View file

@ -423,4 +423,3 @@ pub fn collect_language_items(crate: @crate,
collector.collect();
copy items
}

View file

@ -1179,4 +1179,3 @@ fn is_mutable_box(&const self) -> bool {
}
}
}

View file

@ -86,4 +86,3 @@ pub fn pat_binding_ids(dm: resolve::DefMap, pat: @pat) -> ~[node_id] {
pat_bindings(dm, pat, |_bm, b_id, _sp, _pt| found.push(b_id) );
return found;
}

View file

@ -603,4 +603,3 @@ struct variant \
});
visit::visit_crate(crate, method_map, visitor);
}

View file

@ -968,4 +968,3 @@ pub fn determine_rp_in_crate(sess: Session,
// return final set
return cx.region_paramd_items;
}

View file

@ -186,4 +186,3 @@ fn subst(&self, tcx: ty::ctxt, substs: &ty::substs) -> ty::ty_param_bounds_and_t
}
}
}

View file

@ -190,4 +190,3 @@ fn build_wrap_ret(&self,
Store(bcx, llretval, llretptr);
}
}

View file

@ -799,4 +799,3 @@ pub fn trans_arg_expr(bcx: block,
debug!("--- trans_arg_expr passing %s", val_str(bcx.ccx().tn, val));
return rslt(bcx, val);
}

View file

@ -599,4 +599,3 @@ pub fn make_opaque_cbox_free_glue(
}
}
}

View file

@ -398,4 +398,3 @@ pub fn trans_fail_bounds_check(bcx: block, sp: span,
Unreachable(bcx);
return bcx;
}

View file

@ -855,4 +855,3 @@ fn to_str(&self) -> ~str {
self.datum.to_str(self.ccx())
}
}

View file

@ -122,4 +122,3 @@ pub fn maybe_instantiate_inline(ccx: @CrateContext, fn_id: ast::def_id,
}
}
}

View file

@ -153,4 +153,3 @@ pub fn static_size_of_enum(cx: @CrateContext, t: ty::t) -> uint {
_ => cx.sess.bug(~"static_size_of_enum called on non-enum")
}
}

View file

@ -51,4 +51,3 @@ macro_rules! trace(
}
)
)

View file

@ -242,4 +242,3 @@ fn traverse_all_resources_and_impls(cx: &ctx, crate_mod: &_mod) {
..*visit::default_visitor()
}));
}

View file

@ -404,4 +404,3 @@ pub fn ast_purity_constant(purity: ast::purity) -> uint {
ast::extern_fn => 3u
}
}

View file

@ -74,4 +74,3 @@ pub fn add_substr(dest: &mut ~[u8], src: ~[u8]) {
add_u16(&mut *dest, vec::len(src) as u16);
*dest += src;
}

View file

@ -383,4 +383,3 @@ pub fn handle_body(cx: Context, body: &blk) {
});
(v.visit_block)(body, cx, v);
}

View file

@ -633,4 +633,3 @@ pub fn check_pointer_pat(pcx: &pat_ctxt,
#[deriving(Eq)]
enum PointerKind { Managed, Owned, Borrowed }

View file

@ -66,5 +66,3 @@ pub fn coerce(fcx: @mut FnCtxt,
}
}
}

View file

@ -666,5 +666,3 @@ pub fn resolve_in_block(fcx: @mut FnCtxt, bl: &ast::blk) {
.. *visit::default_visitor()
}));
}

View file

@ -1119,4 +1119,3 @@ pub fn check_coherence(crate_context: @mut CrateCtxt, crate: @crate) {
let coherence_checker = @CoherenceChecker(crate_context);
coherence_checker.check_coherence(crate);
}

View file

@ -635,4 +635,3 @@ pub fn super_trait_refs<C:Combine>(
})
}
}

View file

@ -313,4 +313,3 @@ fn trait_refs(&self, a: &ty::TraitRef, b: &ty::TraitRef) -> cres<ty::TraitRef> {
super_trait_refs(self, a, b)
}
}

View file

@ -18,4 +18,3 @@ macro_rules! if_ok(
}
)
)

View file

@ -1746,4 +1746,3 @@ fn iterate_until_fixed_point(
}
debug!("---- %s Complete after %u iteration(s)", tag, iteration);
}

View file

@ -278,4 +278,3 @@ fn resolve_float_var(&mut self, vid: FloatVid) -> ty::t {
}
}
}

View file

@ -269,4 +269,3 @@ fn trait_refs(&self, a: &ty::TraitRef, b: &ty::TraitRef) -> cres<ty::TraitRef> {
super_trait_refs(self, a, b)
}
}

View file

@ -265,5 +265,3 @@ fn to_type_err(err: expected_found<ast::float_ty>) -> ty::type_err {
return ty::terr_float_mismatch(err);
}
}

View file

@ -112,4 +112,3 @@ fn should_record_fn_paths() {
assert!(doc.cratemod().mods()[0].fns()[0].path() == ~[~"a"]);
}
}

View file

@ -32,4 +32,3 @@ Commands that should succeed:
15. `rustpkg test foo` runs tests and prints their output, if foo contains #[test]s.
16. If foo is installed, `rustpkg uninstall foo; rustpkg list` doesn't include foo in the list

View file

@ -15,4 +15,3 @@
*/
fn main() {}

View file

@ -1957,4 +1957,3 @@ fn test_neg() {
assert!(-Zero::zero::<BigInt>() == Zero::zero::<BigInt>());
}
}

View file

@ -1883,4 +1883,3 @@ fn read_to_vec<T>(&mut self, f: &fn(&mut D) -> T) -> ~[T] {
}
}
}

View file

@ -100,4 +100,3 @@ fn test_task_pool() {
pool.execute(|i| io::println(fmt!("Hello from thread %u!", *i)));
}
}

View file

@ -80,4 +80,3 @@ fn visit_message(&self, name: ~str, _span: span, _tys: &[@ast::Ty],
}
}
}

View file

@ -104,4 +104,3 @@ pub fn analyze(proto: protocol, _cx: @ext_ctxt) {
proto.bounded = Some(true);
}
}

View file

@ -85,4 +85,3 @@ pub fn expand_proto(cx: @ext_ctxt, _sp: span, id: ast::ident,
// compile
base::MRItem(proto.compile(cx))
}

View file

@ -217,4 +217,3 @@ pub fn visit<Tproto, Tstate, Tmessage, V: visitor<Tproto, Tstate, Tmessage>>(
};
visitor.visit_proto(proto, states)
}

View file

@ -760,4 +760,3 @@ fn expand_parse_call(cx: @ext_ctxt,
id_ext(cx, parse_method),
arg_exprs)
}

View file

@ -298,4 +298,3 @@ fn try_parse_obsolete_priv_section(&self, attrs: ~[attribute]) -> bool {
}
}

View file

@ -90,4 +90,3 @@ pub mod ext {
pub mod trace_macros;
}

View file

@ -48,5 +48,3 @@ swap_registers:
msr cpsr_cxsf, r2
mov pc, lr

View file

@ -14,4 +14,3 @@ void rust_gpr::load() {
LOAD(r8); LOAD(r9); LOAD(r10); LOAD(r11);
LOAD(r12); LOAD(r13); LOAD(r14); LOAD(r15);
}

View file

@ -21,4 +21,3 @@ public:
};
#endif

View file

@ -28,4 +28,3 @@ get_sp_limit:
get_sp:
mov r0, sp
mov pc, lr

View file

@ -19,5 +19,3 @@
# define RUSTRT_ARG1_S r1
# define RUSTRT_ARG2_S r2
# define RUSTRT_ARG3_S r3

View file

@ -63,5 +63,3 @@ SWAP_REGISTERS:
// Return!
jmp *48(%eax)

View file

@ -20,4 +20,3 @@ void rust_gpr::load() {
LOAD(eax); LOAD(ebx); LOAD(ecx); LOAD(edx);
LOAD(esi); LOAD(edi); LOAD(ebp); LOAD(esi);
}

View file

@ -29,4 +29,3 @@ public:
};
#endif

View file

@ -253,4 +253,3 @@ L_upcall_del_stack$stub:
.subsections_via_symbols
#endif

View file

@ -30,4 +30,3 @@ public:
};
#endif

View file

@ -121,4 +121,3 @@ SWAP_REGISTERS:
// Jump to the instruction pointer
// found in regs:
jmp *(RUSTRT_IP*8)(ARG1)

View file

@ -22,4 +22,3 @@ void rust_gpr::load() {
LOAD(r8); LOAD(r9); LOAD(r10); LOAD(r11);
LOAD(r12); LOAD(r13); LOAD(r14); LOAD(r15);
}

View file

@ -30,4 +30,3 @@ public:
};
#endif

View file

@ -43,5 +43,3 @@
# define RUSTRT_ARG4_S %r8
# define RUSTRT_ARG5_S %r9
#endif

View file

@ -52,5 +52,3 @@ void isaac(randctx *r);
(r)->randrsl[(r)->randcnt])
#endif /* RAND */

View file

@ -86,4 +86,3 @@ symbolicate(const std::vector<frame> &frames) {
}
} // end namespace stack_walk

View file

@ -76,4 +76,3 @@ std::string symbolicate(const std::vector<frame> &frames);
uint32_t get_abi_version();
#endif

View file

@ -12,4 +12,3 @@ char **backtrace_symbols (void *__const *__array, int __size);
void backtrace_symbols_fd (void *__const *__array, int __size, int __fd);
#endif

View file

@ -58,4 +58,3 @@ dump_origin(rust_task *task, void *ptr) {
}
} // end namespace debug

View file

@ -70,4 +70,3 @@ void dump_origin(rust_task *task, void *ptr);
} // end namespace debug
#endif

View file

@ -31,4 +31,3 @@ public:
#endif

Some files were not shown because too many files have changed in this diff Show more